Indicators Turn Event Counts into Sums
An indicator is one when an event occurs and zero otherwise. Its expectation is exactly that event's probability.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Estimate the number flagged
Three records have flag probabilities 0.2, 0.5, and 0.4. The expected flagged count is 1.1 by adding these probabilities. This uses linearity of expectation, even if several flags tend to occur together.
Distinguish a different question
The chance that exactly one record is flagged depends on how the flags co-occur. It cannot generally be read from the expected count. See independence for what product assumptions would add.[1]
Rewrite a count using one zero-or-one variable per event
Three sensors might fail together during a shared outage. Let each indicator be one if its sensor fails during a period. If all three fail exactly on outages of probability one fifth, each indicator has expected value one fifth. Linearity gives expected count three fifths even in this dependent case. See expectation.
Outcome no outage: indicators (0,0,0), count 0, probability 4/5
Outcome outage: indicators (1,1,1), count 3, probability 1/5
Expected count: 3/5
Distinguish expected count from chance of any event
The example has chance one fifth of any sensor failure. Three fifths counts expected sensor failures per period. A probability of at least one failure needs information about joint events. Check both quantities for a shared cause.