exercise:28b52353b0: Difference between revisions
From Stochiki
(Created page with "<div class="d-none"><math> \newcommand{\NA}{{\rm NA}} \newcommand{\mat}[1]{{\bf#1}} \newcommand{\exref}[1]{\ref{##1}} \newcommand{\secstoprocess}{\all} \newcommand{\NA}{{\rm NA}} \newcommand{\mathds}{\mathbb}</math></div> Write a computer program to simulate 10,00 Bernoulli trials with probability .3 for success on each trial. Have the program compute the 95 percent confidence interval for the probability of success based on the proportion of successes. Repeat th...") |
No edit summary |
||
Line 1: | Line 1: | ||
Write a computer program to simulate 10,00 Bernoulli trials with probability .3 for success on each trial. Have the | |||
Bernoulli trials with probability .3 for success on each trial. Have the | |||
program compute the 95 percent confidence interval for the probability of | program compute the 95 percent confidence interval for the probability of | ||
success based on the proportion of successes. Repeat the experiment 100 times | success based on the proportion of successes. Repeat the experiment 100 times | ||
and see how many times the true value of .3 is included within the confidence | and see how many times the true value of .3 is included within the confidence | ||
limits. | limits. |
Latest revision as of 22:58, 14 June 2024
Write a computer program to simulate 10,00 Bernoulli trials with probability .3 for success on each trial. Have the program compute the 95 percent confidence interval for the probability of success based on the proportion of successes. Repeat the experiment 100 times and see how many times the true value of .3 is included within the confidence limits.