VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

What Is Vocabulary | Why Aren’t “Sensitivity”, “Specificity”, “Precision”, “Recall” and “Prevalence” the Same?

Sensitivity, specificity, precision, recall and prevalence answer different questions about classification. Sensitivity measures the share of actual positive cases correctly flagged; specificity measures the share of actual negative cases correctly cleared; precision measures the share of flagged positive cases that truly belong to the positive category; recall is another name for sensitivity in a binary classification task with the positive class defined the same way; and prevalence describes how common the positive condition is in the evaluated population. One classification model can have high sensitivity but disappointingly low precision when the condition is rare. These results are not contradictory: they use different denominators.

To judge a screening tool, editorial classifier or AI safety filter, define the condition, reference truth, decision threshold, population, sample size and consequence of each kind of error. Then calculate metrics from the same confusion matrix and inspect what changes when prevalence or operating conditions change. These are conditional performance descriptions, not automatic medical diagnoses, personal guarantees or legal decisions. The calculations below use fictional records and distinguish a convenient theoretical example from the complex evidence needed for real deployment.

  • Sensitivity: Among actual positive cases, how many did the system catch?
  • Specificity: Among actual negative cases, how many did the system correctly dismiss?
  • Precision: Among flagged positive cases, how many really were positive?
  • Recall: In binary classification, the positive-class sensitivity under the same definitions
  • Prevalence: How frequent the positive condition is in the reference population
  • Threshold: Where the score becomes a positive label, affecting false alarms and misses
  • Key safeguard: Never publish a percentage without its event definition and denominator

1. Five Words, Five Denominators

What is sensitivity?

Sensitivity, also called the true-positive rate for a binary task, compares correctly identified positives with all actual positives under the reference. Its formula is true positives divided by true positives plus false negatives. It asks how much of the target condition the classifier detects. A test may have excellent sensitivity while generating many false alarms among people or items without the condition. Google’s classification metrics guide uses the confusion matrix to define recall and these related measures.

What is specificity?

Specificity is the true-negative rate: correctly classified negative cases divided by all actual negative cases. It answers how effectively the system recognises the absence of the target condition. A filter with low specificity may flag too many harmless cases. In binary evaluation, specificity can be considered recall for the negative class under matching definitions. It should be reported alongside sensitivity for consequential screening rather than assume that high performance on one class establishes high performance on the other.

What is precision?

Precision is true positives divided by all positive predictions, including false positives. It asks a practical question: of the cases the model flagged, what share was correctly flagged? In a binary screening setting with an appropriate reference, it corresponds mathematically to positive predictive value. The word precision has different meanings in metrology, where it concerns closeness of repeated measurements; that is not the same formula. Always state whether the context is classification or physical measurement.

What is recall?

Recall is the proportion of all actual positive cases retrieved or detected. Under the same binary positive-class reference and threshold, it equals sensitivity. The term is common in information retrieval and machine learning, where recovering relevant documents or messages matters. This identity of formulas does not mean every use of sensitivity in science has the same operational conditions as a search engine. A useful glossary names which category counts as positive and what independent reference determined it.

What is prevalence?

Prevalence describes the proportion of the relevant population that actually has the defined condition at the chosen time or period, using the appropriate epidemiological or statistical definition. In a toy binary dataset it is the total actual positives divided by all evaluated cases. The value does not report whether the classifier is accurate. But it can substantially change the share of positive predictions that are correct, even when conditional test characteristics are assumed unchanged.

What is accuracy?

Accuracy is all correct classifications divided by the total evaluated. It includes both true positives and true negatives. In a dataset dominated by negatives, a classifier that calls everything negative can achieve high accuracy while missing every positive case. This is why a headline such as 99 percent accurate is insufficient when the task concerns uncommon but consequential events. Reporting sensitivity, specificity, precision and the underlying support counts makes the evaluation much easier to interpret.

2. One Fictional Confusion Matrix With Reproducible Numbers

Define the test before counting

Imagine a fictional system sorting 1,000 documents into those that need specialist review and those that do not. A qualified reference procedure labels 100 documents as truly needing review and 900 as not. The automated model uses one fixed threshold. For teaching purposes assume the reference is accurate and the cases were recorded correctly. These are invented numbers, not observations about a published AI product. We can now calculate each measure using the same denominator rules.

