Advertisement
Guest User

Intervalles de confiance

a guest
Mar 12th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.54 KB | None | 0 0
  1. function y = t(alpha)
  2.     p = 1 - (alpha / 2)
  3.     y = cdfnor('X', 0, 1, p, 1-p)
  4. endfunction
  5.  
  6. function y = r(alpha)
  7.     y = 1 / sqrt(alpha)
  8. endfunction
  9.  
  10. function y = q(alpha)
  11.     y = t(alpha) / r(alpha)
  12. endfunction
  13.  
  14. clf()
  15.  
  16. subplot(121)
  17.  
  18. I = logspace(-4, 0, 100)
  19. xlabel("niveau de risque")
  20. ylabel("facteur d amplitude")
  21. plot2d("ll", I, feval(I, r), 0)
  22. plot2d("ll", I, feval(I, t), 1)
  23. legend(["IBT", "TCL"],3)
  24.  
  25. subplot(122)
  26.  
  27. I = linspace(.04, .6, 100)
  28. plot2d(I, feval(I, q))
  29. xlabel("niveau de risque")
  30. legend(["TCL / IBT"],3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement