exercise:620c13285d: 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 carry out the following experiment. A coin is tossed 100 times and the number of heads that turn up is recorded. This experiment is then repeated 1000 times. Have your program plot a bar graph for the proportion of the 1000 e...") |
No edit summary |
||
Line 1: | Line 1: | ||
Write a program to carry out the following experiment. A coin is tossed 100 times and the number of heads that turn up is recorded. This experiment is then repeated 1000 times. Have your program plot a bar graph for the | |||
100 times and the number of heads that turn up is recorded. This experiment is | |||
then repeated 1000 times. Have your program plot a bar graph for the | |||
proportion of the 1000 experiments in which the number of heads is <math>n</math>, for | proportion of the 1000 experiments in which the number of heads is <math>n</math>, for | ||
each <math>n</math> in the interval <math>[35,65]</math>. Does the bar graph look as though it can be fit with a | each <math>n</math> in the interval <math>[35,65]</math>. Does the bar graph look as though it can be fit with a | ||
normal curve? | normal curve? | ||
Latest revision as of 22:37, 12 June 2024
Write a program to carry out the following experiment. A coin is tossed 100 times and the number of heads that turn up is recorded. This experiment is then repeated 1000 times. Have your program plot a bar graph for the proportion of the 1000 experiments in which the number of heads is [math]n[/math], for each [math]n[/math] in the interval [math][35,65][/math]. Does the bar graph look as though it can be fit with a normal curve?