Correlation Matrix
Variant: Standard
Made-up data, for demonstration only
Variants
4 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- Check the statistical relationships among several variables
Correlation Matrix is a square grid in which the rows and the columns are the same set of variables. Each cell is the correlation (r) of that pair. This example uses r values set for demonstration, for 5 store indicators, not computed from real store data. Orange cells are positive relationships and grey cells are negative ones.
How to read a Correlation Matrix
- r runs from -1 to 1. 0 means no linear relationship. A value of 1 or -1 is a perfect linear relationship. The sign gives the direction: positive means they rise together, negative means they move in opposite ways.
- The diagonal is 1 when the variable varies. Each variable is compared with itself. A variable that is constant throughout has no r.
- The grid is symmetric. The upper right and lower left halves repeat each other. Try the "Lower half" variant, which shows only one half.
- Find the darkest cells. In this example advertising and sales have r = 0.71 (the strongest positive), returns and reviews have r = -0.66, and price and sales have r = -0.62 (strong negatives).
- Find the cells near zero. Here price and advertising (0.20) and advertising and returns (0.05) show almost no linear relationship.
- Check against the real points. r is a single-number summary and does not show whether the data follow a straight line. Open a Scatter Plot of the pair you care about.
When to use it
- You have many variables and want to scan for the interesting pairs first. A correlogram is useful for early exploration, and a good first step when you get a multi-variable dataset.
- You want to find variables that may carry similar information. A high |r| can be a signal to check for redundancy before building a model, but you still need the raw data and the context.
- You want to present a summary of relationships to readers who do not need to see every point. It shows the pattern fast, such as one variable being negatively related to almost all the others.
When not to use it
- You need to see the raw data. A correlogram is abstract and hides the data points, which can lead to wrong conclusions. Looking at raw data beats looking at computed values. Use a Pair Plot.
- The relationship is not a straight line. r measures only linear relationships.
- You have more than about 10 variables. It becomes very hard to read. Cut the variables or group them first.
- The variables are categories. Use a cross-tabulation or a Mosaic/Marimekko.
Common mistakes
1. Reading a high r as cause and effect
A high r says that the variables move together. It does not say which one causes the other.
2. Not looking at the points
Remember that this family of charts hides the raw data. Data that follow a curve or contain an outlier can give the same r as data on a straight line.
3. Values near zero do not stand out
A colour grid does not push near-zero values into the background. For example, two unrelated variables still show as a faintly coloured cell. One fix is to use circles sized by |r|.
4. A colour scale that is not symmetric around zero
The midpoint of the colour scale must sit at r = 0. This example uses grey, white and orange.
5. Ordering the variables alphabetically
Ordering so that related variables sit next to each other shows the groups more clearly. Try the "Order by cluster" variant.
Compared with similar charts
| Chart | How it differs | Choose it when |
|---|---|---|
| Correlation Matrix | The r value of every pair in a grid | Scanning relationships among many variables |
| Pair Plot | The real data points of every pair | You want to see the shape of each relationship, with no more than 6–8 variables |
| Heatmap | A general colour grid | Values other than r |
| PCA Biplot | Reduces many variables to 2 axes | There are many variables and you want to see groups of items |
Frequently asked questions
How big must r be to count as a strong relationship?
There is no fixed line. It depends on the field. Always look at the data points as well.
Is a correlogram different from a correlation matrix?
The word correlogram is used for pictures that summarise many pairs in several ways. This example is a direct grid of the r values of every pair.
Can I use it with categorical variables?
Not directly. r applies to numeric variables.
References
- Fundamentals of Data Visualization, ch. 12: Visualizing associations among two or more quantitative variables · Claus O. Wilke · clauswilke.comUsed to confirm: relationships between variables, correlation and PCA
- Correlogram · Data to Viz · www.data-to-viz.comUsed to confirm: how to read a correlogram and what to watch out for
Last updated 28 Nov 2026