Skip to content
LoveToCalc

Concept — what does that mean?

Correlation and causation

Correlation means two quantities move together in data. Causation means a change in one produces a change in the other, and that cannot be settled from the correlation alone.

In Swedish: Korrelation och kausalitet

What it is

Correlation means that two variables move together: when one is high, the other tends to be high as well (positive correlation) or low (negative correlation). How close the points lie to a straight line is measured by the correlation coefficient r, a number between −1 and 1.

Causation means that a change in one variable produces a change in the other. If Y changes when you change X, X is a cause of Y.

Suppose six months gave these values:

Month 1 2 3 4 5 6
Temperature (°C) 4 8 14 19 22 26
Ice creams sold (thousands) 11 13 31 38 52 57
Drownings 0 2 1 4 3 6

The correlation between ice cream sales and drownings is r ≈ 0.81, between temperature and ice cream sales r ≈ 0.99, and between temperature and drownings r ≈ 0.88. Ice cream sales and drownings move together, but the ice cream does not cause the drownings: warm weather increases both ice cream eating and swimming. Temperature is a confounder, a third variable that affects both.

When X and Y correlate there are several possible explanations, and the data alone do not say which holds:

  1. X causes Y. Regular endurance training lowers the resting heart rate.
  2. Y causes X. People who take many painkillers are often in pain, but it is the pain that causes the pills.
  3. A third variable affects both. Ice cream and drowning, or shoe size and reading ability in children, where age affects both.
  4. Chance. With few points, or when many variables are compared with each other, strong correlations can arise by coincidence.

r measures straight-line relationships only. The points (−2, 4), (−1, 1), (0, 0), (1, 1) and (2, 4) lie on the curve y = x², so x determines y completely, yet r = 0.

Why it matters

The regression calculator takes two lists, plots the points and gives r and R².

Common misconceptions

Common questions

How do you show that something is a cause? A correlation is not enough, however strong. Where it can be done, you compare outcomes between groups formed by chance, in a randomised experiment. Where it cannot, several kinds of evidence are weighed together: the cause comes before the effect, the link appears in different studies and groups, it grows stronger with a larger dose, and there is an explanation of how one could affect the other.

What is a confounder? A third variable that affects both X and Y and so produces a link between them. Temperature in the ice cream example is a confounder. The link between shoe size and reading ability in children becomes much weaker when children of the same age are compared.

Can a correlation reverse when the data are split up? Yes. This is Simpson’s paradox: a link that shows in each group separately can vanish or reverse when the groups are combined, if the groups differ in size or in some other factor. It is a reason to ask which groups were mixed together.

Does it matter which variable is x and which is y? Not for r: the correlation between x and y is the same as between y and x. The regression line does change, and the data do not say which way a cause works.

How large must a correlation be to count as strong? There is no threshold that holds everywhere. An r of 0.9 can be weak in a physical measurement and strong in a study of human behaviour. The number of points matters too: with 6 points, r = 0.8 can arise by chance; with 600 points it is very unlikely. Look at the points and at how many there are.

Last reviewed October 22, 2026 ·How pages are reviewed

Calculate it in practice

Statistics and probabilityAll formulas