Jump to content

Template:DiagnosticTesting Diagram: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Fix {{vte}}
Note superseded
 
(4 intermediate revisions by the same user 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 7: 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>
|-
|-
Line 14: Line 15:
|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>
|-
|-
Line 20: Line 21:
|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%;"
Line 27: Line 28:
|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;">2 · {{sfrac|Precision · Recall|Precision + Recall}}</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>

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