LightMySky

Scatter Graphs & Correlation

Describe simple mathematical relationships between two variables using scatter graphs, identify positive, negative, or no correlation, and use a line of best fit to make predictions

Start learning thisNo account needed. Progress saves in this browser.

What a learner can do afterwards

  • Plot bivariate data on a scatter graph and describe the type of correlation observed
  • Draw a line of best fit by eye and use it to estimate a value within the data range
  • Explain what positive, negative, and no correlation mean in the context of real data (e.g., temperature vs. ice-cream sales)

1 · Read

A scatter graph shows how two things might be connected. Each point stands for one person or one item, plotted using two measurements at once, like hours of sleep and test score. You already know how to plot a point using an x-value and a y-value. A scatter graph just uses many of those points together to look for a pattern.

Try it together

Priya asks eight classmates how many hours they revised and what score they got out of 20. She plots each classmate as one point: hours revised on the x-axis, score on the y-axis. Looking at all eight points, she sees them climb upward from left to right. That upward trend is called positive correlation. More revision tends to go with a higher score.

1h62h93h114h14
Four of Priya's points: 1 hour with a score of 6, 2 hours with 9, 3 hours with 11, 4 hours with 14. The bars climb from left to right, just like her points. That climbing pattern is positive correlation.

Correlation just describes the pattern in the points. Positive correlation means as one variable goes up, the other tends to go up too, like temperature and ice-cream sales. Negative correlation means as one goes up, the other tends to go down, like the age of a used car and its price. No correlation means there is no clear pattern at all, like shoe size and test scores.

A correlation is not proof of a cause. On a wet day more umbrellas go up and more buses run late, so the two rise together, but no umbrella ever delayed a bus. The rain is doing both. Before you say one thing causes the other, look for a third thing that could be moving them together.

wet dayumbrellas upbuses late
The rain is the third thing here. It pushes umbrellas up and buses behind schedule at the same time, so the two correlate without either one causing the other.

Once the points are plotted you can draw a line of best fit: one straight line through the middle of them, with roughly as many points above as below. It follows the overall trend rather than joining the dots bump by bump. To estimate with it, find your value on one axis, trace across to the line, then read off the other. That works inside the range you plotted; past the ends of your data you cannot tell whether the pattern keeps going.

Points trending up mean positive correlation, points trending down mean negative correlation, scattered points mean no correlation, a line of best fit shows the overall trend, and none of it proves that one thing causes the other.

More to read

Scatter Plots, Correlation, and Regression Lines

A scatter plot is a picture of the relationship between two sets of numbers. You plot one variable on the horizontal axis and the other on the vertical axis, and each pair of values becomes one dot on the graph.

Once the dots are on the page, look at the pattern they make. If the dots climb upward from left to right, the correlation is positive: as one quantity grows, the other tends to grow too. Think of sunny days and ice cream sales. If the dots slide downward from left to right, the correlation is negative: as one quantity grows, the other tends to shrink, like temperature and the number of coats sold. If the dots are scattered with no clear direction at all, there is no correlation.

When the pattern looks roughly like a straight line, you can draw a line of best fit. This is the line that stays as close as possible to all the dots at once. You can then use the line to estimate a value you did not measure. Reading a value between your data points is usually safe. Stretching the line far beyond your data is riskier, because the pattern might not hold that far.

Fitting Linear Models to Data

Imagine a teacher who wonders if older students score higher on a final exam. One great way to investigate is to draw a scatter plot: one dot per student, with age on one axis and exam score on the other.

After plotting the dots, step back and describe what you see. Does the cloud of dots look like it follows a straight line, or does it curve? Does it climb or fall? Are the dots tight together or spread out? Answering these questions tells you whether a linear model makes sense.

If the dots roughly follow a straight line, you can draw a line of best fit, also called a regression line. It is the straight line that comes closest to all the dots at the same time. Once the line is drawn, you can use it to make predictions: find a value on one axis, move across to the line, and read off the matching value on the other axis. Predicting between your measured points is called interpolation and is fairly reliable. Predicting far outside them is called extrapolation, and you should treat those guesses with care, because the real world might not follow the line that far.

Key Terms: Correlation and Lines of Best Fit

Here are the important words for working with scatter graphs.

Correlation coefficient: a number, usually written as r, that always sits between -1 and 1. It tells you how closely your data follows a straight line. Values near 1 mean a strong positive relationship, values near -1 mean a strong negative relationship, and values near 0 mean little or no straight-line relationship.

Line of best fit: the straight line that passes as close as possible to all the points on a scatter graph. You use it to spot the trend and to estimate values.

Interpolation: estimating a value that lies between the data points you actually collected. This is usually a safe guess.

