Skip to main content
Examonaut

Topic 5 · Lesson 2 of 3

Working backwards: sample sizes and parameters

Finding a value with a given probability

For a sample of 50 from a distribution with mean 3 and variance 2, find aa with P(Xˉ>a)=0.05\text{P}(\bar{X} > a) = 0.05.

Xˉ≈N(3,250)\bar{X} \approx \text{N}\left(3, \frac{2}{50}\right), and the upper 5% point of ZZ is 1.6449, so

a=3+1.64490.04=3.33a = 3 + 1.6449\sqrt{0.04} = 3.33

Finding the sample size

How many days must a shop record its number of returns (Po(4)\text{Po}(4) per day) for the sample mean to be within 0.4 of 4 with probability more than 0.95?

  1. Xˉ≈N(4,4n)\bar{X} \approx \text{N}\left(4, \frac{4}{n}\right).
  2. P(∣Xˉ−4∣<0.4)>0.95\text{P}(|\bar{X} - 4| < 0.4) > 0.95 requires 0.44/n>1.96\frac{0.4}{\sqrt{4/n}} > 1.96.
  3. n>1.96×20.4\sqrt{n} > \frac{1.96 \times 2}{0.4}, so n>96.04n > 96.04, and n=97n = 97.

Round up: the sample size must be a whole number at least as big as the bound. The pattern is always the same: write the condition as "a zz-value is bigger than a percentage point", then rearrange for nn.

Long-run results of games

The Central Limit Theorem explains why a casino can rely on profit. Suppose a player's gain per game has mean −0.1-0.1 and variance 4 (pounds). Over 400 games, the total gain is approximately N(−40,1600)\text{N}(-40, 1600), and the probability of being ahead is

P(T>0)=P(Z>4040)=0.159\text{P}(T > 0) = \text{P}\left(Z > \frac{40}{40}\right) = 0.159

Over nn games the mean of the total is −0.1n-0.1n but its standard deviation is only 2n2\sqrt{n}. The mean grows faster than the spread, so the probability of being ahead shrinks: it falls below 0.05 once 0.1n2n>1.6449\frac{0.1n}{2\sqrt{n}} > 1.6449, that is n>1082.2n > 1082.2, or 1083 games.

Finding a parameter

For a sample of 50 days with deliveries Po(λ)\text{Po}(\lambda) per day, the probability that the mean exceeds 3 is 0.05. Then

3−λλ/50=1.6449\frac{3 - \lambda}{\sqrt{\lambda/50}} = 1.6449

Because λ\lambda appears in the standard deviation too, this is a quadratic in λ\sqrt{\lambda}: λ+0.23262λ−3=0\lambda + 0.23262\sqrt{\lambda} - 3 = 0, giving λ=1.6196\sqrt{\lambda} = 1.6196 (the positive root) and λ=2.62\lambda = 2.62. Check that the answer makes sense: the probability is less than 0.5, so λ\lambda must be below 3.

Continuity corrections

The theorem replaces a discrete distribution by a continuous one. For the mean of a large sample the possible values are so close together that no correction is needed, and questions on sample means do not use one. For a total of discrete values, you may be asked to apply a continuity correction: for a total TT of 30 observations from Po(0.4)\text{Po}(0.4), P(T⩾16)≈P(T>15.5)\text{P}(T \geqslant 16) \approx \text{P}(T > 15.5) with T≈N(12,12)T \approx \text{N}(12, 12), which gives 0.156. (Here TT is exactly Po(12)\text{Po}(12), and the exact answer is 0.1556, so the approximation is very good.)

Practise this topic

Both are part of Premium.