Jump to content

Template:DiagnosticTesting Diagram: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Shrink second-level values to shrink table
Note superseded
 
(23 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{superseded|template:diagnostic_testing_diagram}}

{| class="wikitable" align="center" style="text-align:center; border:none; background:transparent;"
{| class="wikitable" align="center" style="text-align:center; border:none; background:transparent;"
|style="border:none;" colspan="2"|
|style="border:none;" colspan="2"|
Line 8: Line 8:
|style="background:#ffffcc;"|Condition positive
|style="background:#ffffcc;"|Condition positive
|style="background:#ddddaa;"|Condition negative
|style="background:#ddddaa;"|Condition negative
|style="background:#eeeecc;font-size:90%;"|[[Prevalence]] <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma;&nbsp;Condition positive|&Sigma;&nbsp;Total population}}</span>
|style="background:#eeeecc;font-size:90%;" colspan="2"|[[Prevalence]] <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma;&nbsp;Condition positive|&Sigma;&nbsp;Total population}}</span>
|style="background:#cceecc;border-left:double silver;font-size:90%;" colspan="2"|[[Accuracy and precision|Accuracy]] (ACC) = <span style="font-size:118%;">{{sfrac|&Sigma;&nbsp;True positive + &Sigma; True negative |&Sigma;&nbsp;Total population}}</span>
|style="background:#cceecc;border-left:double silver;font-size:90%;" colspan="2"|[[Accuracy and precision|Accuracy]] (ACC) = <span style="font-size:118%;">{{sfrac|&Sigma;&nbsp;True positive + &Sigma; True negative |&Sigma;&nbsp;Total population}}</span>
|-
|-
|style="background:#bbeeee;" rowspan="2"|'''Predicted<br />condition'''
|rowspan="2" {{verth|va=middle|cellstyle=background:#bbeeee;|'''Predicted condition'''}}
|style="background:#ccffff;"|Predicted condition<br />positive
|style="background:#ccffff;"|Predicted condition<br />'''positive'''
|style="background:#ccffcc;"|<span style="color:#006600;">'''[[True positive]]'''</span>
|style="background:#ccffcc;"|<span style="color:#006600;">'''[[True positive]]'''</span>
|style="background:#eedddd;"|<span style="color:#cc0000;">'''[[False positive]]''',<br />[[Type I error]]</span>
|style="background:#eedddd;"|<span style="color:#cc0000;">'''[[False positive]]''',<br />[[Type I error]]</span>
|style="background:#ccffee;border-top:double silver;font-size:90%;"|[[Positive predictive value]] (PPV), [[Precision (information retrieval)|Precision]] = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; True positive|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;positive}}</span>
|style="background:#ccffee;border-top:double silver;font-size:90%;" colspan="2"|[[Positive predictive value]] (PPV), [[Precision (information retrieval)|Precision]] = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; True positive|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;positive}}</span>
|style="background:#cceeff;border-top:double silver;font-size:90%;" colspan="2"|[[False discovery rate]] (FDR) = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; False positive|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;positive}}</span>
|style="background:#cceeff;border-top:double silver;font-size:90%;" colspan="2"|[[False discovery rate]] (FDR) = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; False positive|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;positive}}</span>
|-
|-
|style="background:#aadddd;"|Predicted condition<br/>negative
|style="background:#aadddd;"|Predicted condition<br/>'''negative'''
|style="background:#ffdddd;"|<span style="color:#cc0000;">'''[[False negative]]''',<br />[[Type II error]]</span>
|style="background:#ffdddd;"|<span style="color:#cc0000;">'''[[False negative]]''',<br />[[Type II error]]</span>
|style="background:#bbeebb;"|<span style="color:#006600;">'''[[True negative]]'''</span>
|style="background:#bbeebb;"|<span style="color:#006600;">'''[[True negative]]'''</span>
|style="background:#eeddee;border-bottom:double silver;font-size:90%;"|[[False omission rate]] (FOR) = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; False negative|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;negative}}</span>
|style="background:#eeddee;border-bottom:double silver;font-size:90%;" colspan="2"|[[False omission rate]] (FOR) = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; False negative|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;negative}}</span>
|style="background:#aaddcc;border-bottom:double silver;font-size:90%;" colspan="2"|[[Negative predictive value]] (NPV) = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; True negative|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;negative}}</span>
|style="background:#aaddcc;border-bottom:double silver;font-size:90%;" colspan="2"|[[Negative predictive value]] (NPV) = <span style="font-size:118%;white-space:nowrap;">{{sfrac|&Sigma; True negative|&Sigma;&nbsp;Predicted&nbsp;condition&nbsp;negative}}</span>
|- style="font-size:90%;"
|- style="font-size:90%;"
|style="border:none;vertical-align:bottom;padding:0 2px 0 0;" colspan="2" rowspan="2"|<imagemap>
|style="border:none;vertical-align:bottom;padding:0 2px 0 0;color:#999999;" colspan="2" rowspan="2"|{{navbar|DiagnosticTesting_Diagram|plain=y}}
|style="background:#eeffcc;"|[[True positive rate]] (TPR), [[Recall_(information_retrieval)|Recall]], [[Sensitivity (tests)|Sensitivity]] (SEN), probability&nbsp;of&nbsp;detection, [[Statistical power|Power]] <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; True positive|&Sigma;&nbsp;Condition&nbsp;positive}}</span>
File:DiagnosticTesting_Diagram.svg|210px
default [http://upload.wikimedia.org/wikipedia/commons/0/0e/DiagnosticTesting_Diagram.svg]
</imagemap>
|style="background:#eeffcc;"|[[True positive rate]] (TPR), [[Recall_(information_retrieval)|Recall]], [[Sensitivity (tests)|Sensitivity]], probability&nbsp;of&nbsp;detection <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; True positive|&Sigma;&nbsp;Condition&nbsp;positive}}</span>
|style="background:#eeddbb;"|[[False positive rate]] (FPR), [[Information retrieval|{{nowrap|Fall-out}}]], probability&nbsp;of&nbsp;false&nbsp;alarm <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; False positive|&Sigma;&nbsp;Condition&nbsp;negative}}</span>
|style="background:#eeddbb;"|[[False positive rate]] (FPR), [[Information retrieval|{{nowrap|Fall-out}}]], probability&nbsp;of&nbsp;false&nbsp;alarm <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; False positive|&Sigma;&nbsp;Condition&nbsp;negative}}</span>
|style="background:#eeeeee;"|[[Positive likelihood ratio]] {{nowrap|(LR+)}} <span style="font-size:118%;white-space:nowrap;">= {{sfrac|TPR|FPR}}</span>
|style="background:#eeeeee;"|[[Positive likelihood ratio]] {{nowrap|(LR+)}} <span style="font-size:118%;white-space:nowrap;">= {{sfrac|TPR|FPR}}</span>
|style="background:#dddddd;" rowspan="2"|[[Diagnostic odds ratio]] (DOR) <span style="font-size:118%;white-space:nowrap;">= {{sfrac|LR+|LR−}}</span>
|style="background:#dddddd;" rowspan="2"|[[Diagnostic odds ratio|Diagnostic {{nowrap|odds ratio}}]] (DOR) <span style="font-size:118%;white-space:nowrap;">= {{sfrac|LR+|LR−}}</span>
|style="background:#ddffdd;border-left:double silver;line-height:2;" rowspan="2"|[[F1 score|F<sub>1</sub> score]] = <span style="font-size:118%;white-space:nowrap;">{{sfrac|2|{{sfrac|1|Recall}}&nbsp;+&nbsp;{{sfrac|1|Precision}}}}</span>
|style="background:#ddeedd;border-left:double silver;line-height:1.2;" rowspan="2"|[[Matthews correlation coefficient|Matthews correlation]] {{nowrap|1=[[Matthews correlation coefficient|coefficient]] (MCC) =}}<br /><span style="line-height:1.5;">{{sqrt|TPR·TNR·PPV·NPV}} &minus; {{sqrt|FNR·FPR·FOR·FDR}}</span>
|style="background:#ddffdd;border-left:double silver;line-height:2;" rowspan="2"|[[F1 score|F<sub>1</sub> score]] = <span style="font-size:118%;white-space:nowrap;">{{sfrac|2&hairsp;·&hairsp;PPV&hairsp;·&hairsp;TPR|PPV + TPR}}</span> = <span style="font-size:118%;white-space:nowrap;">{{sfrac|2&hairsp;·&hairsp;Precision&hairsp;·&hairsp;Recall|Precision + Recall}}</span>
|- style="font-size:90%;"
|- style="font-size:90%;"
|style="background:#ffeecc;"|[[False negative rate]] (FNR), Miss&nbsp;rate <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; False negative|&Sigma;&nbsp;Condition&nbsp;positive}}</span>
|style="background:#ffeecc;"|[[False negative rate]] (FNR), Miss&nbsp;rate <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; False negative|&Sigma;&nbsp;Condition&nbsp;positive}}</span>
|style="background:#ddeebb;"|[[True negative rate]] (TNR), [[Specificity (tests)|Specificity]] (SPC) <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; True negative|&Sigma;&nbsp;Condition&nbsp;negative}}</span>
|style="background:#ddeebb;"|[[Specificity (tests)|Specificity]] (SPC), Selectivity, [[True negative rate]] (TNR) <span style="font-size:118%;white-space:nowrap;">= {{sfrac|&Sigma; True negative|&Sigma;&nbsp;Condition&nbsp;negative}}</span>
|style="background:#cccccc;"|[[Negative likelihood ratio]] {{nowrap|(LR−)}} <span style="font-size:118%;white-space:nowrap;">= {{sfrac|FNR|TNR}}</span>
|style="background:#cccccc;"|[[Negative likelihood ratio]] {{nowrap|(LR−)}} <span style="font-size:118%;white-space:nowrap;">= {{sfrac|FNR|TNR}}</span>
|}
|}

