Correlation and Regression

A LevelAQAEdexcelOCR

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.

A LevelAQAEdexcelOCR

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 xx axis. The dependent variable is the one that is being affected, and it goes on the yy 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.

A LevelAQAEdexcelOCR

Regression

The regression line of ymathbf{y} on xmathbf{x} is the line of best fit. It is always written in the same form:

y=a+bxy=a+bx

aa is the yy intercept

bb 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 xx being used in the prediction falls inside the range of the values of xx in the data. The predicted value should be reliable.
  • Extrapolation – If the value of xx being used in the prediction falls outside of the range of the values of xx in the data. The predicted value might be unreliable.
A LevelAQAEdexcelOCR
A LevelEdexcel

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: y=4+10xy=4+10x, with coding s=2ys=2y, t=x3t=x-3 becomes:

s2=4+10(t+3)=4+10t+30=34+10tbegin{aligned}dfrac{s}{2}&=4+10(t+3)[1.2em]&=4+10t+30[1.2em]&=34+10tend{aligned}

s=68+20ts=68+20t

 

Also, we can form regression lines from non-linear data in some cases.

Example: y=axny=ax^{n} becomes log(y)=log(a)+nlog(x)log(y)=log(a)+nlog(x) which is regression in log(y)log(y) and log(x)log(x).

A LevelEdexcel
A LevelAQAEdexcelOCR

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.

A LevelAQAEdexcelOCR

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:

y=20+40xy=20+40x

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 4040°C

y-intercept is 2020°C

In context, this means that the water starts at a temperature of 2020°C and rises by 4040°C every minute.

The kettle finishes boiling at 100100°C. Substitute this value into the expression:

100=20+40x100=20+40x

40x=8040x=80

x=2x=2 minutes

A LevelAQAEdexcelOCR

Correlation and Regression Example Questions

Question 1: The table below shows the results of fuel efficiency tests where xx is the amount of fuel placed into the vehicle in litres and yy 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]

A Level AQAEdexcelOCR

Plot the points on the graph:

 

 

This graph shows positive correlation.

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

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

i) Plot this data on a scatter graph.

ii) Describe the correlation.

[4 marks]

A Level AQAEdexcelOCR

Plot the points on the graph.

 

 

This graph shows negative correlation.

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 3: A regression line of y=a+bxy=a+bx describes a correlation.

i) What are aa and bb?

ii) If there is negative correlation, is b>0b>0?

iii) What value does yy take when x=0x=0?

iv) Suppose this regression describes the size of birds against the distance they travel to migrate. What does bb mean? Is the physical interpretation for aa sensible?

[6 marks]

A Level AQAEdexcelOCR

i) aa is y-intercept

bb is gradient

 

ii) Negative correlation means b<0b<0

 

iii) y=ay=a because aa is the y-intercept

 

iv) bb is the gradient so it is the amount of distance further a bird travels to migrate per unit weight

aa is the travel distance of a bird of 00 weight. Since birds cannot have no weight, this is not sensible.

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 4: The regression line of yy on xx is y=8x+3y=8x+3. The data is coded with s=y10+4s=dfrac{y}{10}+4 and t=4(x+3)t=4(x+3). Find the regression line of ss on tt.

[4 marks]

A Level Edexcel

y=8x+3y=8x+3

 

s=y10+4s=dfrac{y}{10}+4

Rearrange to find yy

s4=y10s-4=dfrac{y}{10}

y=10(s4)y=10(s-4)

 

t=4(x+3)t=4(x+3)

Rearrange to find xx

t4=x+3dfrac{t}{4}=x+3

x=t43x=dfrac{t}{4}-3

 

Substitute in the expressions for xx and yy

10(s4)=8(t43)+310(s-4)=8left(dfrac{t}{4}-3right)+3

10s40=2t24+310s-40=2t-24+3

10s40=2t2110s-40=2t-21

10s=2t+1910s=2t+19

s=15t+1910s=dfrac{1}{5}t+dfrac{19}{10}

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 5: Describe as fully as possible the correlation pictured.

[3 marks]

A Level AQAEdexcelOCR

This graph shows correlation in clusters.

There is negative correlation within the clusters.

There is no correlation overall.

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Additional Resources

Site Logo

Exam Tips Cheat Sheet

A Level
Site Logo

Formula Booklet

A Level

Specification Points Covered

L2 – Understand informal interpretation of correlation, understand that correlation does not imply causation

Correlation and Regression Worksheet and Example Questions