The centre of a distribution
The topic Functions of random variables showed how to get the full distribution of : through the CDF, or with the change of variables . But a full distribution is a whole function. To compare two models, report a benchmark or state what a model should learn, we usually want one or two numbers: where the distribution sits and how wide it is. This topic builds both.
The first number is the expectation. For a discrete it weights each value by its probability:
For a continuous the sum becomes an integral against the density:
A fair die gives , a value it never shows. So the expectation is not "the typical value". It has two other readings.
- Balance point. Put mass at each point of a weightless rod. The rod balances at .
- Long-run average. Average many independent copies of , and the average settles near . The topic The law of large numbers makes this precise.
For the Poisson distribution the sum takes one line:
So is exactly the average count, as promised in Discrete distributions. The other families from the previous topics have these means:
| Distribution | |
|---|---|
The expected wait for a six is , so 6 rolls on average.
An expectation can fail to exist: the sum or integral must converge absolutely. The Cauchy distribution, with density , has tails so heavy that . Its running averages never settle down.