exercise:F0f0822fda: 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> Modify the program ''' CoinTosses''' so that it tosses a coin <math>n</math> times and records whether or not the proportion of heads is within .1 of .5 (i.e., between .4 and .6). Have your program repeat this experiment 100 times. About how lar...")
 
No edit summary
 
Line 1: Line 1:
<div class="d-none"><math>
Modify the program ''' CoinTosses''' so that it tosses a coin <math>n</math> times and records whether or not the proportion of heads is within .1 of .5 (i.e.,between .4 and .6).  Have your program repeat this experiment 100 times. About how large must <math>n</math> be so that approximately 95 out of 100 times the proportion of heads is between .4 and .6?
\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> Modify the program ''' CoinTosses''' so that it tosses a
coin <math>n</math> times
and records whether or not the proportion of heads is within .1 of .5 (i.e.,
between .4 and .6).  Have your program repeat this experiment 100 times.  
About
how large must <math>n</math> be so that approximately 95 out of 100 times the
proportion
of heads is between .4 and .6?

Latest revision as of 20:02, 12 June 2024

Modify the program CoinTosses so that it tosses a coin [math]n[/math] times and records whether or not the proportion of heads is within .1 of .5 (i.e.,between .4 and .6). Have your program repeat this experiment 100 times. About how large must [math]n[/math] be so that approximately 95 out of 100 times the proportion of heads is between .4 and .6?