6.11 Random Variables, Distributions & Descriptive Statistics
Key Takeaways
- The binomial distribution has mean np and variance npq, so its variance is always strictly less than its mean because q is less than one.
- The Poisson distribution has mean and variance both equal to lambda, and it is the limiting form of the binomial when n is large and p is small.
- The normal distribution is symmetric about its mean, where mean, median and mode coincide, and roughly 68, 95 and 99.7 percent of the area lies within one, two and three standard deviations.
- Standard deviation is the square root of the variance and carries the same units as the data, whereas variance is in squared units and cannot be compared with the mean directly.
Measures of Central Tendency
Three averages are named in the syllabus, and each answers a different question.
Arithmetic mean. For raw data $\bar{x} = \dfrac{\sum x_i}{n}$; for grouped data $\bar{x} = \dfrac{\sum f_i x_i}{\sum f_i}$. The mean uses every observation, which also makes it sensitive to outliers.
Median. The middle value once the data are ordered. For $n$ odd it is the $\left(\dfrac{n+1}{2}\right)$th item; for $n$ even it is the average of the two central items. The median is unaffected by extreme values, which is why it is preferred for skewed data such as repair times.
Mode. The most frequently occurring value. A data set may have no mode, one mode, or several.
For a moderately skewed distribution the three are linked by the empirical relation
In a symmetric distribution such as the normal, all three coincide.
Measures of Dispersion
| Measure | Formula | Note |
|---|---|---|
| Range | $x_{\max} - x_{\min}$ | Uses only two values |
| Variance $\sigma^2$ | $\dfrac{\sum (x_i - \bar{x})^2}{n}$ | Squared units |
| Standard deviation $\sigma$ | $\sqrt{\sigma^2}$ | Same units as the data |
| Coefficient of variation | $\dfrac{\sigma}{\bar{x}}\times 100%$ | Dimensionless; compares unlike data |
A computationally convenient identity is
For a sample rather than a population, the denominator becomes $n - 1$ (Bessel's correction), which produces an unbiased estimate of the population variance.
Worked example. For the data 2, 4, 4, 4, 5, 5, 7, 9: the mean is $40/8 = 5$; the sum of squares is $4+16+16+16+25+25+49+81 = 232$, so $\sigma^2 = 232/8 - 25 = 29 - 25 = 4$ and $\sigma = 2$. The median is $(4+5)/2 = 4.5$ and the mode is 4.
Random Variables
A random variable assigns a number to each outcome of an experiment. It is discrete if it takes countable values (number of defective bearings in a batch) and continuous if it takes any value in an interval (bore diameter of a cylinder).
For a discrete variable the expectation and variance are
Useful operational rules: $E(aX + b) = aE(X) + b$, while $V(aX + b) = a^2 V(X)$. Adding a constant shifts the mean but leaves the spread untouched — a point objective items test directly.
The Three Named Distributions
Binomial distribution
Applies to $n$ independent trials, each with the same success probability $p$ (and $q = 1 - p$):
Because $q < 1$, the variance of a binomial variable is always less than its mean — a quick consistency check on any answer.
Example. A drill bit has a 10% chance of failing per shift. In 5 shifts, the probability of exactly one failure is $\binom{5}{1}(0.1)(0.9)^4 = 5(0.1)(0.6561) = 0.328$.
Poisson distribution
The limiting case of the binomial when $n \to \infty$, $p \to 0$ with $\lambda = np$ finite. It models rare events in a fixed interval — conveyor belt failures per month, flaws per metre of weld:
The equality of mean and variance is the distribution's signature; a data set whose sample mean and variance are close is well modelled as Poisson.
Example. If a longwall face averages 2 unplanned stoppages per week, the probability of no stoppage in a given week is $e^{-2} = 0.135$.
Normal distribution
The continuous bell curve with density
It is symmetric about $\mu$, where mean, median and mode all coincide, and the total area under the curve is 1. The standard normal variate is
which has mean 0 and standard deviation 1. The empirical rule gives the areas worth memorising:
| Interval | Area |
|---|---|
| $\mu \pm 1\sigma$ | 68.27% |
| $\mu \pm 2\sigma$ | 95.45% |
| $\mu \pm 3\sigma$ | 99.73% |
The last row is the basis of the $\pm 3\sigma$ control limits used in statistical process control and of the six-sigma quality vocabulary.
Comparison Table
| Distribution | Type | Mean | Variance | Typical use |
|---|---|---|---|---|
| Binomial | Discrete | $np$ | $npq$ | Fixed number of pass/fail trials |
| Poisson | Discrete | $\lambda$ | $\lambda$ | Rare events per unit time or length |
| Normal | Continuous | $\mu$ | $\sigma^2$ | Measurements, tolerances, errors |
Sampling
The syllabus also names sampling theorems. The central result is that the sample mean of a large sample is approximately normally distributed about the population mean with standard error
regardless of the shape of the parent population. Quadrupling the sample size therefore halves the standard error — the reason inspection plans show diminishing returns as sample size grows.
For a binomial distribution with n = 20 and p = 0.3, the mean and variance are respectively:
A distinguishing property of the Poisson distribution is that:
In a normal distribution, approximately what percentage of observations lie within two standard deviations of the mean?
If every observation in a data set is increased by a constant 5, then: