The short list
Interview questions draw on a handful of distributions. Know these by heart:
| Distribution | Models | Mean | Variance |
|---|---|---|---|
| Bernoulli() | one yes/no trial | ||
| Binomial() | successes in trials | ||
| Geometric() | trials until the first success | ||
| Poisson() | count of rare events in a period | ||
| Uniform() | "anywhere in an interval" | ||
| Exponential() | waiting time at constant rate | ||
| Normal() | sums of many small effects |
A fair die is uniform on : mean , variance . The discrete uniform on has variance .
Facts that do the work
- Memorylessness. Geometric and exponential waiting times forget the past: . Having waited 10 minutes for a Poisson bus tells you nothing about the remaining wait.
- Racing exponentials. If and are independent, then and comes first with probability .
- Poisson limit. Binomial() with large and moderate is close to Poisson(). Sums of independent Poissons are Poisson.
- Normals are closed under linear maps. If and are independent normals, is normal with mean and variance .
- Lognormal. If then , larger than the median .
Worked example
three light bulbs
Three bulbs have independent exponential lifetimes with mean 1000 hours. What is the expected time until the first fails, and until all three have failed?
Show solutionHide solution
Each fails at rate . The first failure is the minimum of three, which is exponential with rate , so it comes after hours on average.
By memorylessness, the two survivors are then as good as new, so the next failure takes more hours, and the last more. In total
Worked example
quiet minutes
Trades in a stock arrive as a Poisson process at 3 per minute. What is the probability of no trades in a given minute? Of at least two?
Show solutionHide solution
The count in one minute is Poisson(3).
Knowledge check
A coin lands heads with probability 0.3. What is the variance of the number of heads in 100 flips?
Knowledge check
Buses arrive as a Poisson process, on average every 10 minutes. You have already waited 7 minutes. What is your expected additional wait?
Knowledge check
and are independent (the second parameter is the variance). What is ?
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).