Correlation and Regression
Correlation and Regression
Correlation and regression both pertain to data measured in pairs – called bivariate data. Correlation is a measure of how closely linked the two data sets are, and how they affect each other. Regression is the line of best fit.
Correlation and Scatter Graphs
When we have bivariate data, one variable will be the independent (or explanatory) variable, and another will be the dependent (or response) variable. The independent variable is the one that you can control, and goes on the axis. The dependent variable is the one that is being affected, and it goes on the axis.
There won’t always be a clear independent and dependent variable, and in that case it is not as important which way round they go on a scatter graph.
Correlation comes in three flavours: positive, negative and no correlation. In positive correlation, as one variable goes up so does the other. In negative correlation, as one variable goes up the other goes down. In no correlation, there is no clear link between the variables.
Correlation can also be strong or weak. In strong correlation, the data is very close to forming a line. In weak correlation, the data is not close to forming a line.
Outliers look obvious on a scatter graph. They can be ignored in subsequent calculation – but if you do plan to ignore an outlier make sure you clearly mark it on the graph as such.
You should also be aware of clusters. This is where the data forms several separate groups on the graph. We can talk about overall correlation and correlation in clusters. For example, in the graph on the right, there is negative correlation overall but positive correlation in the clusters.
Regression
The regression line of on is the line of best fit. It is always written in the same form:
is the intercept
is the gradient
The regression line can be used to predict values of the dependent variable. This comes in two flavours:
- Interpolation – If the value of being used in the prediction falls inside the range of the values of in the data. The predicted value should be reliable.
- Extrapolation – If the value of being used in the prediction falls outside of the range of the values of in the data. The predicted value might be unreliable.
Regression with Coded Data
Regression can also be done on coded data. All we do is we substitute the coding into our regression line, then rearrange to get it back in straight line form.
Example: , with coding , becomes:
Also, we can form regression lines from non-linear data in some cases.
Example: becomes which is regression in and .
Example 1: Correlation
Plot a scatter graph then describe the correlation of this data:
[4 marks]
Plot the points on the graph:
This graph shows positive correlation.
Example 2: Regression
Data is collected about the temperature of the water in a kettle in °C over time in minutes. The regression line is:
What is the gradient and y-intercept, and what do these mean in the context of the experiment. How long does the kettle take to boil?
[5 marks]
Gradient is °C
y-intercept is °C
In context, this means that the water starts at a temperature of °C and rises by °C every minute.
The kettle finishes boiling at °C. Substitute this value into the expression:
minutes
Correlation and Regression Example Questions
Question 1: The table below shows the results of fuel efficiency tests where is the amount of fuel placed into the vehicle in litres and is the distance the vehicle travelled before it ran out of fuel.

i) Plot a scatter graph of this data.
ii) What kind of correlation is shown?
[4 marks]
Plot the points on the graph:

This graph shows positive correlation.
Question 2: The data below shows how long bacteria lived after being placed into more and more alkaline solutions. is the pH of the solution and is the time in seconds the bacterium lived.

i) Plot this data on a scatter graph.
ii) Describe the correlation.
[4 marks]
Plot the points on the graph.

This graph shows negative correlation.
Question 3: A regression line of describes a correlation.
i) What are and ?
ii) If there is negative correlation, is ?
iii) What value does take when ?
iv) Suppose this regression describes the size of birds against the distance they travel to migrate. What does mean? Is the physical interpretation for sensible?
[6 marks]
i) is y-intercept
is gradient
ii) Negative correlation means
iii) because is the y-intercept
iv) is the gradient so it is the amount of distance further a bird travels to migrate per unit weight
is the travel distance of a bird of weight. Since birds cannot have no weight, this is not sensible.
Question 4: The regression line of on is . The data is coded with and . Find the regression line of on .
[4 marks]
Rearrange to find
Rearrange to find
Substitute in the expressions for and
Question 5: Describe as fully as possible the correlation pictured.

[3 marks]
This graph shows correlation in clusters.
There is negative correlation within the clusters.
There is no correlation overall.
Specification Points Covered
L2 – Understand informal interpretation of correlation, understand that correlation does not imply causation