True positive and false negative

Of the 100 documents that genuinely require review, the model flags 80. These 80 are true positives. It misses 20, which are false negatives. A false negative is not a model merely expressing uncertainty; under this reference it is an actual positive that received a negative prediction. The sensitivity is therefore 80 divided by 100, or 80 percent. The remaining 20 percent is the false-negative rate, within the stated task and threshold.

True negative and false positive

Of the 900 documents that do not need specialist review, the model correctly clears 860. These are true negatives. It incorrectly flags 40, which are false positives. The specificity is 860 divided by 900, approximately 95.6 percent. The false-positive rate is 40 divided by 900, approximately 4.4 percent. Neither percentage alone reveals how many documents the reviewers will need to examine because that workload also depends on how common positive cases are.

Calculate precision from flagged documents

The model raises 80 genuine positive flags plus 40 false alarms: 120 positive predictions. Precision is 80 divided by 120, approximately 66.7 percent. Therefore roughly one in three flagged documents is a false alarm in this toy dataset. The model has respectable specificity while still creating a meaningful review workload. If a dashboard displays only the 80 percent sensitivity number, the user may not realise that 40 of the 120 flags were mistaken.

Calculate prevalence and overall accuracy

The actual positive prevalence is 100 out of 1,000, or 10 percent. The total correct classifications are 80 true positives plus 860 true negatives, giving 940 out of 1,000 and 94 percent accuracy. This provides a useful illustration of why accuracy, sensitivity and precision differ: 94, 80 and 66.7 percent all describe the same fictional classifier without inconsistency. The denominator and corresponding question determine what each number means.

A negative result uses another denominator

Negative predictive value is true negatives divided by all negative predictions, including false negatives. Here the model gives 860 true-negative predictions and 20 false-negative predictions, so the negative predictive value is 860 divided by 880, approximately 97.7 percent. This is not specificity. Specificity asks about all actually negative cases; negative predictive value asks about all negative predictions. Understanding both directions prevents conditional probabilities from being accidentally reversed.

The table as an audit record

A useful evaluation record preserves the four counts: true positives 80, false positives 40, false negatives 20 and true negatives 860. It also preserves the positive label definition, threshold, sample selection, reference procedure, test date and data version. Calculated percentages can then be independently checked. A polished chart without underlying counts can conceal uncertainty or a changed interpretation. The vocabulary turns each score into a reproducible claim instead of an isolated badge.

3. Why Prevalence Changes the Meaning of a Positive Flag

Hold conditional rates fixed in a hypothetical population

Imagine the same 80 percent sensitivity and an exactly chosen 95.555… percent specificity applied to 10,000 fictional cases where only one percent truly needs review. This mathematical exercise assumes the conditional error rates remain fixed across populations; real screening systems may not satisfy that assumption because case mix and conditions differ. Of 100 actual positives, 80 would be flagged. Of 9,900 actual negatives, roughly 440 would be falsely flagged at that specific false-positive rate.

Now calculate the new precision

The total positive flags would be 80 true positives plus 440 false positives, or 520. Precision becomes 80 divided by 520, approximately 15.4 percent. The positive flags are now mostly false alarms despite unchanged assumed sensitivity and specificity. The new prevalence is lower: 100 out of 10,000 instead of 100 out of 1,000. This is a clear demonstration of why the population denominator matters when interpreting what a positive test means.

Why this is not a real-world guarantee

Sensitivity and specificity are conditional performance characteristics that are often discussed as more transportable than predictive values, but they can vary across settings with different case severity, measurement, thresholds or populations. A diagnostic accuracy meta-analysis examined associations between prevalence and these measures across studies. The arithmetic illustration holds rates fixed to isolate one mathematical effect. It does not prove any particular device would behave identically after deployment in another population.

Base rate is a population fact, not a model opinion

Prevalence is sometimes discussed as a base rate. It describes the share of the defined outcome in a specified group, using appropriate evidence. A model cannot simply declare that its target is common because it makes many positive predictions; predictions are not the reference outcome. A proper study may estimate prevalence from sampling, account for uncertainty and specify the period. The term base rate should remain attached to a population, event and observation method.

Conditional probability cannot be inverted

