Statistics in Epidemiology: Difference between revisions
Feedback

From WikiLectures

 
(19 intermediate revisions by 6 users not shown)
Line 1: Line 1:
= Epidemiology =
=Epidemiology=


Epidemiology is the study of the occurrence of disease or other health-related characteristics in human and in animal populations. Epidemiologists study the frequency of disease and whether the frequency differs across groups of people; such as, the cause-effect relationship between exposure and illness. Diseases do not occur at random; they have causes.  
Epidemiology is the study of the occurrence of disease or other health-related characteristics in human and in animal populations. Epidemiologists study the frequency of disease and whether the frequency differs across groups of people; such as, the cause-effect relationship between exposure and illness. Diseases do not occur at random; they have causes.  
Many diseases could be prevented if the causes were known. The methods of epidemiology have been crucial to identifying many causative factors which, in turn, have led to health policies designed to prevent disease, injury and premature death.
Many diseases could be prevented if the causes were known. The methods of epidemiology have been crucial to identifying many causative factors which, in turn, have led to health policies designed to prevent disease, injury and premature death.


== Basic Terms ==
==Basic Terms==


Epidemiology is an academic discipline which deals with the occurrence of diseases, their causes, events which lead to these diseases and their consequences. The most important terms which define epidemiology are incidence, prevalence, mortality and lethality of diseases.<ref name=one>Porta Miquel, A dictionary of epidemiology, Oxford, sixth edition 2014.</ref>
'''Incidence''' is the number of new cases in a defined population within a specified period of time.<ref name="one">Porta Miquel, A dictionary of epidemiology, Oxford, sixth edition 2014.</ref>
 
'''Incidence''' is the number of instances of illness commencing, during a given period in a specified population.  The number of new health-related events in a defined population within a specified period of time.<ref name=one></ref>


'''Prevalence '''is the proportion of population who have specific characteristic in given time.  It is disease occurrence or other factor related to health, the total number of individuals who have the condition at a particular time divided by the population at risk of having the condition at that time or midway through the period.
'''Prevalence '''is the proportion of population who have specific characteristic in given time.  It is disease occurrence or other factor related to health, the total number of individuals who have the condition at a particular time divided by the population at risk of having the condition at that time or midway through the period.


Example: 400 people are tested for the common flue. 100 of them in the sample group are found to have the flue. Divide the 100 flue infected people by the total sample size, which is 400, the answer is the prevalence.  
*Example: 400 people are tested for the common flu. 100 of them in the sample group are found to have the flu. Divide the 100 flu-infected people by the total sample size, which is 400; the answer is the prevalence.


100/400=  1/4    or 1 out of 4 people or 25%.   
100/400=  1/4    or 1 out of 4 people or 25%.   


'''Mortality''' determines how many people die in a certain time period. It can be measured with calculating the death rate: (Number of deaths during a specified period in the sample group)/(The total number of people in the sample groupe period)
'''Mortality''' determines how many people die in a certain time period. It can be measured with calculating the death rate: (Number of deaths during a specified period in the sample group)/(The total number of people in the sample group)
 
Example: In the flue case 10 people died from the flue and 10 from a different source. So, divide the number of people who died by the total sample size: 20/400=1/20 or 0.5%, that is the mortality rate, notice that it is the TOTAL number of deaths, not just from the disease. For a more accurate measure use lethality rate.
 
'''Lethality''' of diseases is a ratio which is determined by the number of people who died in a certain time divided through the number of people who fell ill in the same time period. is a description of how a disease can cause death and harm.


Example: Let’s take the flue case as an example. 10 people have died from the flue out of the 100 that were sick. So: 10/100=1/10 or in other works there is a 10% chance to die from this disease, that’s the lethality.
*Example: In the flu case, 10 people died from the flu and 10 from a different source. So, divide the number of people who died by the total sample size: 20/400=1/20 or 0.5%, that is the mortality rate, notice that it is the TOTAL number of deaths, not just from the disease. For a more accurate measure use lethality rate, or case fatality rate.


== Diagnostic Tests ==
'''Lethality''' of diseases is a ratio which is determined by the number of people who died in a certain time divided by the number of people who fell ill in the same time period. It is a description of how a disease can cause death.


