Discrete random variables and the normal distribution
A-Level Mathematics · Probability & Statistics 1
Discrete random variables
$$\text{E}(X)=\sum xP(X=x),\qquad \text{Var}(X)=\sum x^{2}P(X=x)-\big[\text{E}(X)\big]^{2}$$The probabilities in the table must sum to $1$ — checking that first catches most arithmetic slips.
The binomial distribution
$X\sim\text{B}(n,p)$ requires four conditions: a fixed number $n$ of trials, two outcomes each time, a constant $p$, and independent trials.
$$P(X=r)=\binom{n}{r}p^{r}(1-p)^{n-r},\qquad \text{E}(X)=np,\qquad \text{Var}(X)=np(1-p)$$Sampling without replacement breaks independence, so such a variable is not binomial.
The normal distribution
$X\sim\text{N}\left(\mu,\sigma^{2}\right)$ — the second parameter is the variance, not the standard deviation.
$$Z=\frac{X-\mu}{\sigma}\sim\text{N}(0,1)$$Working backwards from a probability to a value uses the inverse: find $z$ first, then $x=\mu+z\sigma$.
Worked example: a discrete random variable from drawing without replacement
A bag has $3$ red balls and $5$ blue balls. Draw $2$ balls at random without replacement. Let $X$ be the number of red balls drawn. Construct the distribution table of $X$, calculate $\text{E}(X)$, and explain why $X$ does not have a binomial distribution.
Solution
Step 1 — three probabilities.
$$P(X=0)=\frac{5}{8}\times\frac{4}{7}=\frac{20}{56}$$$$P(X=1)=\frac{3}{8}\times\frac{5}{7}+\frac{5}{8}\times\frac{3}{7}=\frac{30}{56}$$$$P(X=2)=\frac{3}{8}\times\frac{2}{7}=\frac{6}{56}$$Step 2 — check the total. $\dfrac{20+30+6}{56}=\dfrac{56}{56}=1$. Correct, so you can go on.
Step 3 — expectation.
$$\text{E}(X)=0\left(\frac{20}{56}\right)+1\left(\frac{30}{56}\right)+2\left(\frac{6}{56}\right)=\frac{42}{56}=\frac{3}{4}$$Step 4 — why not binomial. Because the draw is without replacement, the probability of drawing a red ball on the second draw depends on the result of the first ($\dfrac{2}{7}$ if the first was red, $\dfrac{3}{7}$ if not). The two trials are not independent and $p$ is not constant — violating two of the four conditions of the binomial distribution.
Sanity check: with replacement, $X\sim\text{B}\left(2,\dfrac{3}{8}\right)$ and $\text{E}(X)=2\left(\dfrac{3}{8}\right)=\dfrac{3}{4}$ — which coincides with the result above. The expectations coincide but the variances do not: that is why you must state the model explicitly rather than rely on a matching number.
Worked example: inverse normal problem
Exam scores $X$ have distribution $\text{N}\left(72,\,8^{2}\right)$. The top $15\%$ of candidates are graded $A$. Find the minimum score needed for grade $A$, rounding to an integer.
Solution
Step 1 — sketch and determine the sign. The shaded region is the right tail making up $15\%$, which is less than half the curve, so the required mark lies to the right of the mean and $z$ must be positive.
Step 2 — convert to the form the table gives. The table gives $P(Z\lt z)$, so
$$P(Z<z)=1-0.15=0.85\;\Longrightarrow\;z=1.036$$Step 3 — return to the original scale.
$$x=\mu+z\sigma=72+1.036(8)=72+8.29=80.3$$Scores are integers, so to exceed the mark $80.3$ you need at least $81$.
Two places to lose marks in this type. First, looking up the $z$ for $0.15$ directly gives $z=-1.036$ and the answer $63.7$ — a mark below the mean, absurd for "top $15\%$"; the sketch catches it immediately. Second, rounding $80.3$ to $80$ is rounding the wrong way: a score of $80$ has not exceeded the mark.