exercise:2d6dc4d7a2: 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 program to add random numbers chosen from <math>[0,1]</math> until the first time the sum is greater than one. Have your program repeat this experiment a number of times to estimate the expected number of selections necessary in order tha...")
 
No edit summary
 
Line 1: Line 1:
<div class="d-none"><math>
Write a program to add random numbers chosen from <math>[0,1]</math> until the first time the sum is greater than one.  Have your program repeat this
\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 program to add random numbers chosen from <math>[0,1]</math>
until the first time the sum is greater than one.  Have your program repeat this
experiment a number of times to estimate the expected number of selections necessary
experiment a number of times to estimate the expected number of selections necessary
in order that the sum of the chosen numbers first exceeds 1.  On the basis of your
in order that the sum of the chosen numbers first exceeds 1.  On the basis of your
experiments, what is your estimate for this number?
experiments, what is your estimate for this number?

Latest revision as of 17:15, 14 June 2024

Write a program to add random numbers chosen from [math][0,1][/math] until the first time the sum is greater than one. Have your program repeat this experiment a number of times to estimate the expected number of selections necessary in order that the sum of the chosen numbers first exceeds 1. On the basis of your experiments, what is your estimate for this number?