Empirical Probabilities and Diagnostic Tests
Empirical probability measure
When the experiment modelled by a probability space can be repeated many times under similar conditions, one can assign an empirical probability measure instead of choosing a measure by theoretical arguments. Let be already chosen. To define the empirical measure :
- repeat the experiment times and record the outcomes ;
- to every event assign the probability where is the indicator function of , is the number of recorded outcomes that belong to , and is the total number of recorded outcomes.
It has already been checked (in the earlier lectures, see Empirical and Equiprobable MeasuresProbability theory does not say how to choose P; two common choices are the empirical measure built from repeated trials and, on a finite sample space, the equiprobable measure P(E) = favourable cases over all cases.Empirical and Equiprobable Measures →) that is a probability measure. Conditional probabilities are treated in Conditional ProbabilityThe conditional probability P(E|F) = P(E and F)/P(F) updates the probability of E after learning that F occurred; it is itself a probability measure and yields the multiplication formula for intersections.Conditional Probability →.
Intersections and conditional empirical probabilities
For the empirical probability of the intersection is where is the number of recorded outcomes in .
The empirical conditional probability of given follows from the definition of conditional probability: So it is simply the fraction of the outcomes in that also lie in .
Diagnostic tests
In many practical situations, for example to model diagnostic tests, the sample space contains four elementary outcomes: Here / mean that the test is positive / negative, and / mean that the individual does / does not have the condition.
To characterise the test, i.e. to specify its sensitivity and specificity, the test is administered to
- a number of individuals with the condition (as determined in the lab with exact procedures), and
- a number of individuals without the condition (again determined by an exact procedure).
After the test is given to the individuals, one records
- : individuals with the condition who test positive,
- : individuals with the condition who test negative,
and clearly . In the same way, for the individuals one records and with .
The four numbers are organised in a contingency table (the last row contains the column sums):
D+ D-
T+ n(T+D+) n(T+D-)
T- n(T-D+) n(T-D-)
sum n(D+) n(D-)From the table:
Sensitivity is the empirical probability that the test is positive for someone who has the condition; specificity is the empirical probability that it is negative for someone who does not.
Versione ripasso
- Repeat the experiment times, outcomes . Empirical measure: ; it is a probability measure.
- and .
- Diagnostic test: . Test individuals known to have the condition and known not to; fill the contingency table of (column sums , ).
- Sensitivity ; specificity .
- Typical mistake: dividing by the grand total instead of the column sum when computing sensitivity or specificity.