Calculate probabilities, statistics, and visualize discrete uniform distributions. Essential tool for probability and statistics.
Discrete Uniform Distribution: A random variable X has a discrete uniform distribution if it takes each of the values \(x_1, x_2, \ldots, x_n\) with equal probability \(\frac{1}{n}\).
For integer values from a to b: \(X \sim U(a, b)\) where \(P(X = k) = \frac{1}{b - a + 1}\) for \(k = a, a+1, \ldots, b\)
The discrete uniform distribution is one of the simplest probability distributions. It describes an experiment where there are a finite number of equally likely outcomes. Each value in the specified range has the same probability of occurring.
Mathematical Definition:
A random variable X has a discrete uniform distribution on the integers \(a, a+1, \ldots, b\) if:
\(P(X = k) = \frac{1}{b - a + 1}\) for \(k = a, a+1, \ldots, b\)
We write \(X \sim U(a, b)\) to indicate that X follows a discrete uniform distribution from a to b.
Equally Likely Outcomes: All values in the range have exactly the same probability of occurring. This is the defining characteristic of uniform distributions.
Finite Support: The distribution is only defined for a finite set of integer values between a and b inclusive. The size of this set is \(n = b - a + 1\).
Symmetry: When a and b are symmetric around their mean, the distribution is symmetric. The mean is always the midpoint: \(\frac{a + b}{2}\).
| Property | Formula | Explanation |
|---|---|---|
| Probability Mass Function | \(P(X = k) = \frac{1}{b - a + 1}\) | Constant probability for all values |
| Cumulative Distribution Function | \(F(k) = P(X \le k) = \frac{k - a + 1}{b - a + 1}\) | For \(k = a, a+1, \ldots, b\) |
| Mean (Expected Value) | \(E[X] = \frac{a + b}{2}\) | Average of minimum and maximum |
| Variance | \(Var(X) = \frac{(b - a + 1)^2 - 1}{12}\) | Measure of spread |
| Standard Deviation | \(\sigma = \sqrt{Var(X)}\) | Square root of variance |
Calculator Features: