<?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 Re: MANOVA Partial Covariance Matrix in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43161#M24990</link>
    <description>&lt;P&gt;Hi, bio_grad!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, a quick lesson on partial covariance matrices:&lt;/P&gt;&lt;P&gt;A classic example is the observed positive correlation between the damage caused by a fire&amp;nbsp;and the number of fire trucks sent to the fire. &amp;nbsp;It's obvious to almost everyone that it would be crazy to try to lessen a fire's damage by sending fewer fire trucks to them...there is a third variable, maybe "size of the fire", that also influences the damage. &amp;nbsp;If one were to hold the size of the fire constant, one might even see a negative correlation between the damage and number of fire trucks. &amp;nbsp;This is what Partial Correlation and Covariance are&amp;nbsp;trying to do by using residuals from the estimated model. &amp;nbsp;Covariance and partial covariance are not the same conceptually, and will only rarely and trivially give identical results. &amp;nbsp;I recommend&amp;nbsp;Everitt, B.S., Dunn. G. (2001) &lt;U&gt;Applied Multivariate Data Analysis&lt;/U&gt; (2nd Ed.) Oxford University Press for a more complete treatment, if you're interested. &amp;nbsp;Even Sir Ronald Aylmer Fisher has &lt;A href="https://digital.library.adelaide.edu.au/dspace/bitstream/2440/15182/1/35.pdf" target="_self"&gt;written on partial correlation&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, friends don't let friends use Excel for statistics or even mathematics. &amp;nbsp;The road to hell is paved with software results comparisons irrespective of the packages, but Excel is repeatedly documented as doing statistics and math incorrectly. &amp;nbsp;Beware any results from Excel, even though it does appear to match MATLAB in this instance. &amp;nbsp;MATLAB has great matrix algebra chops, but it looks to me like you just did covariance in it, and not partial covariance. &amp;nbsp;True?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Aug 2017 22:58:38 GMT</pubDate>
    <dc:creator>Kevin_Anderson</dc:creator>
    <dc:date>2017-08-12T22:58:38Z</dc:date>
    <item>
      <title>MANOVA Partial Covariance Matrix</title>
      <link>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43148#M24980</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting familiar with JMP's Fit Model platform by trying to match results with MATLAB and MS Excel long-hand that I have computed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "Cholesterol.jmp" sample data file and running the Fit Model platform with MANOVA personality, I was a bit confused as to why my Partial Covariance matrix did not identically match my Covariance Matrices in MATLAB and MS Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fit_model.PNG" style="width: 419px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7170i84A2BF49124B00BB/image-dimensions/419x338?v=v2" width="419" height="338" role="button" title="fit_model.PNG" alt="fit_model.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the JMP output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmp_pcov.PNG" style="width: 517px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7172i02FE1588F91D3662/image-size/large?v=v2&amp;amp;px=999" role="button" title="jmp_pcov.PNG" alt="jmp_pcov.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is calculating the Covariance Matrix in MS Excel:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cov(x,y) = (1/(N-1))*sum((Xi-Xbar)*(Yi-Ybar))&lt;/P&gt;&lt;P&gt;N = 20 (patients)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel_cov.PNG" style="width: 450px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7171i33BC0EFE9190A695/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel_cov.PNG" alt="excel_cov.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the same output as MS Excel in MATLAB using the cov(x, y) function:&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matlab_cov.PNG" style="width: 716px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7173i59E441FA0BD1AC43/image-size/large?v=v2&amp;amp;px=999" role="button" title="matlab_cov.PNG" alt="matlab_cov.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I am not understanding what the partial covariance matrix is, but shouldn't it be identical to the covariance matrix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 03:46:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43148#M24980</guid>
      <dc:creator>bio_grad</dc:creator>
      <dc:date>2017-08-12T03:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: MANOVA Partial Covariance Matrix</title>
      <link>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43161#M24990</link>
      <description>&lt;P&gt;Hi, bio_grad!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, a quick lesson on partial covariance matrices:&lt;/P&gt;&lt;P&gt;A classic example is the observed positive correlation between the damage caused by a fire&amp;nbsp;and the number of fire trucks sent to the fire. &amp;nbsp;It's obvious to almost everyone that it would be crazy to try to lessen a fire's damage by sending fewer fire trucks to them...there is a third variable, maybe "size of the fire", that also influences the damage. &amp;nbsp;If one were to hold the size of the fire constant, one might even see a negative correlation between the damage and number of fire trucks. &amp;nbsp;This is what Partial Correlation and Covariance are&amp;nbsp;trying to do by using residuals from the estimated model. &amp;nbsp;Covariance and partial covariance are not the same conceptually, and will only rarely and trivially give identical results. &amp;nbsp;I recommend&amp;nbsp;Everitt, B.S., Dunn. G. (2001) &lt;U&gt;Applied Multivariate Data Analysis&lt;/U&gt; (2nd Ed.) Oxford University Press for a more complete treatment, if you're interested. &amp;nbsp;Even Sir Ronald Aylmer Fisher has &lt;A href="https://digital.library.adelaide.edu.au/dspace/bitstream/2440/15182/1/35.pdf" target="_self"&gt;written on partial correlation&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, friends don't let friends use Excel for statistics or even mathematics. &amp;nbsp;The road to hell is paved with software results comparisons irrespective of the packages, but Excel is repeatedly documented as doing statistics and math incorrectly. &amp;nbsp;Beware any results from Excel, even though it does appear to match MATLAB in this instance. &amp;nbsp;MATLAB has great matrix algebra chops, but it looks to me like you just did covariance in it, and not partial covariance. &amp;nbsp;True?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 22:58:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43161#M24990</guid>
      <dc:creator>Kevin_Anderson</dc:creator>
      <dc:date>2017-08-12T22:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: MANOVA Partial Covariance Matrix</title>
      <link>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43162#M24991</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply and sharing the text resource.&lt;/P&gt;&lt;P&gt;The MS Excel matrix that I posted was hand-made by myself without any add-ins, using the covariance equation I listed. I used the unbiased MATLAB cov function to verify they had the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand the concept of partial correlation when it involves three variables, but in the case of the Cholesterol.jmp file, there are six variables (columns) of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Googling partial correlation has a fair amount of hits but I can't seem to find any solid information on partial covariance and its mathematical relationship to partical correlation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The covariance matrices that I calculated in MATLAB and MS Excel are very similar to the JMP partial covariance matrix with a slight adjustment. I realize covariance and partial covariance are not the same, but they are mathematically related somehow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to determine the equations behind how JMP is generating that partial covariance matrix, given that there are six variables of data.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2017 02:40:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43162#M24991</guid>
      <dc:creator>bio_grad</dc:creator>
      <dc:date>2017-08-13T02:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: MANOVA Partial Covariance Matrix</title>
      <link>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43231#M25025</link>
      <description>&lt;P&gt;I feel like I am getting one step closer to figuring out how JMP is calculating this partial covariance matrix, but still can't quite nail it down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a good resource that describes the method with a simple example, but I can't match the JMP results for the Cholesterol.jmp with six variables using this techique.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cause and Correlation in Biology - A User's Guide to Path Analysis By Bill Shipley&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Attached PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone lend a hand?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 03:20:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/MANOVA-Partial-Covariance-Matrix/m-p/43231#M25025</guid>
      <dc:creator>bio_grad</dc:creator>
      <dc:date>2017-08-15T03:20:01Z</dc:date>
    </item>
  </channel>
</rss>

