Central limit theorem : Exercises
Introduction
Example problems
Click on the problems to reveal the solution
Problem 1
Problem 2
Problem 3
Problem 4
We can use the central limit theorem to get error bars for this estimate. We want to be able to state the following about the probability distribution for the sum of the Bernoulli random variables (serve attempts): $$ \begin{aligned} P\left( \frac{ - \epsilon}{ \sigma / \sqrt{n} } \le \frac{ S_n / n - \mu }{\sigma/\sqrt{n}} \le \frac{\epsilon}{ \sigma / \sqrt{n} } \right) & = 0.90 \\ \Phi\left( \frac{\epsilon}{ \sigma / \sqrt{n} } \right) - \Phi\left( - \frac{\epsilon}{ \sigma / \sqrt{n} } \right) & = 0.90 \\ \Phi\left( \frac{\epsilon}{ \sigma / \sqrt{n} } \right) - \left[ 1 - \Phi\left( \frac{\epsilon}{ \sigma / \sqrt{n} } \right) \right] & = 0.90 \\ 2\Phi\left( \frac{\epsilon}{ \sigma / \sqrt{n} } \right) - 1 & =0.90 \end{aligned} $$ In the second line here we use the central limit theorem, which we know is the probability distribution for the sum of random variables. In the third line we use the fact that the normal distribution function is an odd function. Rearranging the above tells us that our error bars are given by: $$ \epsilon = \frac{\sigma}{\sqrt{n}} \Phi^{-1}\left( \frac{1.90}{2} \right) $$ The variance ($\sigma^2$) for a Bernoulli random variable is given by $\sigma^2=p(1-p)$. So in our case this is 0.231. Substituting this and the value of $n$ into the above gives: $$ \epsilon \approx \frac{\sqrt{0.231}}{\sqrt{141}} \Phi^{-1}\left( \frac{1.90}{2} \right) \approx 0.0405 \times 1.6449 \approx 0.667 $$ This is not a sensible way of calculating the probability as serving on championship point is nothing like serving during the normal course of the match. The individual random variables are not identically distributed
Problem 5
We can use the central limit theorem to estimate the value of $n$ such that: \[ P\left( \frac{S_n/n - \mu}{\sigma/\sqrt{n}} \le z \right) = 0.9 \] where $\frac{S_n}{n} = 0.5$ as we want at least half of birds to be female, $\mu=0.55$ as this is the mean of our Bernoulli random variable and $\sigma = \sqrt{0.55(0.45)} = 0.497$ as this is variance of a Bernoulli random variable. We can find the value of $z$ from the tables by looking up the inverse function for the normal distribution. We want to find $z$ such that: \[ \Phi(z) = 0.9 \qquad \rightarrow \qquad z = 1.2816 \] We thus have (for minimal sample size) i.e. $\frac{S_n/n - \mu}{\sigma/\sqrt{n}} = z$: \[ \frac{0.5 - 0.55}{0.497/\sqrt{n} } = 1.2816 \quad \rightarrow \quad n = \left( \frac{1.2816 \times 0.497}{-0.05}\right)^2 \approx 163 \]