Diagnostic tests are performed in the aim of determining the presence of a certain disease or illness in a patient. The test may be carried out through performing procedures, such as various scans or merely on the basis of symptoms. Some examples of diagnostic tests include X-rays, biopsies, pregnancy tests, medical
*Example: Let’s take the flu case as an example. 10 people have died from the flu out of the 100 that were sick. So: 10/100=1/10, or in other words, there is a 10% chance to die from this disease; that’s the lethality.
histories, and results from physical examinations.<ref name=one></ref>


The results obtained from the test could be from either of the 2 distinct main categories- positive or negative, where a positive result indicates the presence of the diseases. A positive or negative result can be subdivided further into true positives and negatives, and false positives and negative results. A true positive result is one that accurately determines the presence of the illness. On the contrary a false positive result indicates the presence of the disease in the patient; however, the disease is actually not present in the patient. A similar pattern is seen in true negative and false negative results. <ref name=one></ref>
==Diagnostic Tests==
* <!--[if !supportLists]-->True ''positive'': the patient has the disease and the test is positive.
* <!--[if !supportLists]--> ''False positive'': the patient does not have the disease but the test is positive.
* <!--[if !supportLists]-->''True negative'': the patient does not have the disease and the test is negative


* <!--[endif]-->''False negative'': the patient has the disease but the test is negative.
Diagnostic tests are performed in the aim of determining the presence of a certain disease or illness in a patient. The test may be carried out through performing procedures, such as various scans, or merely on the basis of symptoms. Some examples of diagnostic tests include X-rays, biopsies, pregnancy tests, blood tests, results from physical examinations, etc.<ref name="one"></ref>  
Table illustrating different types subcategories positive and negative test results<ref name=two>Test Statistics. (n.d.). Retrieved November 23, 2016, from http://groups.bme.gatech.edu/groups/biml/resources/useful_documents/Test_Statistics.pdf</ref>


[[Image:Sge 1.JPG | center | ]]
The results obtained from the test could be from either one of the 2 distinct main categories- positive or negative, where a positive result indicates the presence of the diseases. A positive or negative result can be subdivided further into true positives and negatives, and false positives and negative results. A true positive result is one that accurately determines the presence of the illness. On the contrary, a false positive result indicates the presence of the disease in the patient; however, the disease is actually not present in the patient. A similar pattern is seen in true negative and false negative results. <ref name="one"></ref>


*<!--[if !supportLists]-->True ''positive'': the patient has the disease and the test is positive.
*<!--[if !supportLists]--> ''False positive'': the patient does not have the disease but the test is positive.
*<!--[if !supportLists]-->''True negative'': the patient does not have the disease and the test is negative


== The Fourfold Table ==
*<!--[endif]-->''False negative'': the patient has the disease but the test is negative.
 
The fourfold (confusion matrix) table is a type of contingency table with, which is a tabular cross-classification of data in which subcategories of one characteristic are indicated horizontally (in rows) and subcategories of another characteristic are indicated vertically (in columns) to test the characteristics between the two (the rows and the columns).
 
'''How to construct a fourfold table:''' 
 
