A fair die
P(X = k) = 1/6 for k = 1..6
Equally likely.
The discrete uniform distribution on has , mean and variance .
This page is easier if you are comfortable with:
For a fair die, : and . For : and . The probability on a die is . The formulas come from the sums and (sum of the first n integers, triangular numbers) inserted in the expectation and variance formulas.
With variance the standard deviation of a die is . The continuous analogue is the uniform distribution (the continuous uniform distribution), with variance , the limit when is large.
The sum of two dice is not uniform but triangular (sums of independent random variables), and the average of many rolls is approximately normal (the central limit theorem). Equally likely outcomes are the starting point of probability (the probability of an event).
A discrete uniform variable gives every value in a list the same chance, as with a fair die.
The mean is 3.5 and the variance 35/12.
These examples are worked by hand, step by step, so you can compare your own working.
Find for a fair die.
Find for a fair die.
Find for .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
P(X = k) = 1/6 for k = 1..6
Equally likely.
(n + 1)/2 = 3.5
For n = 6.
(n² − 1)/12 = 35/12 ≈ 2.9167
For n = 6.
√2.9167 ≈ 1.7078
Spread of a die.
If X is uniform on {1, 2, …, n}, then P(X = k) = 1/n, E(X) = (n + 1)/2 and Var(X) = (n² − 1)/12.
Find P(X = 3) for a fair die.
Find E(X) for a fair die.
Find Var(X) for a fair die.
Find the mean and variance for X uniform on 1..10.
n/2 = 3 ✗
(n + 1)/2 = 3.5 ✓
Values start at 1.
36/12 = 3 ✗
(n² − 1)/12 ✓
Subtract 1.
range 0..n−1 ✗
adjust the mean ✓
Shift by 1.
density 1/n ✗
probability mass 1/n ✓
Discrete.
Try each one on paper, then open the answer. Use the solver above to see the full working.
5.5
1.25
0.125
50.5
11.9167
1.7078
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
All n values equally likely.
(n + 1)/2 and (n² − 1)/12.
35/12.
It has a finite set of values.
variance and standard deviation.
More in Advanced statistics and stochastic processes and the formula sheets.