Precision depends on the population being measured. This lesson keeps detector behavior fixed and changes only the exact base-rate rows.

highlighted = computed this step

Low-positive population

Start with 10 actual positives and 90 actual negatives. The detector catches 8 of the 10 positives and flags 9 of the 90 negatives. Precision is 8/17.

TP=8,  FN=2,  FP=9,  TN=81,P=8/17TP=8,\;FN=2,\;FP=9,\;TN=81,\quad P=8/17
Base rate changes precisionExact same-detector comparison.low-positive populationoutputpositivenegativeactualpositivenegativeTP8FN2FP9TN81precision=8/17recall=4/5; FPR=1/10higher-positive populationoutputpositivenegativeactualpositivenegativeTP40FN10FP5TN45precision=8/9recall=4/5; FPR=1/10base-rate precision comparisonpopulationactual +actual -TPFNFPTNprecisionrecallFPRlow-positive population1090829818/174/51/10higher-positive population505040105458/94/51/10same recall and FPR; precision changes with base ratesame recall and same false-positive rate; precision changes because the population changed; one pinned slice only; does not prove future performance; NOTtraining; NOT calibration; NOT generalizationthreshold fixed first; metric alone is not a claim; NOT training

Higher-positive population

Now use 50 actual positives and 50 actual negatives with the same detector behavior. It catches 40 positives and flags 5 negatives. Precision is 8/9.

TP=40,  FN=10,  FP=5,  TN=45,P=8/9TP=40,\;FN=10,\;FP=5,\;TN=45,\quad P=8/9
Base rate changes precisionExact same-detector comparison.low-positive populationoutputpositivenegativeactualpositivenegativeTP8FN2FP9TN81precision=8/17recall=4/5; FPR=1/10higher-positive populationoutputpositivenegativeactualpositivenegativeTP40FN10FP5TN45precision=8/9recall=4/5; FPR=1/10base-rate precision comparisonpopulationactual +actual -TPFNFPTNprecisionrecallFPRlow-positive population1090829818/174/51/10higher-positive population505040105458/94/51/10same recall and FPR; precision changes with base ratesame recall and same false-positive rate; precision changes because the population changed; one pinned slice only; does not prove future performance; NOTtraining; NOT calibration; NOT generalizationthreshold fixed first; metric alone is not a claim; NOT training

Same behavior, different precision

Both rows have recall 4/5 and false-positive rate 1/10. Precision changes from 8/17 to 8/9 because the population changed. This is one pinned slice, not a claim about training, calibration, or generalization.

R=4/5,FPR=1/10,P: 8/178/9R=4/5,\quad FPR=1/10,\quad P:\ 8/17\to8/9
Base rate changes precisionExact same-detector comparison.low-positive populationoutputpositivenegativeactualpositivenegativeTP8FN2FP9TN81precision=8/17recall=4/5; FPR=1/10higher-positive populationoutputpositivenegativeactualpositivenegativeTP40FN10FP5TN45precision=8/9recall=4/5; FPR=1/10base-rate precision comparisonpopulationactual +actual -TPFNFPTNprecisionrecallFPRlow-positive population1090829818/174/51/10higher-positive population505040105458/94/51/10same recall and FPR; precision changes with base ratesame recall and same false-positive rate; precision changes because the population changed; one pinned slice only; does not prove future performance; NOTtraining; NOT calibration; NOT generalizationthreshold fixed first; metric alone is not a claim; NOT training