Pasek boczny

en:statpqpl:diagnpl:testpl

Evaluation of diagnostic test

Suppose that using a diagnostic test we calculate the occurrence of a particular feature (most often disease) and know the gold-standard, so we know that the feature really occurs among the examined people. On the basis of these information, we can build a $2\times2$ contingency table:

\begin{tabular}{|c|c||c|c|c|}
\hline
\multicolumn{2}{|c||}{Observed frequencies}& \multicolumn{3}{|c|}{Reality (gold-standard)} \\\cline{3-5}
\multicolumn{2}{|c||}{ }&disease \textbf{(+)}&disease free \textbf{(--)}& \textbf{Total}\\\hline \hline
\multirow{3}{*}{diagnostic test} & positive result \textbf{(+)} & TP & FP & TP+FP \\\cline{2-5}
&negative result \textbf{(--)}& FN &TN & FN+TN\\\cline{2-5}
&\textbf{Total} & TP+FN & FP+TN & n=TP+FP+FN+TN\\\hline
\end{tabular}

where:

TP – true positive

FP – false positive

FN – false negative

TN – true negative

For such a table we can calculate the following measurements.

Sensitivity and specificity of diagnostic test

Every diagnostic test, in some cases, can obtain results different than actual results, for example a diagnostic test, basing on the obtained parameters, classifies a patient to the group of people suffering from a particular disease, or to the group of healthy people. In reality, the number of people approved for the above groups by the test may differ from the number of people genuinely ill and genuinely healthy.
There are two evaluation measurements of the test accuracy. They are:

  • Sensitivity – describes the ability to detect people genuinely ill (having a particular feature). If we examine a group of ill people, the sensitivity provides us with the information what percentage of them have a positive test result.

\begin{displaymath}
\textrm{sensitivity}=\frac{TP}{TP+FN}
\end{displaymath}

Confidence interval is built on the basis of the Clopper-Pearson method for a single proportion.

  • Specificity – describes the ability to detect people genuinely healthy (without a particular feature). If we examine a group of genuinely healthy people, the specificity provides us with the information about the percentage of people having a negative test result.

\begin{displaymath}
\textrm{specificity}=\frac{TN}{FP+TN}
\end{displaymath}

Confidence interval is built on the basis of the Clopper-Pearson method for a single proportion.

Positive predictive values, negative predictive values and prevalence rate

  • Positive predictive value ($PPV$) – the probability, that a person having a positive test result suffered from a disease. If the examined person obtains a positive test result, the PPV informs them how they can be sure, that they suffer from a particular disease.

\begin{displaymath}
PPV=\frac{TP}{TP+FP}
\end{displaymath}

Confidence interval is built on the basis of the Clopper-Pearson method for a single proportion.

  • Negative predictive value ($NPV$) – the probability that a person having a negative test result did not suffer from any disease. If the examined person obtains a negative test result, the NPV informs them how they can be sure that they do not suffer from a particular disease.

\begin{displaymath}
NPV=\frac{TN}{FN+TN}
\end{displaymath}

Confidence interval is built on the basis of the Clopper-Pearson method for a single proportion.

Positive and negative predictive values depend on the prevalence rate.

Prevalence – probability of disease in the population for which the diagnostic test was conducted.

\begin{displaymath}
\textrm{prevalence}=\frac{TP+FN}{n}
\end{displaymath}

Confidence interval is built on the basis of the Clopper-Pearson method for a single proportion.

  • Likelihood ratio of positive test and likelihood ratio of negative test
  • Likelihood ratio of positive test ($LR_+$) – this measurement enables the comparison of some test results matching to the gold-standard. It does not depend on the prevalence of the disease. It is the ratio of two odds: the odds that a person from the group of ill people will obtain a positive test result, and the same effect will be observed among healthy people.

\begin{displaymath}
LR_+=\frac{\textrm{sensitivity}}{1-\textrm{specificity}}=\frac{TP\left(TP+FN\right)}{FP\left(FP+TN\right)}
\end{displaymath}

Confidence interval for $LR_+$ is built on the basis of the standard error:

