jaredec18

Untitled

Sep 17th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. a) and b)
  2.  
  3. code
  4.  
  5.  
  6. x = rnorm(100000,mean = 185,sd = 15)
  7. sum(x>190)/100000
  8.  
  9. sum((x < 185 + 2 * 15)& (x > 185 - 2 * 15))/100000
  10.  
  11. > sum(x>190)/100000
  12. [1] 0.37044
  13. >
  14. > sum((x < 185 + 2 * 15)& (x > 185 - 2 * 15))/100000
  15. [1] 0.954
  16. a)
  17.  
  18. the proportion from the simulated data that a man is longer than 190 cm. = 0.3704
  19.  
  20. theoretical probability= P(X > 190 ) = P(Z > (190-185)/15) = P(Z > 1/3) = 0.3694
  21.  
  22. b)
  23.  
  24. the proportion of man between two standard deviation above and two standard deviation below the mean.
  25.  
  26. = 0.954
  27.  
  28. theoretical probability = 0.95
  29.  
  30. both are very close
Advertisement
Add Comment
Please, Sign In to add comment