Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For python: Write a function that returns n integer random numbers, uniformly distributed between 1 and 6, inclusively. This represents n throws of a fair
For python:
- Write a function that returns n integer random numbers, uniformly distributed between 1 and 6, inclusively. This represents n throws of a fair 6-sided die. The value that comes up at each throw will be called the "score".
- Generate a distribution of 1000 dice throws and plot it as a histogram normalized to unit area. Compute the mean 1 and standard deviation 1 of this distribution. Compare your numerical result to the analytical calculation.
- Generate 1000 sets of throws of N=2,3,4,5,10 dice, computing the total sum of dice scores for each set. For each value of N, plot the distribution of total scores, and compute the mean N and standard deviation N of each distribution. This should be similar to the plot at the link above.
- Plot the standard deviation N as a function of N. Does it follow the Central Limit Theorem?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started