Un’applicazione importantissima della probabilità condizionata sono i test diagnostici (medici, antidoping, di qualità). Un test non è mai perfetto: può dare falsi positivi o falsi negativi. Da qui nascono tre quantità chiave — sensibilità, specificità e precisione — e il celebre “paradosso dei test rari”, in cui un test apparentemente ottimo diventa poco affidabile su una malattia poco diffusa. Il teorema di Bayes è lo strumento che permette di calcolare ciò che davvero interessa al paziente.
A hugely important application of conditional probability are diagnostic tests (medical, anti-doping, quality). A test is never perfect: it can give false positives or false negatives. From here arise three key quantities — sensitivity, specificity and precision — and the celebrated “paradox of rare tests”, in which an apparently excellent test becomes unreliable for a rarely occurring illness. Bayes’ theorem is the tool that lets us calculate what really interests the patient.
Un’applicazione importantissima della probabilità condizionata sono i test diagnostici (medici, antidoping, di qualità, ecc.). Un test non è mai perfetto: può dare falsi positivi (allarme senza malattia) o falsi negativi (malattia non rilevata).
Definiamo:
- = “il soggetto è effettivamente malato”;
- = “il test dà esito positivo”.
Le quattro combinazioni possibili sono:
| (malato) | (sano) | |
|---|---|---|
| (test ) | vero positivo () | falso positivo () |
| (test ) | falso negativo () | vero negativo () |
A partire da questa tabella si definiscono tre quantità importanti.
Definizione
- Sensibilità (o recall) : probabilità di essere positivo al test sapendo di essere malato. Un test sensibile “non si fa scappare” i malati.
- Specificità : probabilità di essere negativo al test sapendo di essere sano. Un test specifico “non dà falsi allarmi”.
- Precisione (o valore predittivo positivo) : se il test è positivo, qual è la probabilità di essere davvero malato? È la quantità più utile per il paziente, e la domanda a cui risponde il teorema di Bayes.
Attenzione — Paradosso dei test rari
Un test con alta sensibilità e alta specificità può comunque avere bassa precisione se la malattia è rara. Questo è il famoso “paradosso dei test rari”: se solo persona su è malata, anche un test al di sensibilità e di specificità produce un numero di falsi positivi paragonabile al numero di veri positivi, e risulta molto più bassa di quanto ci si aspetterebbe. È lo stesso meccanismo dei test su malattie a bassa prevalenza: con una malattia allo , sensibilità e specificità , la precisione era solo del .
Collegamenti
Argomenti: Probabilita
Concetti: Precisione · Probabilita condizionata · Sensibilita · Specificita · Teorema di bayes
Competenze: Calcolo probabilita
A hugely important application of conditional probability are diagnostic tests (medical, anti-doping, quality, etc.). A test is never perfect: it can give false positives (an alarm without illness) or false negatives (an illness not detected).
Let us define:
- = “the subject is actually ill”;
- = “the test gives a positive result”.
The four possible combinations are:
| (ill) | (healthy) | |
|---|---|---|
| (test ) | true positive () | false positive () |
| (test ) | false negative () | true negative () |
From this table three important quantities are defined.
Definition
- Sensitivity (or recall) : the probability of testing positive given that one is ill. A sensitive test “does not let the ill slip through”.
- Specificity : the probability of testing negative given that one is healthy. A specific test “does not raise false alarms”.
- Precision (or positive predictive value) : if the test is positive, what is the probability of actually being ill? It is the most useful quantity for the patient, and the question that Bayes’ theorem answers.
Caution — The paradox of rare tests
A test with high sensitivity and high specificity can nonetheless have low precision if the illness is rare. This is the famous “paradox of rare tests”: if only person in is ill, even a test with sensitivity and specificity produces a number of false positives comparable to the number of true positives, and turns out to be much lower than one would expect. It is the same mechanism as tests for low-prevalence illnesses: with an illness at , sensitivity and specificity , the precision was only .
Links
Topics: Probability
Concepts: Precision · Conditional probability · Sensitivity · Specificity · Bayes’ theorem
Skills: Probability calculation
Esempio — Test epidemiologico
Un test per una malattia rara ha (la malattia colpisce persone su ), (precisione) e . Riempiamo la tabella di contingenza usando persone come popolazione di riferimento.
| (malato) | (sano) | Totale | |
|---|---|---|---|
| (test ) | |||
| (test ) | |||
| Totale |
Da qui si leggono direttamente le tre quantità caratteristiche del test:
- Sensibilità
- Specificità
- Precisione
Un test usato bene: pochi falsi positivi e una specificità molto alta.
Collegamenti
Argomenti: Probabilita
Concetti: Precisione · Sensibilita · Specificita · Tabella di contingenza
Metodi: Bayes · Prob totale
Competenze: Calcolo probabilita
Example — Epidemiological test
A test for a rare illness has (the illness strikes people in ), (precision) and . Let us fill in the contingency table using people as the reference population.
| (ill) | (healthy) | Total | |
|---|---|---|---|
| (test ) | |||
| (test ) | |||
| Total |
From here the three characteristic quantities of the test can be read directly:
- Sensitivity
- Specificity
- Precision
A well-used test: few false positives and a very high specificity.
Links
Topics: Probability
Concepts: Precision · Sensitivity · Specificity · Contingency table
Methods: Bayes · Total probability
Skills: Probability calculation