Flagged candidates in this realisation
One square = one actual flag, never a rounded expectation. Positions only pack the candidates; they are not sky coordinates.
A good detector can still produce mostly false candidates when genuine events are rare.
One square = one actual flag, never a rounded expectation. Positions only pack the candidates; they are not sky coordinates.
| Outcome | Expected count (not rounded to objects) | Realised count |
|---|
A real event has probability q = 10log prevalence. Its flag probability is sensitivity s; a non-event has flag probability f. These probabilities are known inputs, not estimated performance measurements. All 10,000 objects are independent.
P(real | flag) = qs / [qs + (1 − q)f]. Sensitivity is P(flag | real), the reverse conditional. The false-positive rate f is not the fraction of all flags that are false. For N scanned objects, expected genuine and false flags are Nqs and N(1 − q)f. Fractional expectations are meaningful even when less than one.
PPV is computed from full-precision probabilities, not from rounded expected or realised counts. Displayed decimal values are approximations. The realised ratio is a random statistic and is undefined when there are no flags. If the model itself gives zero probability of any flag, the conditional PPV is also undefined; that is a different situation.
Every mosaic square represents one actual flagged object in the scanned part of the survey. Expected counts in the other panel and table are not painted as fractional people or rounded to a pretend population. Hiding truth also hides all truth-dependent realised counts and bars; expected counts remain model predictions.
Identities are available only because this is a simulation. In real work, prevalence and detector performance are uncertain and may vary across populations. A richer model would propagate that uncertainty.
The browser retains the R lesson's model and default settings, uses an independent seeded random stream, and caches the full survey for playback. It extends the log-prevalence range from −4 down to −6 and permits f = 0 to expose rare and empty-survey limits. Animation has 100 percentage steps rather than 60. These changes do not replace the exact Bayesian probability with a sample fraction.