Representing a Discrete Distribution as Probabilities
A probability mass table associates each possible value with its probability. Entries are nonnegative and sum to one across the support.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Check a weighted choice
A sampler for labels green, blue, and gray might assign 0.5, 0.3, and 0.2. Those add to one. Replacing gray with 0.4 makes the stated distribution invalid. Domain validation should reject or deliberately normalize such input according to its contract.
Read a grouped event
The probability of green or gray is 0.7 because the result has exactly one label. Counting disjoint cases motivates adding masses for disjoint results.[1]
Check the entire mass before calculating summaries
A delivery is delayed by zero, one or four minutes with probabilities 0.5, 0.3 and 0.2. The probabilities sum to one. A delay above one occurs with probability 0.2, and the expected delay is 1.1 minutes. See weighted expectation.
Delay minutes 0 1 4
Probability .5 .3 .2
Weighted term 0 .3 .8
Sum of weighted terms = 1.1
Combine repeated values before reading the table
If several elementary outcomes yield the same delay, add their probability contributions before treating each value as one row. Check for negative weights, units that differ between rows and a missing mass total. A rounded display table can sum to slightly less or more than one.