Markov's Inequality — Definition, Formula & Example
Markov's inequality is a rule that limits how likely a quantity that is never negative is to be much larger than its average. It needs only the mean. You do not need the shape of the distribution.
Let be a random variable with and finite expected value . Then for every constant , . Equivalently, . This follows from the pointwise inequality . The bound is attained exactly when takes only the values and .
Key Formula
Where:
- = A nonnegative random variable, such as a time, distance, or count
- = The expected value (mean) of X, which must be finite
- = Any positive threshold value
- = The probability that X is at least a
Worked Example
Problem: A pizza shop's delivery distances average 3 miles. Distances cannot be negative. Use Markov's inequality to bound the probability that a delivery is 12 miles or longer.
Step 1: Check the conditions. A distance is never negative, and the mean is known: . The threshold is , which is positive.
Step 2: Substitute the mean and the threshold into the inequality.
Step 3: Compare with a specific model. Suppose the distances actually follow an exponential distribution with mean 3. The exact probability is then far below the bound. Markov's inequality is guaranteed to be true, but it is often loose.
Answer: At most 25% of deliveries can be 12 miles or longer. This holds for every possible distribution of distances with a mean of 3 miles.
Why It Matters
Markov's inequality is the starting point for most tail bounds in probability courses. Chebyshev's inequality is Markov's inequality applied to the nonnegative quantity . That is why Chebyshev needs the variance and bounds deviations on both sides of the mean, while Markov needs only the mean and bounds the upper tail. In computer science, the same idea is used to show that a randomized algorithm rarely takes much longer than its expected running time.
Common Mistakes
Mistake: Applying the inequality to a variable that can be negative, such as a daily low temperature in degrees Fahrenheit.
Correction: The proof relies on . If can be negative, large positive values can be offset by negative ones, so the bound can fail. Shift the variable so it is nonnegative, or use Chebyshev's inequality instead. Also note that choosing gives a bound of at least 1, which tells you nothing.
