Discrete Uniform Distribution Calculator

statistical-calculators.site

How to Use This Calculator

Step 1: Enter Your Parameters

Step 2: Click "Calculate"

The calculator will instantly show you:

Step 3: Export Your Results

Use the buttons below the results to:

💡 Quick Tip: The discrete uniform distribution is perfect for modeling fair games of chance like dice rolls, card draws, or lottery numbers. If your range [m, n] extends outside the bounds [a, b], the calculator will automatically clamp the values. If m > n, the values will be swapped automatically.

Understanding the Discrete Uniform Distribution

The Discrete Uniform Distribution is a simple probability distribution where a finite number of integer outcomes are equally likely to occur. It is characterized by its simplicity and the assumption that every possible outcome has the exact same probability.

Key Formulas

Let the possible integer outcomes be from \(a\) to \(b\), inclusive. The total number of outcomes is \(n = b - a + 1\).

Examples with Step-by-Step Answers

Example 1: Rolling a Fair Die

Problem: You roll a single, fair six-sided die. What is the probability of rolling a number between 2 and 4 (inclusive)?

1. Identify the parameters:

  • The possible outcomes are {1, 2, 3, 4, 5, 6}. So, the lower bound \(a = 1\) and upper bound \(b = 6\).
  • The total number of outcomes is \(n = 6 - 1 + 1 = 6\).
  • We want to find the probability for the range \(m=2\) to \(n=4\).

2. Calculate the probability of a single event: \(P(X=k) = \frac{1}{6}\)

3. Count the successful outcomes: The integers in the range [2, 4] are {2, 3, 4}. There are 3 successful outcomes.

4. Calculate the total probability:
\(P(2 \le X \le 4) = P(X=2) + P(X=3) + P(X=4) = \frac{1}{6} + \frac{1}{6} + \frac{1}{6} = \frac{3}{6} = 0.5\)

Answer: There is a 50% chance of rolling a number between 2 and 4.

Example 2: Choosing a Random Number

Problem: A random integer is selected from the set {10, 11, ..., 20}. What is the mean and variance of this distribution?

1. Identify the parameters:

  • Lower bound \(a = 10\) and upper bound \(b = 20\).
  • Total outcomes \(n = 20 - 10 + 1 = 11\).

2. Calculate the Mean:

\(E[X] = \frac{a+b}{2} = \frac{10+20}{2} = 15\)

3. Calculate the Variance:

\(Var(X) = \frac{n^2 - 1}{12} = \frac{11^2 - 1}{12} = \frac{121 - 1}{12} = \frac{120}{12} = 10\)

Answer: The mean of the distribution is 15, and the variance is 10.