Latest revision as of 20:55, 13 May 2021

True condition
Total population Condition positive Condition negative Prevalence = Σ Condition positive/Σ Total population Accuracy (ACC) = Σ True positive + Σ True negative/Σ Total population
Predicted condition
Predicted condition
positive
True positive False positive,
Type I error
Positive predictive value (PPV), Precision = Σ True positive/Σ Predicted condition positive False discovery rate (FDR) = Σ False positive/Σ Predicted condition positive
Predicted condition
negative
False negative,
Type II error
True negative False omission rate (FOR) = Σ False negative/Σ Predicted condition negative Negative predictive value (NPV) = Σ True negative/Σ Predicted condition negative
True positive rate (TPR), Recall, Sensitivity (SEN), probability of detection, Power = Σ True positive/Σ Condition positive False positive rate (FPR), Fall-out, probability of false alarm = Σ False positive/Σ Condition negative Positive likelihood ratio (LR+) = TPR/FPR Diagnostic odds ratio (DOR) = LR+/LR− Matthews correlation coefficient (MCC) =
TPR·TNR·PPV·NPVFNR·FPR·FOR·FDR
F1 score = 2 · PPV · TPR/PPV + TPR = 2 · Precision · Recall/Precision + Recall
False negative rate (FNR), Miss rate = Σ False negative/Σ Condition positive Specificity (SPC), Selectivity, True negative rate (TNR) = Σ True negative/Σ Condition negative Negative likelihood ratio (LR−) = FNR/TNR