Suppose the support of a probability distribution consists of all consecutive integers from to , including both endpoints, with . Its cardinality is , and a discrete uniform distribution on it satisfies
For a short derivation, set , whose possible values are . The finite sums give
and hence
Adding shifts the expected value by and leaves the variance unchanged. For completeness, the first sum follows by pairing with . For the second, sum from to : the left side is , so inserting the first sum gives the stated result.
The edge case has : with probability one, expected value , and variance zero. On an arithmetic progression with , the same argument instead gives expected value and variance . Equal spacing is the extra hypothesis behind these formulas; the discrete uniform distribution on requires the general sums above.

Articles by others on the same topic (0)

There are currently no matching articles.