How to Calculate Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value (2024)

Download Article

Explore this Article

methods

Calculator

1Doing Your Own Calculation

Other Sections

Video

Tips and Warnings

Related Articles

References

Article Summary

Author Info

Last Updated: December 29, 2022Fact Checked

Download Article

If you're screening for a disease or specific characteristic in a group of people, it's important to know the sensitivity, specificity, positive predictive value, and negative predictive value so you know how useful your test is.[1] We'll help you learn how to calculate these values to ensure your results are as accurate as possible.

Calculator

Sensitivity and Specificity Calculator

Method 1

Method 1 of 1:

Doing Your Own Calculation

Download Article

  1. 1

    Define a population to sample, e.g. 1000 patients in a clinic.

  2. 2

    Define the disease or characteristic of interest, e.g. syphilis.[2]

    Advertisem*nt

  3. 3

    Have a well-established gold standard test to determine the prevalence of disease or characteristic, e.g. darkfield microscopic documentation of the presence of the Treponema pallidum bacteria from scrapes off a syphilitic sore, in collaboration with clinical findings. Use the gold standard test to determine who has the character and who does not.[3] For illustration, let us say 100 people have it and 900 do not.

  4. 4

    Have a test that you are interested in determining its sensitivity, specificity, positive predictive value, and negative predictive value for this population, and run this test on everyone within the chosen population sample. For example, let this test be a rapid plasma reagin (RPR) test to screen for syphilis. Use it to test the 1000 people in the sample.[4]

  5. 5

    For people that have the characteristic (as determined by the gold standard), record the number of people who tested positive and the number of people who tested negative. Do the same for people that do not have the characteristic (as determined by the gold standard).[5] You will end up with four numbers. People with the characteristic AND tested positive are the true positives (TP). People with the characteristic AND tested negative are the false negatives (FN). People without the characteristic AND tested positive are the false positives (FP). People without the characteristic AND tested negative are the true negatives (TN)[6] For example, let us suppose you did the RPR test on the 1000 patients. Among the 100 patients with syphilis, 95 of them tested positive, and 5 tested negative. Among the 900 patients without syphilis, 90 tested positive, and 810 tested negative. In this case, TP=95, FN=5, FP=90, and TN=810.

  6. 6

    To calculate the sensitivity, divide TP by (TP+FN). In the case above, that would be 95/(95+5)= 95%. The sensitivity tells us how likely the test is to come back positive in someone who has the characteristic.[7] Among all people that have the characteristic, what proportion will test positive? 95% sensitivity is pretty good.

  7. 7

    To calculate the specificity, divide TN by (FP+TN). In the case above, that would be 810/(90+810)= 90%.[8] The specificity tells us how likely the test is to come back negative in someone who does not have the characteristic. Among all people without the characteristic, what proportion will test negative? 90% of specificity is pretty good.

  8. 8

    To calculate the positive predictive value (PPV), divide TP by (TP+FP). In the case above, that would be 95/(95+90)= 51.4%. The positive predictive value tells us how likely someone is to have the characteristic if the test is positive.[9] Among all people that test positive, what proportion truly has the characteristic? 51.4% PPV means that if you test positive, you have a 51.4% chance of actually having the disease.

  9. 9

    To calculate the negative predictive value (NPV), divide TN by (TN+FN). In the case above, that would be 810/(810+5)= 99.4%. The negative predictive value tells us how likely someone is to not have the characteristic if the test is negative.[10] Among all people that test negative, what proportion truly does not have the characteristic? 99.4% NPV means that if you test negative, you have a 99.4% chance of not having a disease.

  10. Advertisem*nt

Community Q&A

Search

Add New Question

  • Question

    Do I need a random sample to calculate positive predictive value?

    How to Calculate Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value (14)

    Community Answer

    No, you can still calculate knowing which group received which treatment.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 1Helpful 1

  • Question

    How is sensitivity related to positive predictive value by formula?

    How to Calculate Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value (15)

    Community Answer

    Lighting, sound, smell, aroma, etc. would need further information to create a formula based on what it is you want to achieve.

    Thanks! We're glad this was helpful.
    Thank you for your feedback.
    If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission.Support wikiHow

    YesNo

    Not Helpful 17Helpful 3

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

      Advertisem*nt

      Video

      Tips

      • Accuracy, or efficiency, is the percentage of test results correctly identified by the test, i.e. (true positives + true negatives)/total test results = (TP+TN)/(TP+TN+FP+FN).

        Thanks

        Helpful1Not Helpful0

      • Try drawing out a 2x2 table to make things easier.

        Thanks

        Helpful44Not Helpful8

      • Know that sensitivity and specificity are intrinsic properties of a given test, and do not depend on the given population, i.e. these two values should be the same when the same test is applied to different populations.

        Thanks

        Helpful19Not Helpful4

      Show More Tips

      Submit a Tip

      All tip submissions are carefully reviewed before being published

      Submit

      Thanks for submitting a tip for review!

      Advertisem*nt

      Warnings

      • It is easy to make careless mistakes in calculation. Check your math carefully. Drawing out a 2x2 table will help.

        Thanks

        Helpful9Not Helpful3

      Advertisem*nt

      You Might Also Like

      How toCalculate Intrinsic ValueHow toCalculate Relative Risk
      How toCalculate Weighted AverageHow to Find the Perfect Sample Size for Your Research StudyHow toCalculate Standard DeviationHow toCalculate Lotto OddsHow toCalculate ProbabilityHow toCalculate Cumulative FrequencyHow toFind Standard Deviation on the TI–84How toCalculate RangeHow toCalculate OddsHow toRead OddsHow toCalculate VarianceHow toDraw a Pie Chart from Percentages

      Advertisem*nt

      More References (1)

      About This Article

      wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 18 people, some anonymous, worked to edit and improve it over time. This article has been viewed 623,681 times.

      215 votes - 85%

      Co-authors: 18

      Updated: December 29, 2022

      Views:623,681

      Categories: Featured Articles | Probability and Statistics

      Medical Disclaimer

      The content of this article is not intended to be a substitute for professional medical advice, examination, diagnosis, or treatment. You should always contact your doctor or other qualified healthcare professional before starting, changing, or stopping any kind of health treatment.

      Read More...

      Article SummaryX

      If you’re conducting a test administered to a given population, you’ll need to work out the sensitivity, specificity, positive predictive value, and negative predictive value to work out how useful the test it. To calculate the sensitivity, add the true positives to the false negatives, then divide the result by the true positives. To calculate the specificity, add the false positives to the true negatives, then divide the result by the true negatives. For the positive predictive value, add the true positives to the false positives, then divide the result by the true positives. For the negative predictive value, add the true negatives to the false negatives, then divide the result by the true negatives. For more tips, including how to understand the terminology used in population tests, read on!

      Did this summary help you?

      In other languages

      Spanish

      Russian

      German

      French

      Indonesian

      Dutch

      • Print
      • Send fan mail to authors

      Thanks to all authors for creating a page that has been read 623,681 times.

      Did this article help you?

      Advertisem*nt

      How to Calculate Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value (2024)
      Top Articles
      Latest Posts
      Article information

      Author: Jonah Leffler

      Last Updated:

      Views: 6126

      Rating: 4.4 / 5 (65 voted)

      Reviews: 88% of readers found this page helpful

      Author information

      Name: Jonah Leffler

      Birthday: 1997-10-27

      Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

      Phone: +2611128251586

      Job: Mining Supervisor

      Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

      Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.