Extrapolation: predicting a value that lies outside the range of your data. This can be useful, but the further you stretch beyond your data, the less you can trust the guess.

Outlier: a point that sits far away from the main pattern of the rest of the points. Outliers can pull a line of best fit away from where it should be.

2 · Watch

3 · Play

Last month the two pumpkin beds got one number each, a mean apiece, and the sunny bed's mean was the bigger one. That told Leo and Mia which bed grew better. It never told them why. So this season they wrote down two numbers for every tomato plant on the allotment: hours of sun it gets on a clear day, and kilograms picked off it by October.

The first plant gets 7 hours of sun and gave 4.2 kg. What goes on the graph for it?

7 h sun4.2 kgone plant, one point
  • Two points, one for the hours and one for the kilograms

    Split them up and the graph forgets which plant is which. The pairing is the whole idea: the 7 and the 4.2 have to travel together.

  • One point per bed, using the bed's mean

    That is last month's method, and it hands you two numbers again. Here every plant speaks for itself.

  • One point, at 7 along and 4.2 up (The answer)

    Yes. The plant's two measurements become one dot's two coordinates. Every plant on the allotment gets one.

That is a scatter graph. One dot per plant, each dot carrying both of its numbers at once.

The plotter below is loaded with the Meadow Lane season. Tap to drop the plants in one at a time and watch the cloud take shape. Three pairs are saved: sun against tomatoes, slugs against lettuce, and the shoe size of whoever planted it against the kilograms it gave.

Plot all three pairs. Then tap one dot here for each pair whose cloud leans in a clear direction, up or down.

Two of the three lean. Sun and tomatoes climbs to the right, slugs and lettuce drops. Shoe size against tomatoes is a cloud with no lean at all, and that is a real finding, not a failed graph.

Take the slugs and lettuce cloud on its own. Four of the lettuces, with the slugs counted on each one in June and the head weighed in July: 2 slugs and 420 g, 5 slugs and 350 g, 9 slugs and 260 g, 14 slugs and 180 g.

What is this pattern called?

2 slugs4205 slugs3509 slugs26014 slugs180
  • Negative correlation (The answer)

    Yes. One measurement climbs while the other drops, so the cloud leans down to the right.

  • Positive correlation

    Check the direction. Slugs go up, 2 to 14, while the masses go down, 420 g to 180 g. Positive means both climbing together.

  • No correlation

    No correlation would mean the masses jump about with no direction. These fall steadily as the slugs climb, and steady is a direction.

Both climbing is positive, one climbing while the other drops is negative. Neither is the better result, they are just directions.

Back to the tomatoes. The cloud climbs: sunnier plants gave more kilograms. Leo says the graph proves it, more sun makes more tomatoes, so next year everything goes in the sunny end. Mia points out that the sunny end is also where they dug the compost in.

Who has read the graph properly?

sunny endcompost toobig crop
  • Leo. The points climb, so the sun is the cause.

    The climb is real. A climb only shows two things rising together, though, and it cannot pull the sun apart from the compost sitting under the same plants.

  • Mia. The two rise together, and the compost could be lifting the crop as much as the sun is. (The answer)

    Yes. Correlation says these two move together. It does not say which one is doing the work, or whether a third thing is doing it for both.

  • Neither. A climb like that is a coincidence.

    That throws away a real pattern. The climb is there and worth having. What it is not yet is proof of a cause.

To pin the sun down, they would have to spread the compost evenly and let only the sun differ. The graph is evidence, not a reason.

Saturday stall, no graph yet. Some weeks Mia prices a punnet at £2 and the tray is empty by noon. Some weeks she tries £4 and punnets are still sitting there at three o'clock. Twelve Saturdays, price written against punnets sold.

Before she plots a single dot, which way should that cloud lean?

  • Up to the right: higher price, more sold

    That would mean people buy more as it gets dearer. Her Saturdays say the opposite: the £4 tray is the one still full at three.

  • No lean at all

    No lean would mean the price makes no difference to how many go. A noon sellout at £2 against leftovers at £4 says it makes plenty.

  • Down to the right: higher price, fewer sold (The answer)

    Yes. Price up, sales down, so the dots run downhill from left to right. Negative correlation, named before a single dot went on.

Saying which way you expect the cloud to lean is worth doing first. If it comes out the other way, the data has something to tell you.

One allotment, two numbers per plant, and a cloud that answers what a single mean could not.

  • One item, two measurements, one dot: that is the whole scatter graph
  • Up to the right is positive, down to the right is negative, no lean is no correlation
  • No lean is an answer too, not a graph that went wrong
  • A pattern shows two things moving together, never which one moved the other
Try it yourself

season plotter

Plot the season plant by plant and watch the cloud take a lean. Then try slugs, and shoe sizes.

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

14 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Start learning this