{{http://www.swemorph.com/tut1/slide3.png}}


<!--[if gte vml 1]><v:shapetype id="_x0000_t75"
<!--[if gte vml 1]><v:shapetype id="_x0000_t75"
Line 89: Line 75:
   o:title="//martinsetiabudhi.files.wordpress.com/2012/10/naiverealism.png?w=640"/>
   o:title="//martinsetiabudhi.files.wordpress.com/2012/10/naiverealism.png?w=640"/>
  <w:wrap type="tight"/>
  <w:wrap type="tight"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><!--[if !supportLists]--><!--[if !supportLists]--><!--[if !supportLists]--><nowiki>== Sensitivity and Specificity of Diagnostic Test Calculated from Fourfold table ==</nowiki>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><!--[if !supportLists]--><!--[if !supportLists]--><!--[if !supportLists]-->==Sensitivity and Specificity of Diagnostic Test Calculated from Fourfold table==


Diagnostic test is a procedure performed in order to determine if an individual has an illness or not.
The fourfold table is a type of contingency table which is a tabular cross-classification of data in which subcategories of one characteristic are indicated horizontally (in rows) and subcategories of another characteristic are indicated vertically (in columns) to test the characteristics between the two (the rows and the columns).
Sensitivity of a diagnostic test is the chance or likelihood that a diseased individual in a population which is tested is going to be identified as diseased by the test.  Specificity is the chance or likelihood that a healthy individual will be identified as non-diseased by the diagnostic test.  A fourfold table shows the relationship between the two. It determines whether the 2 distinct variables are linked. <ref name=one></ref>, <ref name=five>Loong T (2003). Understanding sensitivity and specificity with the right side of the brain</ref>
[[File:Sge_3f.JPG|link=http://www.wikilectures.eu/index.php/File:Sge_3f.JPG|centre]]


*'''Sensitivity''' (also called the true positive rate) measures the proportion of all positives that are correctly identified as positives.


[[Image:Sge 3f.JPG | center | ]]
*'''Specificity''' (also called the true negative rate) measures the proportion of all negatives that are correctly identified as negatives
<ref name=six>Altman DG, Bland JM (1994). Diagnostic tests. 1: Sensitivity and specificity</ref>


In the fourfold table above, the letters a, b, c, d symbolize the numbers.


The letters a, b, c, d symbolize the numbers in the fourfold table.
*a — stands for diseased individuals detected by the test.
* a — stand for diseased individuals detected by the test.
*b — stands for healthy individuals detected by the test.
* b — stand for healthy individuals detected by the test.
*c — stands for diseased individuals not detected by the test.
* c — stand for diseased individuals not detectable by the test.
*d — stands for healthy individuals negative by the test.
* d — stand for healthy individuals negative by the test.
 
The basic statistics can be calculated form the fourfold table as follows:


The formula for sensitivity — a / a+c.
The formula for sensitivity — a / a+c.
Line 113: Line 101:
Predictive value of a negative test result — d / c+d.
Predictive value of a negative test result — d / c+d.


== Receiver Operating Characteristic (ROC) Curve ==
==Receiver Operating Characteristic (ROC) Curve==
 
[[Image:Sge 8.JPG | thumb | Table 1 Non-healthy (condition positive) population distribution]]
[[Image:Sge 9.JPG | thumb | Table 2 Healthy (condition negative) population distribution]]
[[Image:Sge 6.JPG | thumb | Table 3. Determination of TPR and FPR for five different cut-off levels]]
 
ROC curves are used to present if a method for classification is acceptable or not. In ROC curves the true positive rate (TPR) is plotted versus the false positive rate (FPR); these pairs of values are determined by applying various threshold values for the determination of the true positive (TP) and false positive (FP) values.
In a two-class prediction problem initially the statistics of the total population presenting the condition positive and negative are determined. Then, using a certain threshold value, predictions are made and the results are classified as
(a) true positive (TP) in the case a positive prediction is made for a positive condition
(b) false negative (FN) in the case of a negative prediction for a positive condition
(c) false positive (FP) in the case of a positive prediction for a negative condition
(d) true negative (TN) in the case of negative prediction for a negative condition
 
Based on these four parameters, the relative four ratios are determined as follows:
 
TPR (True positive rate or Sensitivity) which is equal to the sum of true positive values divided by the sum of condition positive values
FNR (False negative rate), equal to the sum of false negative values divided by the sum of condition positive value
FPR (False positive rate) which is equal to the sum of false positive values divided by the sum of condition positive values
TNR (True negative rate, or specificity) which is equal to the sum of true negative value divided by the sum of condition negative values
 
ROC curves have the form:


[[Image:Sge 4.JPG | center | Presentation of a ROC curve ]]
- Receiver Operating Characteristic (ROC curve) is a graphical plot that illustrates the performance of a binary classifier system (e.g. diagnosis test)
[[File:ROC space-2.png|thumb|ROC space]]
- The curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings.


-  ROC has been used in medicine, radiology, biometrics, and other areas for many decades and is increasingly used in machine learning and data mining research.


The example of diabetes disease prediction using the blood glucose level was used to illustrated the way these curves are generated. In this example, it is supposed that the normal levels for a healthy person of glucose in blood are 70-110 mg/dL (average value 90 mg/dl) corresponding to condition negative, and the glucose concentration in blood of a non-healthy person is 90 to 180 mg/dL (corresponding to condition positive).  
===ROC curve example===
For this specific example, it is assumed that the sample of total population is 1000 members with 500 being non-healthy (condition positive) and 500 healthy (condition negative). The distribution of the healthy and non-healthy population is given in the tables 1 and 2, whereas their graphical presentation is given in Fig. 1.:
An'' example of diabetes disease prediction using the blood glucose level was used to illustrated the way these curves are generated. In this example, it is supposed that the normal levels for a healthy person of glucose in blood are 70-110 mg/dL (average value 90 mg/dl) corresponding to condition negative, and the glucose concentration in blood of a non-healthy person is 90 to 180 mg/dL (corresponding to condition positive). ''
For this specific example, it is assumed that the sample of total population is 1000 members with 500 being non-healthy (condition positive) and 500 healthy (condition negative). The distribution of the healthy and non-healthy population is shown in the following graph.


[[Image:Sge 5.JPG | center | Fig 1 Presentation of a ROC curve]]
[[Image:Sge 5.JPG | center | Fig 1 Presentation of a ROC curve]]




Based on data provided in Tables 1 and 2 (or in Fig.1), the parameters TP, FN, FP and TN, as well as the respective rates (TPR, FNR, FPR and TNR) were determined for five different cut-off (threshold) levels: 90, 92, 95, 100 and 105 mg/dL.  
From the graph, it is seen that the data are overlapping and therefore we are not able to distinguish between the two categories (diabetes and non-diabetes) with a 100% certainty. It is not clear from the graph  what is the best threshold value for the categorization into the two categories (is it 95 mg/dL, 100 mg/dL or 105 mg/dL?). Different values of threshold will give a different sensitivity and specificity of the test. The ROC curve can help us to decide which threshold value would be the best for the particular situation.
The results for these exercises are presented tin the following Table 3.


Therefore, the parameters TP, FN, FP and TN, as well as the respective rates (TPR, FNR, FPR and TNR) are determined for five different cut-off (threshold) levels: 90, 92, 95, 100 and 105 mg/dL. The results of TPR and FPR for these exercises are presented the following table.


Then, the pairs of FPR and TPR were plotted to give the ROC curve.
{|
 
Table 4. Pairs of FPR, TPR for plotting
  |
{| class="wikitable"
'''Threshold '''
|-
 
! FPR !! TPR
  |
|-
'''FPR'''
| 0 || 0
 
|-
  |
| 0.02 || 0.962
'''TPR'''
|-
| 0.084 || 0.978
|-
|-
  |
| 0.188 || 0.988
90
|-
 
| 0.442 || 0.998
  |
|-
0.980
| 0.526 || 1
 
|-
  |
| 1 || 1
0.962
|-
  |
92
 
  |
0.916
 
  |
0.978
|-
  |
95
 
  |
0.812
 
  |
0.988
|-
  |
100
 
  |
0.558
 
  |
0.998
|-
  |
105
 
  |
0.474
 
  |
1
|}
|}
[[Image:Sge 7.JPG | center | Fig 2 ROC curve]]
[[Image:Sge 7.JPG | center | Fig 2 ROC curve]]


As seen in Table 3, the maximum ACC (accuracy) value was obtained in Case A3 examined using the value of 105 mg/dL as cut-off (threshold) value, therefore, this value should be used for the classification. Furthermore, it is easily seen that the ROC curve produced is very close to the perfect classification point (0,1), therefore, the classification is very effective.
As seen in The table, when sensitivity increases specificity decreases.
Therefore the optimal threshold value should be set according to the situation.
Some situations require a high sensitive tests (screening) and some high specific
tests (In cases where the patient can be harmed with the upcoming treatment)


== Example of a Possible Screening and Confirmation Test in Medicine ==
==Screening and Confirmatory Test in Medicine==


Sensitivity and Specificity are used to evaluate the validity of laboratory tests (not results of the tests). Basically, you use sensitivity and specificity to determine whether or not to use a certain test or to determine what situations a certain test would work best in. <ref name=one></ref>, <ref name=seven>Farlex Partner Medical Dictionary - Epidemiology, ROC analysis © Farlex 2012</ref>
In the real world, you never have a test that is fully Sensitive and fully Specific. We are usually faced with a decision to use a test with high Sensitivity (and lower spec) or high Specificity (and lower Sensitivity). Usually a test with high sensitivity is used as the Initial Screening Test. Those that receive a positive result on the first test will be given a second test with high specificity that is used as the Confirmatory Test. In these situations, you need both tests to be positive to get a definitive diagnosis. Getting a single positive reading is not enough for a diagnosis as the individual tests have either a high chance of FP or a high chance of FN.  For example, HIV is diagnosed using 2 tests. First an ELISA screening test is used and then a confirmatory Western Blot is used if the first test is positive. <ref name="one" />, <ref name="seven">Farlex Partner Medical Dictionary - Epidemiology, ROC analysis © Farlex 2012</ref>  


Imagine we have 2 different buttons that starts the alarm. The first button starts the alarm when you barely touch it, a gust of wind or feather touch. The first button has high sensitivity and low specificity. It is sensitive to the smallest of signals to start the alarm not being very specific to an intentional starting the alarm. We never miss a possible chance to star the alarm (~Low FN). But often accidentally starts the alarm when we shouldn’t (~High –FP). <ref name=one></ref>, <ref name=seven></ref>
There are also specific situations where having a high specificity or sensitivity is really important. Consider that you are trying to screen donations to a blood bank for blood borne pathogens. In this situation, you want a super high sensitivity, because you may infect anybody easily so  the drawbacks of a false negative (spreading disease to a recipient) are way higher than the drawbacks of a false positive (throwing away 1 blood donation). Now consider you are testing a patient for the presence of a disease. This particular disease is treatable, but the treatment has very serious side effects (e.g. cancer treated by chemotherapy) . In this case, you want a test that has high specificity, because there are major drawbacks to a false positive. <ref name="one" />, <ref name="seven" />


The second button only set-off the alarm if a great pressure is applied. This button has high specificity and low sensitivity. It is very specific to setting-off the alarm only when pressed but isn’t very sensitive to weak pressure. <ref name=one></ref>, <ref name=seven></ref>
<noinclude>


In the real world, you never have a test that is fully Sensitivity and full Specificity. We are usually faced with a decision to use a test with high Sensitivity (and lower spec) or high Specificity (and lower Sensitivity). Usually a test with high sensitivity is used as the Initial Screening Test. Those that receive a positive result on the first test will be given a second test with high specificity that is used as the Confirmatory Test. In these situations, you need both tests to be positive to get a definitive diagnosis. Getting a single positive reading is not enough for a diagnosis as the individual tests have either a high chance of FP or a high chance of FN.  For example, HIV is diagnosed using 2 tests. First an ELISA screening test is used and then a confirmatory Western Blot is used if the first test is positive. <ref name=one></ref>, <ref name=seven></ref>
==Links==
===References===


There are also specific situations where having a high specificity or sensitivity is really important. Consider that you are trying to screen donations to a blood bank for blood borne pathogens. In this situation, you want a super high sensitivity, because the drawbacks of a false negative (spreading disease to a recipient) are way higher than the drawbacks of a false positive (throwing away 1 blood donation). Now consider you are testing a patient for the presence of a disease. This particular disease is treatable, but the treatment has very serious side effects. In this case, you want a test that has high specificity, because there are major drawbacks to a false positive. <ref name=one></ref>, <ref name=seven></ref>
#Porta, M. A Dictionary of Epidemiology. Oxford University Press
#WikiLectures. Fourfold and Contingency Tables. 2014
#Setiabudhi Times. The 10 Sources of Psychological Myths: Your Mythbusting Kit.2012
#Lalkhen, A. McCluskey, A. Clinical tests: sensitivity and specificity.
#PennState Eberly College of Science. Epidemiological Research Methods, 10.3 - Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value
#4.6: Receiver Operating Characteristic Curves (author unknown) link: http://ebp.uga.edu/courses/Chapter%204%20-%20Diagnosis%20I/8%20-%20ROC%20curves.html
#Department of Statistics, University of California, One Shields Ave, Davis, CA 95616, USA. Estimation of diagnostic-test sensitivity and specificity through Bayesian modelling. 2005</noinclude>


<noinclude>
[[Category:Medical Informatics]]
== Links ==
</noinclude>
=== Related Articles ===
=== Bibliography ===
=== References ===
<references />
<references />
</noinclude>

Latest revision as of 21:19, 22 May 2024

Epidemiology[edit | edit source]

Epidemiology is the study of the occurrence of disease or other health-related characteristics in human and in animal populations. Epidemiologists study the frequency of disease and whether the frequency differs across groups of people; such as, the cause-effect relationship between exposure and illness. Diseases do not occur at random; they have causes. Many diseases could be prevented if the causes were known. The methods of epidemiology have been crucial to identifying many causative factors which, in turn, have led to health policies designed to prevent disease, injury and premature death.

Basic Terms[edit | edit source]

Incidence is the number of new cases in a defined population within a specified period of time.[1]

Prevalence is the proportion of population who have specific characteristic in given time.  It is disease occurrence or other factor related to health, the total number of individuals who have the condition at a particular time divided by the population at risk of having the condition at that time or midway through the period.

  • Example: 400 people are tested for the common flu. 100 of them in the sample group are found to have the flu. Divide the 100 flu-infected people by the total sample size, which is 400; the answer is the prevalence.

100/400= 1/4 or 1 out of 4 people or 25%.

Mortality determines how many people die in a certain time period. It can be measured with calculating the death rate: (Number of deaths during a specified period in the sample group)/(The total number of people in the sample group)

  • Example: In the flu case, 10 people died from the flu and 10 from a different source. So, divide the number of people who died by the total sample size: 20/400=1/20 or 0.5%, that is the mortality rate, notice that it is the TOTAL number of deaths, not just from the disease. For a more accurate measure use lethality rate, or case fatality rate.

Lethality of diseases is a ratio which is determined by the number of people who died in a certain time divided by the number of people who fell ill in the same time period. It is a description of how a disease can cause death.

  • Example: Let’s take the flu case as an example. 10 people have died from the flu out of the 100 that were sick. So: 10/100=1/10, or in other words, there is a 10% chance to die from this disease; that’s the lethality.

Diagnostic Tests[edit | edit source]

Diagnostic tests are performed in the aim of determining the presence of a certain disease or illness in a patient. The test may be carried out through performing procedures, such as various scans, or merely on the basis of symptoms. Some examples of diagnostic tests include X-rays, biopsies, pregnancy tests, blood tests, results from physical examinations, etc.[1]

The results obtained from the test could be from either one of the 2 distinct main categories- positive or negative, where a positive result indicates the presence of the diseases. A positive or negative result can be subdivided further into true positives and negatives, and false positives and negative results. A true positive result is one that accurately determines the presence of the illness. On the contrary, a false positive result indicates the presence of the disease in the patient; however, the disease is actually not present in the patient. A similar pattern is seen in true negative and false negative results. [1]

  • True positive: the patient has the disease and the test is positive.
  •  False positive: the patient does not have the disease but the test is positive.
  • True negative: the patient does not have the disease and the test is negative
  • False negative: the patient has the disease but the test is negative.

Sensitivity and Specificity of Diagnostic Test Calculated from Fourfold table

The fourfold table is a type of contingency table which is a tabular cross-classification of data in which subcategories of one characteristic are indicated horizontally (in rows) and subcategories of another characteristic are indicated vertically (in columns) to test the characteristics between the two (the rows and the columns).

Sge 3f.JPG
  • Sensitivity (also called the true positive rate) measures the proportion of all positives that are correctly identified as positives.
  • Specificity (also called the true negative rate) measures the proportion of all negatives that are correctly identified as negatives

In the fourfold table above, the letters a, b, c, d symbolize the numbers.

  • a — stands for diseased individuals detected by the test.
  • b — stands for healthy individuals detected by the test.
  • c — stands for diseased individuals not detected by the test.
  • d — stands for healthy individuals negative by the test.

The basic statistics can be calculated form the fourfold table as follows:

The formula for sensitivity — a / a+c.

The formula for specificity — d / b+d.

predictive value of a positive test result — a / a+b.

Predictive value of a negative test result — d / c+d.

Receiver Operating Characteristic (ROC) Curve[edit | edit source]

- Receiver Operating Characteristic (ROC curve) is a graphical plot that illustrates the performance of a binary classifier system (e.g. diagnosis test)

ROC space

- The curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings.

-  ROC has been used in medicine, radiology, biometrics, and other areas for many decades and is increasingly used in machine learning and data mining research.

ROC curve example[edit | edit source]

An example of diabetes disease prediction using the blood glucose level was used to illustrated the way these curves are generated. In this example, it is supposed that the normal levels for a healthy person of glucose in blood are 70-110 mg/dL (average value 90 mg/dl) corresponding to condition negative, and the glucose concentration in blood of a non-healthy person is 90 to 180 mg/dL (corresponding to condition positive). For this specific example, it is assumed that the sample of total population is 1000 members with 500 being non-healthy (condition positive) and 500 healthy (condition negative). The distribution of the healthy and non-healthy population is shown in the following graph.

Fig 1 Presentation of a ROC curve


From the graph, it is seen that the data are overlapping and therefore we are not able to distinguish between the two categories (diabetes and non-diabetes) with a 100% certainty. It is not clear from the graph what is the best threshold value for the categorization into the two categories (is it 95 mg/dL, 100 mg/dL or 105 mg/dL?). Different values of threshold will give a different sensitivity and specificity of the test. The ROC curve can help us to decide which threshold value would be the best for the particular situation.

Therefore, the parameters TP, FN, FP and TN, as well as the respective rates (TPR, FNR, FPR and TNR) are determined for five different cut-off (threshold) levels: 90, 92, 95, 100 and 105 mg/dL. The results of TPR and FPR for these exercises are presented the following table.

Threshold

FPR

TPR

90

0.980

0.962

92

0.916

0.978

95

0.812

0.988

100

0.558

0.998

105

0.474

1

Fig 2 ROC curve

As seen in The table, when sensitivity increases specificity decreases. Therefore the optimal threshold value should be set according to the situation. Some situations require a high sensitive tests (screening) and some high specific tests (In cases where the patient can be harmed with the upcoming treatment)

Screening and Confirmatory Test in Medicine[edit | edit source]

In the real world, you never have a test that is fully Sensitive and fully Specific. We are usually faced with a decision to use a test with high Sensitivity (and lower spec) or high Specificity (and lower Sensitivity). Usually a test with high sensitivity is used as the Initial Screening Test. Those that receive a positive result on the first test will be given a second test with high specificity that is used as the Confirmatory Test. In these situations, you need both tests to be positive to get a definitive diagnosis. Getting a single positive reading is not enough for a diagnosis as the individual tests have either a high chance of FP or a high chance of FN. For example, HIV is diagnosed using 2 tests. First an ELISA screening test is used and then a confirmatory Western Blot is used if the first test is positive. [1], [2]

There are also specific situations where having a high specificity or sensitivity is really important. Consider that you are trying to screen donations to a blood bank for blood borne pathogens. In this situation, you want a super high sensitivity, because you may infect anybody easily so the drawbacks of a false negative (spreading disease to a recipient) are way higher than the drawbacks of a false positive (throwing away 1 blood donation). Now consider you are testing a patient for the presence of a disease. This particular disease is treatable, but the treatment has very serious side effects (e.g. cancer treated by chemotherapy) . In this case, you want a test that has high specificity, because there are major drawbacks to a false positive. [1], [2]


Links[edit | edit source]

References[edit | edit source]

  1. Porta, M. A Dictionary of Epidemiology. Oxford University Press
  2. WikiLectures. Fourfold and Contingency Tables. 2014
  3. Setiabudhi Times. The 10 Sources of Psychological Myths: Your Mythbusting Kit.2012
  4. Lalkhen, A. McCluskey, A. Clinical tests: sensitivity and specificity.
  5. PennState Eberly College of Science. Epidemiological Research Methods, 10.3 - Sensitivity, Specificity, Positive Predictive Value, and Negative Predictive Value
  6. 4.6: Receiver Operating Characteristic Curves (author unknown) link: http://ebp.uga.edu/courses/Chapter%204%20-%20Diagnosis%20I/8%20-%20ROC%20curves.html
  7. Department of Statistics, University of California, One Shields Ave, Davis, CA 95616, USA. Estimation of diagnostic-test sensitivity and specificity through Bayesian modelling. 2005
  1. Jump up to: a b c d e Porta Miquel, A dictionary of epidemiology, Oxford, sixth edition 2014.
  2. Jump up to: a b Farlex Partner Medical Dictionary - Epidemiology, ROC analysis © Farlex 2012