Interpreting Correlations
An Interactive Visualization
Correlation is one of the most widely used tools in statistics. The correlation coefficient summarizes the association between two variables. In this visualization I show a scatter plot of two variables with a given correlation. The variables are samples from the standard normal distribution, which are then transformed to have a given correlation by using Cholesky decomposition. By moving the slider you will see how the shape of the data changes as the association becomes stronger or weaker. You can also look at the Venn diagram to see the amount of shared variance between the variables. It is also possible to drag the data points to see how the correlation is influenced by outliers.
Correlation: —
FAQ
How do I use this visualization?
Use the slider or the correlation input to set the correlation. The same sample is re-transformed each time, so the points move smoothly as the association strengthens or weakens; the Venn diagram shows the corresponding shared variance.
Edit the data points
With Edit points on (the pencil above the chart), choose Drag to move points, Add to insert a point wherever you click, or Delete to remove points. All statistics — including the slider — follow the observed sample, so dragging a single point into the corner is a quick way to see how sensitive the correlation is to outliers.
Presets
Small/medium/large snap the correlation to the conventional benchmarks (0.1, 0.3, 0.5). Anscombe I–IV load Anscombe's quartet — four datasets sharing nearly identical summary statistics but wildly different shapes — and Anscombosaurus loads the datasaurus. Both are reminders to always plot your data.
Load your own data (CSV)
The settings drawer can load a CSV file with this structure:
x,y
10.0,11.0
12.0,12.0
...,... The first row is the column names, which become the axis labels; the first column is taken as x and the second as y — all other columns are ignored. The file is parsed in your browser and not uploaded anywhere: this site performs no server-side calculations.
Probability ellipses
Toggle the ellipses in the settings drawer; they mark the regions expected to hold 50, 80, 95, and 99% of the data under a bivariate normal with the sample's moments. Protip: click an ellipse to highlight it and read off its probability (except in Add mode, where clicks place new points).
Slope chart
The slope-chart toggle redraws each (x, y) pair as a Pre–Post line — the same data viewed as change scores, where the correlation governs how much the lines cross.
The settings drawer also draws new samples of any size, sets the population means and SDs,
re-frames the axes (Rescale), and saves the current state in your browser's localStorage.
What are the formulas?
The sample product-moment correlation between x and y is
where and are the sample standard deviations. The shared variance shown next to the Venn diagram is , and the regression line uses the ordinary least-squares fit,
To display a chosen correlation , the sample is first standardized (z-scored). Writing for the observed correlation of the standardized pair, whitening removes the sampled association,
which is the inverse Cholesky factor of the observed 2×2 correlation matrix applied to the data. The target correlation is then imposed with the Cholesky factor of and the result is scaled back to the target moments:
Because the standardized sample has unit variances by construction, the transformed points have a sample correlation of exactly — no simulation error.
The probability ellipses are level curves of the fitted bivariate normal: the ellipse containing probability has half-axes
along the principal directions, where is the chi-square quantile with 2 degrees of freedom.
How do I cite this page?
Cite this page according to your favorite style guide.
The current version is 0.8.0 (changelog).
APA 7
Magnusson, K. (2026). Interpreting correlations: An interactive visualization (Version 0.8.0) [Web App]. R Psychologist. https://rpsychologist.com/correlation/
BibTeX
@software{magnussonCorrelation,
author = {Kristoffer Magnusson},
title = {Interpreting correlations: An interactive visualization},
url = {https://rpsychologist.com/correlation/},
version = {0.8.0},
date = {2026-10-24},
}I found a bug/error/typo or want to make a suggestion!
Please report errors or suggestions by opening an issue on GitHub; if you want to ask a question, use GitHub Discussions.
I'm gonna ask a large number of students to visit this site. Will it crash your server?
No, it will be fine. The app runs in your browser, so the server only needs to serve the files.
Can I include this visualization in my book/article/etc?
Yes, go ahead! This visualization is dedicated to the public domain (CC0), which means you can copy, modify, and distribute it, even for commercial purposes, without asking permission. Attribution is not required but always appreciated. The source code is licensed MIT, and the text on this page is CC-BY 4.0.
More visualizations
All visualizations →
Cohen's d Effect size and the overlap between two distributions.

Likelihood Maximum likelihood estimation and the likelihood ratio, Wald, and score tests.

Article Adjusted coefficients Why adjusted regression coefficients are less descriptive than they look.

PowerLMM.js Sample size planning for longitudinal models with missing data.