exercise:1362281690: 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''' to toss a coin <math>n</math> times and print out after every 100 tosses the proportion of heads minus 1/2. Do these numbers appear to approach 0 as <math>n</math> increases? Modify the program again to prin...")
 
No edit summary
 
Line 5: Line 5:
\newcommand{\secstoprocess}{\all}
\newcommand{\secstoprocess}{\all}
\newcommand{\NA}{{\rm NA}}
\newcommand{\NA}{{\rm NA}}
\newcommand{\mathds}{\mathbb}</math></div> Modify the program ''' CoinTosses''' to toss a coin <math>n</math>
\newcommand{\mathds}{\mathbb}</math></div>  
times and print out after every 100 tosses the proportion of heads minus 1/2.  Do  
 
these numbers appear to approach 0 as <math>n</math> increases?  Modify the program again to print
Modify the program ''' CoinTosses''' to toss a coin <math>n</math> times and print out after every 100 tosses the proportion of heads minus 1/2.  Do  
out, every 100 times, both of the following quantities:  the proportion of heads  
these numbers appear to approach 0 as <math>n</math> increases?  Modify the program again to print out, every 100 times, both of the following quantities:  the proportion of heads minus 1/2,  and the number of heads minus half the number of tosses.  Do these numbers appear to approach 0 as <math>n</math> increases?
minus 1/2,  and the number of heads minus half the number of tosses.  Do these numbers  
appear to approach 0 as <math>n</math> increases?

Latest revision as of 21:01, 12 June 2024

[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]

Modify the program CoinTosses to toss a coin [math]n[/math] times and print out after every 100 tosses the proportion of heads minus 1/2. Do these numbers appear to approach 0 as [math]n[/math] increases? Modify the program again to print out, every 100 times, both of the following quantities: the proportion of heads minus 1/2, and the number of heads minus half the number of tosses. Do these numbers appear to approach 0 as [math]n[/math] increases?