\begin{displaymath}
SE=\sqrt{\frac{1-\textrm{sensitivity}}{TP}+\frac{\textrm{specificity}}{FP}}.
\end{displaymath}

  • Likelihood ratio of negative test ($LR_-$) – it is the ratio of two odds: the odds that a person from the group of ill people will obtain a negative test result, and the same effect will be observed among healthy people.

\begin{displaymath}
LR_-=\frac{1-\textrm{sensitivity}}{\textrm{specificity}}=\frac{FN\left(TP+FN\right)}{TN\left(FP+TN\right)}
\end{displaymath}

Confidence interval for $LR_-$ is built on the basis of the standard error:

\begin{displaymath}
SE=\sqrt{\frac{\textrm{sensitivity}}{FN}+\frac{1-\textrm{specificity}}{TN}}.
\end{displaymath}

  • Accuracy
  • Accuracy ($Acc$) – the probability of a correct diagnose using a diagnostic test. If the examined person obtains a positive or a negative test result, the $Acc$ informs how they can be sure about the definitive diagnosis.

\begin{displaymath}
Acc=\frac{TP+TN}{n}
\end{displaymath}

Confidence interval is built on the basis of the Clopper-Pearson method for a single proportion.

  • Diagnostic Odds Ratio - is the ratio of two chances: the chance of a positive test result from a diseased person to the chance of a positive test result from a healthy person.

\begin{displaymath}
DOR=\frac{TP/FN}{FP/TN}
\end{displaymath}

Confidence interval for $DOR$ is built on the basis of the standard error:

\begin{displaymath}
SE=\sqrt{\frac{1}{TP}+\frac{1}{FN}+\frac{1}{FP}+\frac{1}{TN}}.
\end{displaymath}

The settings window with the diagnostic tests can be opened in Advanced stistics menu →Diagnostic testsDiagnostic tests

EXAMPLE (mammography.pqs file)

Mammography is one of the most popular screening tests which enables the detection of breast cancer. The following study has been carried out on the group of 250 people, so-called „asymptomatic” women at the age from 40 to 50. Mammography can detect an outbreak of cancer smaller than 5 mm and enables to note the change which is not a nodule yet but a change in the structure of tissues.

\begin{tabular}{|c|c||c|c|c|}
\hline
\multicolumn{2}{|c||}{Observed frequencies}& \multicolumn{3}{|c|}{Reality (histopatology)} \\\cline{3-5}
\multicolumn{2}{|c||}{ }&disease \textbf{(+)}&disease free \textbf{(--)}& \textbf{Total}\\\hline \hline
\multirow{3}{*}{mammography} & positive result \textbf{(+)} & 9 & 10 & 19 \\\cline{2-5}
&negative result \textbf{(--)}& 1 &230 & 231\\\cline{2-5}
&\textbf{Total} & 10 & 240 & 250\\\hline
\end{tabular}

We will calculate the values enabling the assessment of the performed diagnostic test.

  • 90% of women suffering from breast cancer have been correctly defined, so they have obtained the positive result of mammography;
  • 95.83% of healthy women (not suffering from breast cancer) have been correctly defined, so they have obtained the negative result of mammography;
  • 4 out of 100 examined women suffer from breast cancer;
  • A woman who have obtained a positive mammography result can be 47.37% sure that she suffers from breast cancer;
  • A women who have obtained a negative test result can be 99.57% sure that she does not suffer from breast cancer;
  • The probability that the positive mammography result will be obtained by a woman genuinely suffering from cancer is 21.60 times greater than the probability that the positive mammography result will be obtained by a healthy woman (not suffering from breast cancer);
  • The probability that the negative mammography result will be obtained by a woman genuinely suffering from breast cancer is 10.43% of the probability that the negative mammography result will be obtained by a healthy woman (not suffering from breast cancer);
  • A woman undergoing mammography (regardless of age) can be 96.50% sure of the definitive diagnosis,
  • The chance of a positive test result in a woman who actually has breast cancer is 207 times greater than the chance of such a result in a healthy woman.
en/statpqpl/diagnpl/testpl.txt · ostatnio zmienione: 2022/09/26 23:30 przez admin

Narzędzia strony