Mathematics — Probability · central-limit-theorem-bernoulli-trials
Problem
Recall that if X is a random variable, the cumulative distribution function of X is the function F(x) defined by
F(x)=P(X≤x).
(a) Let Sn be the number of successes in n Bernoulli trials with probability p for success. Write a program to plot the cumulative distribution for Sn.
(b) Modify your program in (a) to plot the cumulative distribution Fn∗(x) of the standardized random variable
Sn∗=npqSn−np.
(c) Define the normal distribution N(x) to be the area under the normal curve up to the value x. Modify your program in (b) to plot the normal distribution as well, and compare it with the cumulative distribution of Sn∗. Do this for n=10,50, and 100.