exercise:F2eb9818a3: 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 find the average of 1000 random digits 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9. Have the program test to see if the average lies within three standard deviations of the expected value of 4.5. Modify the program so that it repeats thi...")
 
No edit summary
 
Line 1: Line 1:
<div class="d-none"><math>
Write a program to find the average of 1000 random digits 0, 1, 2, 3, 4,5, 6, 7, 8, or 9.  Have the program test to see if the average lies within
\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 find the average of 1000 random digits 0, 1, 2, 3, 4,
5, 6, 7, 8, or 9.  Have the program test to see if the average lies within
three standard deviations of the expected value of 4.5.  Modify the program so
three standard deviations of the expected value of 4.5.  Modify the program so
that it repeats this simulation 1000 times and keeps track of the number of
that it repeats this simulation 1000 times and keeps track of the number of
times the test is passed.  Does your outcome agree with the Central Limit
times the test is passed.  Does your outcome agree with the Central Limit
Theorem?
Theorem?

Latest revision as of 23:02, 14 June 2024

Write a program to find the average of 1000 random digits 0, 1, 2, 3, 4,5, 6, 7, 8, or 9. Have the program test to see if the average lies within three standard deviations of the expected value of 4.5. Modify the program so that it repeats this simulation 1000 times and keeps track of the number of times the test is passed. Does your outcome agree with the Central Limit Theorem?