Uniform Discrete
Study guide: Exam P-1
A Uniform Discrete distribution gives the same probability to each of n consecutive integers. If X is uniform on \{1, 2, \ldots, n\}, the probability of each value is
P(X = k) = \frac{1}{n}
k = 1, 2, \ldots, n.
A fair die is rolled. What is the probability that it shows at least 5?
- The roll
Xis uniform on\{1, \ldots, 6\}, so each face has probability\frac{1}{6}.- Two faces, 5 and 6, are at least 5.
P(X \ge 5) = \frac{2}{6} = \frac{1}{3}.
Mean and variance
The mean and the variance of X are
E[X] = \frac{n+1}{2}
\text{Var}(X) = \frac{n^2 - 1}{12}
What are the mean and the variance of the roll of a fair die?
n = 6.E[X] = \frac{7}{2} = 3.5.\text{Var}(X) = \frac{36 - 1}{12} = \frac{35}{12} = 2.9167.
Integers from a to b
On the integers \{a, a+1, \ldots, b\} there are n = b - a + 1 values, and the mean is
E[X] = \frac{a + b}{2}
The variance is still (n^2 - 1)/12. Adding a constant to every value moves the mean but not the variance.
A claim count is equally likely to be any integer from 20 to 29. What are its mean and variance?
- There are
n = 29 - 20 + 1 = 10values.E[X] = \frac{20 + 29}{2} = 24.5.\text{Var}(X) = \frac{10^2 - 1}{12} = 8.25.
Expected value of a function
The expected value of a function g(X) is the average of g over the n values:
E[g(X)] = \frac{1}{n}\sum_{k} g(k)
A loss is equally likely to be any integer from 1 to 10. A deductible of 4 applies. What is the expected payment?
- The payment is
X - 4whenX > 4, and 0 otherwise.- Losses of 1 to 4 pay nothing, and losses of 5 to 10 pay 1 to 6.
- The expected payment is
\frac{1 + 2 + \cdots + 6}{10} = \frac{21}{10} = 2.1.
The continuous formula on a discrete range
(b - a)^2/12is the variance of the continuous uniform. For a die it gives25/12, which is too small. Count the values,n = b - a + 1, and use(n^2 - 1)/12 = 35/12.