Introduction to Probability · Problem 9.1.15

Central Limit Theorem — Grinstead & Snell

Mathematics — Probability · central-limit-theorem-bernoulli-trials

Problem

Recall that if XX is a random variable, the cumulative distribution function of XX is the function F(x)F(x) defined by F(x)=P(X≤x).F(x) = P(X \leq x) . (a) Let SnS_n be the number of successes in nn Bernoulli trials with probability pp for success. Write a program to plot the cumulative distribution for SnS_n. (b) Modify your program in (a) to plot the cumulative distribution Fn∗(x)F^*_n(x) of the standardized random variable Sn∗=Sn−npnpq.S^*_n = \frac{S_n - np}{\sqrt{npq}} . (c) Define the normal distribution N(x)N(x) to be the area under the normal curve up to the value xx. Modify your program in (b) to plot the normal distribution as well, and compare it with the cumulative distribution of Sn∗S^*_n. Do this for n=10,50n = 10, 50, and 100100.

Related theory

Browse the problem library