Correlation and regressionIB MYP Maths Extended: Revision notes
Section 1
Scatter graphs and types of correlation
A scatter graph plots two variables for the same items, with one point for each item. Correlation describes the relationship between the variables.
- Positive correlation: as one variable increases, the other tends to increase (points rise from left to right).
- Negative correlation: as one variable increases, the other tends to decrease (points fall from left to right).
- No correlation: no clear pattern. Correlation describes a pattern; it does not prove that one variable causes the other.
Saying that a strong correlation proves one variable causes the other. It only shows that they tend to change together.
Section 2
Strength of correlation and the value of r
The correlation coefficient is found with technology. It is always between and .
- The sign gives the direction: is positive, is negative.
- The size gives the strength: close to is strong, around is moderate, close to is weak or none.
- or means all points lie exactly on a straight line. For example, is a strong negative correlation and is a very weak correlation. The strength depends on how close the points are to a line, not on how steep the line is.
Describe correlation with two words: the strength (strong, moderate, weak) and the direction (positive, negative).
Section 3
Line of best fit using technology
The line of best fit is a straight line that follows the trend of the points. Using technology (a graphic display calculator or spreadsheet) enter the data in two lists and ask for linear regression. This gives the equation and . Example: temperature and drinks sold give with . Interpret the numbers in context. The gradient is the change in for each increase of in : here about 3 more drinks for every extra degree. The intercept is the value of when , which may have no meaning in practice (here drinks).
Use the variable names in the equation, such as , rather than just and .
Section 4
Interpolation and extrapolation
You can use the equation to predict a value.
- Interpolation: predicting a value inside the range of the data you collected. This is usually reliable, especially when the correlation is strong.
- Extrapolation: predicting a value outside the range of the data. This is usually unreliable, because the pattern may not continue. Example: data for from to . At the equation gives (reliable). At it gives (unreliable, outside the data). Check for impossible values too: a car price of thousand AED shows that a model has failed.
Trusting a prediction far outside the data. Always compare the -value with the range of the data.
Section 5
Commenting on reliability
When you comment on a prediction, mention these things:
- Strength of correlation: a strong correlation (close to ) makes predictions more reliable.
- Interpolation or extrapolation: inside the data is reliable, outside is not.
- Sensible answer: is the predicted value possible? Prices and counts cannot be negative.
- Amount of data: the more points, the better the line. Write a short conclusion, for example: 'The prediction for 30 °C is reliable because it is within the data and .'
Give a reason with every comment: 'unreliable because it is outside the range of the data'.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Correlation and regression
- A researcher in Toronto collects data from 40 teenagers and finds that the correlation coefficient between their daily screen time (hours) and their sleep (hours) is .The researcher also finds between screen time and test scores. Describe this correlation and say what its scatter graph would look like.2 marks
- A student uses technology to investigate four sets of data. Set 1: line of best fit , points close to the line, . Set 2: line of best fit , points close to the line, . Set 3: line of best fit , points widely scattered about the line, . Set 4: line of best fit , points widely scattered about the line, .A sixth set has line of best fit and the points are widely scattered about the line. Use the pattern to describe its correlation.2 marks
- A kiosk in Mumbai records the maximum daily temperature (C) and the number of cold drinks sold on six days. The data are: , , , , , . Use technology.Find the equation of the line of best fit for against , and the value of . Describe the correlation.3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).