*59*

One way to quantify the relationship between two variables is to use theÂ Pearson correlation coefficient,Â which isÂ a measure of the linear association between two variables*.Â *It has a value between -1 and 1 where:

- -1 indicates a perfectly negative linear correlation between two variables
- 0 indicates no linear correlation between two variables
- 1 indicates a perfectly positive linear correlation between two variables

The further away the correlation coefficient is from zero, the stronger the relationship between the two variables.

But in some cases we want to understand the correlation between more than just one pair of variables. In these cases, we can create aÂ correlation matrix, which is a square table that shows the the correlation coefficients between several pairwise combination of variables.Â

This tutorial explains how to create and interpret a correlation matrix in Google Sheets.

**How to Create a Correlation Matrix in Google Sheets**

Suppose we have the following dataset that shows the average numbers of points, rebounds, and assists for 10 basketball players:

To create a correlation matrix for this dataset, we can use theÂ **CORREL() **function with the following syntax:

Â

COVAR(data_y, data_x)Â

The covariance matrix for this dataset is shown in cellsÂ **B15:D17Â **while the formulas used to create the covariance matrix are shown in cellsÂ **B21:D23Â **below:

**How to Interpret a Correlation Matrix**

The values in the individual cells of the correlation matrix tell us the Pearson Correlation Coefficient between each pairwise combination of variables. For example:

**Correlation between Points and Rebounds:Â **-0.0464. Points and rebounds are slightly negatively correlated, but this value is so close to zero that there isnâ€™t strong evidence for a significant association between these two variables.

**Correlation between Points and Assists:Â **0.1219. Points and assists are slightly positively correlated, but this value also is fairly close to zero so there isnâ€™t strong evidence for a significant association between these two variables.

**Correlation between Rebounds and Assists:Â **0.7137. Rebounds and assists are strongly positively correlated. That is, players who have more rebounds also tend to have more assists.

Notice that the diagonal values in the correlation matrix are all equal to 1 because the correlation between a variable and itself is always 1. In practice, this number isnâ€™t useful to interpret.

**Additional Resources**

How to Read a Correlation Matrix

How to Create a Correlation Matrix in Excel