The chance that a system flags an actual positive is not the same as the chance that a flagged case is actually positive. The first corresponds to sensitivity; the second to positive predictive value. Bayes’ theorem connects them using prevalence and false-positive behaviour, but the equality is not automatic. Writers often mislead by swapping these conditional statements in a sentence. A simple check is to ask which category comes after the word among: actual positives or flagged positives?

When a user asks what their result means

A positive result in a consequential application cannot be interpreted from sensitivity alone. The appropriate reference population, individual circumstances, specificity, prevalence and any follow-up procedure may all matter. For healthcare, a qualified clinician must interpret the actual test and its indication. For AI moderation, a human reviewer may assess flagged content under the applicable policy. The word positive is an output category, not a universal verdict about a person.

4. Thresholds, Trade-Offs and Model Scores

A threshold converts scores into labels

A classifier may assign a numerical score reflecting estimated likelihood or another ranking statistic. An operating threshold determines when it produces a positive prediction. Changing the threshold can alter true positives, false positives, false negatives and true negatives. The metrics calculated from them may therefore change. Google’s threshold guidance illustrates this relationship. A numeric threshold is a decision rule, not independent evidence that a flagged event occurred.

Raising a threshold has common but nonuniversal effects

For an otherwise fixed scoring model, requiring a higher score for a positive prediction usually means fewer positive flags. That can reduce false positives and may miss more actual positives. Precision can sometimes improve, but not in every finite dataset or every threshold step. The right assessment calculates the resulting confusion matrix rather than treat an intuition as guaranteed. A model should not promise perfect precision simply because an operator chooses a stringent cutoff.

Lowering a threshold changes the operational burden

A lower threshold commonly captures more actual positives, improving or preserving recall, while potentially sending more false positives for review. A safety-sensitive application might accept extra review to reduce missed hazards. A service that imposes irreversible sanctions may require stronger safeguards against false accusations. The choice is contextual and may involve law, fairness and human oversight. No universally correct threshold follows from the arithmetic alone.

ROC curves and precision-recall curves answer different views

Receiver operating characteristic curves compare true-positive and false-positive rates across thresholds. Precision-recall curves focus on precision and recall, which may be particularly informative for rare positive cases. But a chart is not the same as an operational policy: a deployment picks specific thresholds under actual constraints. Evaluation should identify the reference distribution and data collected. A model may rank well while being poorly calibrated, so a separate probability-quality assessment can still be necessary.

A metric can be undefined

If a model never produces a positive prediction, precision has a zero denominator: true positives plus false positives equals zero. It is not automatically correct to claim 100 percent precision. Libraries can use conventions for undefined cases, which should be disclosed. Similar issues arise if there are no actual positives for recall or no actual negatives for specificity. A meaningful evaluation checks class support before publishing an attractive score.

Measurement precision is not classification precision

In metrology, precision often describes agreement among repeated measurements under specified conditions. In binary classification, precision is the fraction of positive predictions that are correct. The same word carries distinct technical meanings. A laboratory’s highly precise sensor might feed a classifier with low positive predictive value in a rare-event population. Writers should avoid presenting these as one universal scale of quality. The domain and formula define the term.

5. The Reference Labels and Population Can Be Wrong

Who decides the reference positive class?

In a document-review classifier, human annotators may disagree about what requires review. In a technical inspection, the reference might be a specialised instrument or professional assessment. The evaluation score depends on those labels. If the reference is inconsistent, a model could be marked wrong for a reasonable interpretation or rewarded for reproducing a mistaken decision. The audit should report annotation rules, disagreement and verification processes rather than call every label incontrovertible ground truth.

Spectrum and selection effects matter

A test evaluated only on clear-cut examples may perform differently on ambiguous borderline cases. A screening study with a selected clinical sample may not represent the broader public. Research on diagnostic accuracy measures emphasises study design, population spectrum and the need to report uncertainty. An AI model tested on familiar document types likewise may not generalise to new languages and formats. The phrase 95 percent specific must be accompanied by the conditions under which it was estimated.

Sampling uncertainty surrounds the percentages

A sensitivity estimate based on ten actual positives is less stable than the same percentage based on thousands of properly sampled positives, all else equal. Confidence intervals and study design can help describe uncertainty. The denominators in the toy example are large enough for arithmetic practice, not for universal deployment claims. Published dashboards should show class counts and relevant interval estimates where appropriate. Rounding a rate to a decimal place does not reveal how much uncertainty the sample carries.

