exercise:Dc6b449b78: 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 ''' HTSimulation''' so that it keeps track of the maximum of Peter's winnings in each game of 40 tosses. Have your program print out the proportion of times that your total winnings take on values <math>0,\ 2,\ 4,\ \dots,\ 40<...") |
No edit summary |
||
Line 1: | Line 1: | ||
Modify the program ''' HTSimulation''' so that it keeps track of the maximum of Peter's winnings in each game of 40 tosses. Have your program | |||
print out the proportion of times that your total winnings take on values <math>0,\ 2,\ 4,\ \dots,\ 40</math>. Calculate the corresponding exact probabilities for games of two tosses and four tosses. | |||
keeps track of the | |||
maximum of Peter's winnings in each game of 40 tosses. Have your program | |||
print | |||
out the proportion of times that your total winnings take on values <math>0,\ 2,\ | |||
4,\ \dots,\ 40</math>. Calculate the corresponding exact probabilities for games of | |||
two | |||
tosses and four tosses. |
Latest revision as of 20:22, 12 June 2024
Modify the program HTSimulation so that it keeps track of the maximum of Peter's winnings in each game of 40 tosses. Have your program print out the proportion of times that your total winnings take on values [math]0,\ 2,\ 4,\ \dots,\ 40[/math]. Calculate the corresponding exact probabilities for games of two tosses and four tosses.