Discrete example
Toss two coins and let be the number of heads. Its possible values are 0, 1 and 2, with probabilities .
Probability · further study
A distribution is more than a formula: it says which values are possible, how plausible they are and how far they tend to lie from the centre.
A random variable is a function that assigns a number to each outcome. The function itself is fixed; randomness comes from the outcome supplied to it.
Toss two coins and let be the number of heads. Its possible values are 0, 1 and 2, with probabilities .
A waiting time can take any non-negative real value in the model. Probabilities belong to intervals rather than individual points.
The support is the set of values on which the variable has positive mass or density.
| Object | Definition | Use |
|---|---|---|
| Probability mass function | For discrete variables; masses sum to 1. | |
| Density | , total area 1 | . |
| Cumulative distribution function | For every random variable; non-decreasing from 0 to 1. |
The expected value weights each value by its probability. It is the distribution's balance point and need not itself be an attainable value.
Expectation is linear: , without any independence assumption.
For a collection of observed data, measures of centre, position and spread answer different questions and are not interchangeable.
. It uses every value and is sensitive to extremes. The sample mean can estimate the theoretical mean .
After sorting the data, this is the middle value. With an even number of observations it is the mean of the two middle values. It is robust to extremes and skewness.
The most frequent value. A data set may have no mode or more than one. Mode also applies to non-numerical categories.
. Use it when observations, marks or groups carry different weights.
A quantile of order leaves roughly a fraction of the data below it. , the median and correspond to 25%, 50% and 75%.
The range is maximum minus minimum. The interquartile range measures the spread of the middle half and is less sensitive to extremes.
Two distributions can have the same mean but behave very differently. Variance is the mean squared distance from the mean; squaring prevents positive and negative deviations from cancelling.
Variance uses squared units. The standard deviation returns to the original units, which makes it easier to interpret.
Adding a constant does not change spread. Multiplication by multiplies standard deviation by and variance by .
Variances add for independent variables. In general, the term must be included.
Divide by when the data are the whole population. To estimate population variance from a sample, divide by ; Bessel's correction offsets systematic underestimation.
Use a dot for decimals, for example 2.5.
A standard score tells us how many standard deviations a value lies from the mean:
Standardisation produces a variable with mean 0 and variance 1 when the moments exist and . It does not make a non-normal distribution normal.
| Distribution | Model | Support | Mean; variance |
|---|---|---|---|
| Bernoulli | One success/failure trial | ||
| Binomial | Successes in independent trials | ||
| Geometric | Trials until first success | ||
| Poisson | Events at a constant average rate | ||
| Uniform | Equal-length intervals are equally likely | ||
| Exponential | Waiting time between Poisson events | ||
| Normal | Sums of many small effects |