turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- Re: MANOVA Partial Covariance Matrix

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Aug 11, 2017 8:45 PM
(1234 views)

Hello,

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.

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.

**Here is the JMP output:**

**Here is calculating the Covariance Matrix in MS Excel:**

Cov(x,y) = (1/(N-1))*sum((Xi-Xbar)*(Yi-Ybar))

N = 20 (patients)

**Here is the same output as MS Excel in MATLAB using the cov(x, y) function:**

Maybe I am not understanding what the partial covariance matrix is, but shouldn't it be identical to the covariance matrix?

Thank you.

3 REPLIES

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Aug 12, 2017 3:58 PM
(1214 views)

Hi, bio_grad!

First, a quick lesson on partial covariance matrices:

A classic example is the observed positive correlation between the damage caused by a fire and the number of fire trucks sent to the fire. 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. 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. This is what Partial Correlation and Covariance are trying to do by using residuals from the estimated model. Covariance and partial covariance are not the same conceptually, and will only rarely and trivially give identical results. I recommend Everitt, B.S., Dunn. G. (2001) __Applied Multivariate Data Analysis__ (2nd Ed.) Oxford University Press for a more complete treatment, if you're interested. Even Sir Ronald Aylmer Fisher has written on partial correlation!

Second, friends don't let friends use Excel for statistics or even mathematics. 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. Beware any results from Excel, even though it does appear to match MATLAB in this instance. MATLAB has great matrix algebra chops, but it looks to me like you just did covariance in it, and not partial covariance. True?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Aug 12, 2017 7:33 PM
(1207 views)

Hi Kevin,

Thanks for the reply and sharing the text resource.

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.

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.

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.

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.

I would like to determine the equations behind how JMP is generating that partial covariance matrix, given that there are six variables of data.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Aug 14, 2017 8:02 PM
(1180 views)

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.

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.

**Cause and Correlation in Biology - A User's Guide to Path Analysis By Bill Shipley**

Attached PDF.

Anyone lend a hand?

Thanks!