<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with Nominal Logistic Fit: Confusion Matrix vs ROC Table Output? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-Nominal-Logistic-Fit-Confusion-Matrix-vs-ROC-Table/m-p/74926#M35879</link>
    <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been studying the Nominal Logistic Fit to determine the value of a Baseline Biomarker to predict the outcome of a Clinical&amp;nbsp;Treatment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that I understood the concept of the Confusion Matrix: it returns the numbers of True Positive, True Negative, False Positive, and False Negative for a given model for the Training data set and, if defined, the Validation set. However, when I compare the Confusion Matrix to the best outcome from the ROC Table (Maximum SENSITIVITY - (1 - SPECIFICITY) value), I struggle to reconcile the two.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example I have a a model with a ROC AUC = 0.654 (rather weak association) where the Confusion Matrix returns:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Predicted&lt;/TD&gt;&lt;TD&gt;Predicted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ACTUAL&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;82&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;ACTUAL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;278&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; which is really bad (actually worst than expected for the ROC AUC value).&lt;/P&gt;&lt;P&gt;For the same model, the ROC Table best combination of SENSITIVITY and SPECIFICITY is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Prob&lt;/TD&gt;&lt;TD&gt;1-SPEC&lt;/TD&gt;&lt;TD&gt;SENS&lt;/TD&gt;&lt;TD&gt;SENS - (1-SPEC)&lt;/TD&gt;&lt;TD&gt;True Pos&lt;/TD&gt;&lt;TD&gt;True Neg&lt;/TD&gt;&lt;TD&gt;False Pos&lt;/TD&gt;&lt;TD&gt;False Neg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.2797&lt;/TD&gt;&lt;TD&gt;0.2437&lt;/TD&gt;&lt;TD&gt;0.5060&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.2623&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;211&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; which is quite bad&amp;nbsp; but more in line with expected outcome of a model with a ROC AUC = 0.654&lt;/P&gt;&lt;P&gt;So, my questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the main difference between Confusion Matrix and the "best" row of the ROC Table?&lt;UL&gt;&lt;LI&gt;Is it because the former use the highest Probability and the latter uses the best SENSITIVITY and SPECIFICITY combination?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If I were to present these results, what would be the best option to present the Positive Predictive Value and the Negative Predictive&amp;nbsp;Value?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TS&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 16:09:11 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2018-09-21T16:09:11Z</dc:date>
    <item>
      <title>Help with Nominal Logistic Fit: Confusion Matrix vs ROC Table Output?</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Nominal-Logistic-Fit-Confusion-Matrix-vs-ROC-Table/m-p/74926#M35879</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been studying the Nominal Logistic Fit to determine the value of a Baseline Biomarker to predict the outcome of a Clinical&amp;nbsp;Treatment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that I understood the concept of the Confusion Matrix: it returns the numbers of True Positive, True Negative, False Positive, and False Negative for a given model for the Training data set and, if defined, the Validation set. However, when I compare the Confusion Matrix to the best outcome from the ROC Table (Maximum SENSITIVITY - (1 - SPECIFICITY) value), I struggle to reconcile the two.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example I have a a model with a ROC AUC = 0.654 (rather weak association) where the Confusion Matrix returns:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Predicted&lt;/TD&gt;&lt;TD&gt;Predicted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ACTUAL&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;82&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;ACTUAL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;278&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; which is really bad (actually worst than expected for the ROC AUC value).&lt;/P&gt;&lt;P&gt;For the same model, the ROC Table best combination of SENSITIVITY and SPECIFICITY is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Prob&lt;/TD&gt;&lt;TD&gt;1-SPEC&lt;/TD&gt;&lt;TD&gt;SENS&lt;/TD&gt;&lt;TD&gt;SENS - (1-SPEC)&lt;/TD&gt;&lt;TD&gt;True Pos&lt;/TD&gt;&lt;TD&gt;True Neg&lt;/TD&gt;&lt;TD&gt;False Pos&lt;/TD&gt;&lt;TD&gt;False Neg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0.2797&lt;/TD&gt;&lt;TD&gt;0.2437&lt;/TD&gt;&lt;TD&gt;0.5060&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0.2623&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;211&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&amp;gt; which is quite bad&amp;nbsp; but more in line with expected outcome of a model with a ROC AUC = 0.654&lt;/P&gt;&lt;P&gt;So, my questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the main difference between Confusion Matrix and the "best" row of the ROC Table?&lt;UL&gt;&lt;LI&gt;Is it because the former use the highest Probability and the latter uses the best SENSITIVITY and SPECIFICITY combination?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If I were to present these results, what would be the best option to present the Positive Predictive Value and the Negative Predictive&amp;nbsp;Value?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 16:09:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Nominal-Logistic-Fit-Confusion-Matrix-vs-ROC-Table/m-p/74926#M35879</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2018-09-21T16:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Nominal Logistic Fit: Confusion Matrix vs ROC Table Output?</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-Nominal-Logistic-Fit-Confusion-Matrix-vs-ROC-Table/m-p/74950#M35882</link>
      <description>&lt;P&gt;The confusion matrix and ROC are different. You understand the confusion matrix as described. In this example, you have practically no sensitivity (1/83) but&amp;nbsp;quite good specificity&amp;nbsp;(278/279).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ROC simultaneously evaluates both sensitivity and specificity so overall it looks a bit better than chance (AUC = 0.654).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The confusion matrix is for one cutoff and the ROC curve uses each observation as a cutoff, including the observation that produces the largest separation.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 17:52:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-Nominal-Logistic-Fit-Confusion-Matrix-vs-ROC-Table/m-p/74950#M35882</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-09-21T17:52:29Z</dc:date>
    </item>
  </channel>
</rss>