Missing outcomes change apparent performance

If some flagged or unflagged cases never receive an independent reference assessment, the confusion matrix may be incomplete. The missing cases might be systematically harder than those verified. A reported precision calculated only from easily reviewed positives can therefore overstate or understate actual performance. Missingness should be documented; a case without a reference label should not be silently treated as a true negative. Complete-looking tables can conceal incomplete evidence.

Group-specific performance deserves review

A model may achieve favourable averages while producing poor specificity or sensitivity for a smaller group. Evaluation should include relevant languages, populations and settings under suitable privacy safeguards. The appropriate fairness and governance criteria depend on actual use and consequences. A single performance metric is not a universal justice certificate. The report should distinguish observed differences, uncertainty, potential causes and conclusions requiring additional evidence.

Prevalence can change through the system itself

A detection tool may alter behaviour after deployment. Users might adapt, reporting practices may change or the system may increase the number of cases sent for confirmation. The observed positive rate can then change for reasons other than the true underlying prevalence. A responsible analyst examines the data-generating process and downstream intervention rather than assume every change in flagged volume reflects a change in the world.

6. Applications Beyond Medical Screening

Spam filtering and the cost of a false alarm

An email filter treats spam as its positive class. Recall measures how much true spam it catches; precision measures what share of messages marked spam really are spam. A legitimate message mistakenly quarantined can have meaningful consequences. Sensitivity and specificity can help tune the filter, but user-specific mail patterns and the cost of errors matter. A well-designed service may allow review and restoration instead of permanently deleting a message merely because a classifier called it positive.

Document safety review

Imagine a publisher using an AI classifier to flag possible misleading source claims. The system can identify many genuinely problematic passages while also flagging accurate but unusual writing. A specialist should interpret flags in context rather than treat them as confirmed fabrication. Precision helps estimate reviewer workload, and recall helps estimate missed issues under an appropriate reference. The final content decision still requires reading the source and following the publisher’s actual editorial standards.

Fraud alerts and presumption of innocence

A transaction-monitoring system may mark unusual transfers for investigation. The positive label is a flag under a model, not proof of fraud or intent. High recall can be valuable for finding possible risks, but false positives can burden legitimate customers. A deployment should provide proportional intervention, suitable human review and correction routes. The arithmetic identifies potential classification performance; it does not decide legal responsibility or the moral status of an individual.

Rare equipment faults

A factory may monitor rare equipment problems. Even a low false-positive rate can generate many alarms when failures are extremely uncommon. On the other hand, missed faults can be expensive or unsafe. Maintenance teams should evaluate total false alarms, genuine detections and operational capacity at realistic prevalence. A detector’s apparent accuracy in a test dataset with artificially balanced classes may not predict the field workload. Preserve the actual deployment base rate.

Research article retrieval

An information-retrieval system may retrieve articles relevant to a scientific question. Precision counts the relevant items among those retrieved; recall compares retrieved relevant items with all relevant items under the evaluation reference. In practice, defining all relevant documents can itself be difficult, and evaluation collections may be incomplete. The metrics are useful when the relevance criteria are clear. They should not be presented as evidence that every retrieved article is factually sound.

7. Wording Errors That Distort Screening Claims

Calling sensitivity the chance a positive flag is true

This reverses the condition. Sensitivity is calculated among actual positives; precision is calculated among positive predictions. In general the values differ because the populations in the denominators differ. A clear public explanation should name the group in words rather than display an unlabeled percentage. If a marketing page makes this mistake, correct the sentence and provide the confusion-matrix counts rather than merely replace one technical term with another.

Calling precision accuracy

Classification precision examines positive predictions; accuracy examines all classifications. A model can achieve high overall accuracy in a negative-dominated dataset while having poor positive precision or missing most true positives. Neither metric inherently overrides the other. The best selection depends on the purpose and harms. A report that highlights only the more flattering score while concealing other important errors risks misleading the reader.

Treating predicted prevalence as true prevalence

