9/13
Part 6 of 7 · The worked exampleLearn and do
A worked example: the uniform and the CLT, end to end
Here's a statistics round question, worked end to end.
X is uniform from 0 to 1. What are its mean and variance? What does the CLT say about the average of 100 draws? How likely is that average to come out above 0.55?
1. Mean and variance. The mean is 1/2. E[X²] = 1/3, so the variance is 1/3 − 1/4 = 1/12.
2. The average. By the CLT, the average of 100 draws is close to normal with mean 0.5 and variance 1/12 / 100, so a standard error of 0.0289.
3. The tail. 0.55 is 0.05 above the mean, which is 1.73 standard errors.
from statistics import NormalDist
se = (1 / 12) ** 0.5 / 100 ** 0.5
z = (0.55 - 0.5) / se
print(f"standard error {se:.4f}, z = {z:.2f}, chance above z = {1 - NormalDist().cdf(z):.4f}")
How likely is the average of 100 uniform draws to come out above 0.55?
Pick one to see what it prints.
Pick an answer above to see the rest