A probability mass function with finite positive-mass support, nonnegative masses and total mass one. Listing its support means listing exactly positive-mass outcomes once, excluding zero-probability endpoint outcomes. A computational interface returning floating-point masses generally approximates exact rational or real probabilities.
For a finite probability distribution with support and a total function , assign each image value the combined mass of its preimages. Its support is exactly the finite image , listed without repetitions. Every listed mass is positive because it contains at least one positive source mass.
The fiber of a function construction gives a set partition of , so finite summation gives . This proves nonnegativity and normalization without assuming that is injective. In code, mapping support values and then overwriting repeated image keys is incorrect; repeated keys must have their masses added. For example, mapping a uniform distribution on four consecutive integers to parity produces two outcomes with mass one half each.
Articles by others on the same topic
There are currently no matching articles.