The proportion of model predictions marked positive is not necessarily the actual proportion of positive cases. False alarms and missed positives affect the relationship. If a platform reports that 40 percent of posts were harmful merely because its classifier flagged 40 percent, it may be describing model output rather than established content classification. The correct label should distinguish observed predictions, verified reference outcomes and statistical estimates.

Generalising across settings without validation

Performance measured on one language, institution or time period may change in another. The label definition, prevalence, input quality and case mix all matter. A model trained on old document formats may misread a new format. A clinical test evaluated on one population may require additional evidence elsewhere. The transferable claim should be as narrow as the evidence permits, and any extrapolation labelled as an assumption.

Promising individual certainty from group metrics

Sensitivity and specificity are rates across cases under defined conditions. A positive result for one person or document requires the appropriate evidence and follow-up. Do not tell a reader that a sensitivity value alone equals their probability of having a condition. The diagnostic test explanation stresses the importance of prevalence for predictive values and careful interpretation. Probabilistic performance is not a personal verdict.

8. A Seven-Question Audit and Seven-Day Exercise

Seven questions before using a test-performance claim

Ask which category is positive; what constitutes the reference truth; whether all four confusion-matrix counts are available; which denominator each percentage uses; what prevalence characterises the evaluated population; which threshold and costs govern the decision; and whether the deployment matches the tested population. These questions expose most basic language errors without needing a large scientific report. They also point to cases where more expert analysis is necessary.

Days one and two: draw the four cells

Start with a fictional set of 1,000 records: 80 true positives, 20 false negatives, 40 false positives and 860 true negatives. On the first day, label the actual positives and negatives. On the second day, calculate sensitivity and specificity. Write each denominator in a full sentence. Do not merely memorise formula names; explain which people or items belong to each fraction. This creates a durable link between vocabulary and arithmetic.

Days three and four: interpret positive predictions

On day three, calculate precision and overall accuracy from the same matrix. On day four, calculate the negative predictive value and ask why it differs from specificity. Record the actual positive prevalence. Then rewrite one misleading statement that swaps the conditioning group. These exercises show that correctly computed percentages can carry different meanings without contradicting one another.

Days five and six: vary prevalence and threshold

On the fifth day, use a hypothetical population with a lower base rate while clearly stating that sensitivity and specificity are held constant only for the arithmetic demonstration. Recompute the flagged positives and precision. On the sixth day, imagine changing a score threshold and predict which error counts might move, then confirm using a toy list of scores rather than rely solely on intuition. The exercise makes model operating rules visible.

Day seven: produce a bounded explanation

Write a short report with target condition, source of reference labels, confusion matrix, threshold, sample population, performance metrics and uncertainty. State whether the figures describe training, independent testing or actual deployment. If the task is medical or another high-stakes service, the report must not substitute for qualified assessment. A useful explanation tells the reader what the evidence established and what it did not.

9. Frequently Asked Questions

Is sensitivity the same as recall?

For a binary classification problem with the same positive class, threshold and reference labels, yes: both equal true positives divided by true positives plus false negatives. The words may appear in different professional settings, so their context still matters.

Is specificity the same as precision?

No. Specificity is calculated among actual negatives; precision among predicted positives. They use different denominators and respond differently to class prevalence.

Why can positive precision be low when specificity is high?

When the positive event is rare, many negative cases remain available to generate false alarms. Even a small false-positive rate can produce more false flags than true positives. The exact result depends on the population and conditional rates.

Can a test with high accuracy miss most rare cases?

Yes. A classifier that predicts negative for everyone can score well when positives are rare while having zero recall. Always examine class-specific errors and the actual task.

Do sensitivity and specificity remain constant in every population?

No universal guarantee exists. Case mix, reference procedures, thresholds and operating conditions can change actual measured performance. Transporting scores requires validation.

Does a positive screening result mean a person has a condition?

Not by itself. Screening results require appropriate interpretation and sometimes follow-up testing under the applicable professional pathway. The numerical metric is not an individual diagnosis.

Continue the Vocabulary at Every Zoom Level

Read the related vocabulary guides to compare the statistical meaning of a score, the quality of its reference data and the real-world decisions it can legitimately support.

Companion Articles in This Batch

Follow these connected guides to distinguish statistical evidence, AI model evaluation, missing information and changing data populations. Each explores a different boundary between a useful number and an unsupported conclusion.

Sources and Further Reading