Worksheet - Variance-Covariance Matrix and Correlation Matrix

Section 1 - Raw Data

Raw data (i.e., Raw score matrix)

Variable

Individuals

Σ

x1

1

2

1

5

4

13

x2

2

3

2

4

4

15

x3

3

4

3

5

4

19

Calculate the mean vector and standard deviation

Σ
 Mean
σ2
σ
x1

13

2.6

3.3
1.8166
x2

15

3.0

x3

19

3.8

Obtain a listing of deviations from the mean vector (i.e., deviation matrix)

Individuals

Deviations from Variable Means

x1
-1.6
x2
-1
x3

Variance

Square the deviations (i.e., Squared Deviation matrix)

Individuals
Σ

Squared Deviations from Variable Means

x1
2.56
x2
x3

Average the summed squared deviations - you lose a degree of freedom for every parameter that you estimate from your sample. You need an estimate of the parametric mean to calculate the deviations, you therefore get your estimated average squared dispersion (i.e., variance) when dividing by N-1 and not N.

Σ
N-1
Mean

Mean Squared Deviations from Variable Means

x1
13.2
4
3.3
x2
x3

Co-Variance

Multiply the deviations from two different variables and average them

Individuals
Σ
N-1
Mean

Deviations from Variable Means

x12
1.6
7
4
1.75
x13
x23

Standardized Covariance (Correlation)

Divide the Covariance by the two standard deviations of the respective variables

Σ
σ1*σ2
Σ/
(σ1*σ2)

Mean Squared Deviations from Variable Means

x12
1.75
1.8166*1
0.9633
x13
x23

Arrange results into a SS-CrossProducts Matrix

Term

Result

 
x1
x2
x3
x1
x2
x3
x1
Σ(X12)
Σ(X1X2)
Σ(X1X3)

13.2

7
.
x2
Σ(X1X2)
Σ(X22)
Σ(X2X3)
7
.
.
x3
Σ(X1X3)
Σ(X2X3)
Σ(X32)
.
.
.

Arrange results into a Variance-Covariance Matrix

Term

Result

 
x1
x2
x3
x1
x2
x3
x1
Var11=Σ(X12)/(N-1)

3.3

1.75
.
x2
CoVar12(X1X2)/(N-1)
Var22=Σ(X22)/(N-1)
1.75
.
.
x3
CoVar13=Σ(X1X3)/(N-1)
CoVar23(X2X3)/(N-1)
Var33=Σ(X32)/(N-1)
.
.
.

Arrange results into a Correlation Matrix

Term

Result

 
x1
x2
x3
x1
x2
x3
x1
r11= Var111σ1

1

x2
r12= CoVar121σ2
r22= Var222σ2
x3
r13= CoVar131σ3
r23= CoVar232σ3
r33= Var333σ3

Secrtion 2 - Standardized Data (z-values via standard normal deviate)

Rerun all calculations from above with data converted to standard normal deviates (i.e., standardized score matrix) where you subtract the variable's mean from each value and divide it by the variable's standard deviation.

Variable

Individuals

Σ
Mean
σ2
σ
x1

-0.8808

 

 

 

 

x2

 

 

 

 

 

x3

 

 

 

 

 

- continue with calculations from section 1

Report results into a Variance-Covariance Matrix: What do you notice in comparison with the results of section 1? What explains the matching terms?

Variance-Covariance Matrix

x1
x2
x3
x1
x2
x3

Repport Results for Correlation matrix: What do you notice in comparison with the results of section 1? What explains the matching terms?

Correlation Matrix

x1
x2
x3
x1
x2
x3

Secrtion 3 - Optional - Ranked Data

Rerun all calculations from above with data converted to ranked data. Correct for ties in the data by giving the tied values averaged ranks

Variable

Individuals

Σ
Mean
σ2
σ
x1

1.5

3

1.5

 

 

x2

 

 

 

 

 

x3

 

 

 

 

 

- continue with calculations from section 1

Report results into a Variance-Covariance Matrix: What do you notice in comparison with the results of section 1? What is different about this analysis? What are the data features that this analysis is more or less sensitive to? Compare with results from Spearmean's Rank Correlation

Variance-Covariance Matrix

x1
x2
x3
x1
x2
x3

Report Results for Correlation matrix:

Correlation Matrix

x1
x2
x3
x1
x2
x3


last modified: 1/25/13