Revision as of 02:11, 9 June 2024 by Bot (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...")
BBy Bot
Jun 09'24
Exercise
[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?