Tool for statistical calculation of Sensitivity and Specificity. Sensitivity and Specificity are two criteria of statistical measures evaluating probabilities of presence or absence of phenomena.
Sensitivity and Specificity - dCode
Tag(s) : Data Processing
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Statistically, sensitivity is the ratio of the number of true positives to the total number of positives (including those declared false by mistake).
$$ \text {Sensitivity} = \frac {\text {True positives}} {\text {True positives} + \text {False negative}} $$
Example: A set of individuals: A,B,C,D,E (5 elements, all sick), with as declared as sick A,B,C (3 elements) and 'D,E 'declared not sick by mistake. Sensitivity is $$ S = \frac{3}{5} = 60 \% $$
Specificity is the ratio of the number of true negatives to the total number of negative elements (including those declared true by mistake).
$$ \text {Specificity} = \frac {\text {True negatives}} {\text {True negatives} + \text {False positives} $$
Example: A set of of individuals: A,B,C,D,E (5 elements, all healthy), with as declared healthy A,B (2 elements) and C,D,E declared sick by mistake. Specificity is $$ S = \frac{2}{5} = 40 \% $$
The most common use of sensitivity and specificity is for diagnostic tests of disease (which have an error rate), it is then possible to determine their quality: the more sensibility and specificity are strong (close to 1 or 100%), more they are reliable.
The calculation of predictive value involves both sensitivity and specificity values.
In computer science, prefer to use the values of precision and recall.
For the calculation of other values, see the confusion matrix.
dCode retains ownership of the "Sensitivity and Specificity" source code. Any algorithm for the "Sensitivity and Specificity" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Sensitivity and Specificity" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Sensitivity and Specificity" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Sensitivity and Specificity" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Sensitivity and Specificity on dCode.fr [online website], retrieved on 2025-04-16,