Correlation and least-squares regression: VCE General Mathematics Unit 3 Data analysis
“Scatterplots and their use in describing the association between two numerical variables in terms of direction, form and strength; the Pearson correlation coefficient r; the least squares line y = a + bx, with a and b found by technology or from b = r(s_y/s_x) and a = y-bar - b(x-bar); interpretation of the slope and intercept; prediction, being aware of the limitations of extrapolation; and the coefficient of determination r squared in terms of explained variation”
Put the explanatory variable on the axis and the response on the axis. Describe a scatterplot by direction, form and strength (and outliers). Pearson's (between and , same sign as the slope) measures the strength of a linear association only. Fit on CAS, or with and . The slope is the average change in for each one-unit increase in ; the intercept is the predicted when . is the percentage of the variation in the response explained by the variation in the explanatory variable. A prediction outside the range of the explanatory data is extrapolation.
Jump to a section
What this dot point is asking
The Study Design's "Investigating association between two variables" and "Investigating and modelling linear associations" topics list:
- "response and explanatory variables and their role in investigating associations between variables";
- "scatterplots and their use in identifying and qualitatively describing the association between two numerical variables in terms of direction (positive/negative), form (linear/non-linear) and strength (strong/moderate/weak)";
- "Pearson correlation coefficient, , and its calculation and interpretation";
- "least squares line of best fit ... the determination of the coefficients and using technology, and the formulas and ";
- "interpretation of the slope and intercepts of the least squares line in the context of the situation being modelled", "use of the rule of the fitted line to make predictions being aware of the limitations of extrapolation" and "use of the coefficient of determination, , to assess the strength of the association in terms of explained variation".
(Residual analysis, transformations and causation have their own pages.) Linear regression is the most heavily examined area of Data analysis. Recent reports show where marks are lost: only gave the correct negative in 2025 Examination 2 Question 4b, explained extrapolation correctly in 4d, and gave a least squares equation to four significant figures in Question 5a.
The answer
Explanatory and response variables
The explanatory variable () is the one used to explain or predict; the response variable () is the one being predicted. In an equation written with words, the explanatory variable is on the right-hand side: in sale price distance from city centre, distance is explanatory. Swapping them gives a different least squares line, so always check which is which before using CAS.
Describing a scatterplot
| Feature | Words to use |
|---|---|
| Direction | positive (as increases, tends to increase) or negative |
| Form | linear or non-linear |
| Strength | strong, moderate, weak (or no association) |
| Outliers | any points well away from the main pattern |
Strength is judged from how closely the points follow the pattern, and for a linear association it is measured by . A common VCE guide:
| to | to | to | below | |
|---|---|---|---|---|
| Strength | strong | moderate | weak | no linear association |
Pearson's correlation coefficient
- ; the sign gives the direction and the size gives the strength.
- has the same sign as the slope of the least squares line. If you are given , take the square root and attach the sign of the slope.
- measures linear association only. Use it only when both variables are numerical, the association looks linear, and there are no clear outliers (a single outlier can change a lot).
- does not depend on which variable is and which is , and has no units.
The least squares line
The least squares line is the line that makes the sum of the squared residuals as small as possible. It always passes through the point of means .
On CAS, enter the explanatory values in one list and the response values in another, then run linear regression () with the lists in the right places. CAS gives , , and .
From summary statistics:
Rounding. Answers are often required to a number of significant figures. Leading zeros do not count: 0.002 857 14 to four significant figures is 0.002 857, and 1 050 360.6 is 1 050 000. If the calculator shows 1.05036E6, that means .
Interpreting the slope and intercept
Use these templates, with the variable names and units from the question:
- Slope: "On average, [response] increases (or decreases) by [ units] for each one-unit increase in [explanatory]." For a change of 10 units, multiply the slope by 10 (2023 Examination 2 Question 1c.ii: cm³).
- Intercept: "When [explanatory] is 0, [response] is predicted to be [ units]." The intercept may have no practical meaning if 0 is far outside the data.
When asked for one, give only that one: in 2023 Examination 2 Question 3d, interpreting both the slope and the intercept was not accepted.
The coefficient of determination
Interpret it as a percentage: "[]% of the variation in [response] can be explained by the variation in [explanatory]." For 2025 Examination 2 Question 5, gives : of the variation in sale price can be explained by the variation in days on the market. Use , not , to describe strength: looks "moderate" but is strong.
Making predictions
Substitute the value of the explanatory variable into the equation. Then classify the prediction by the explanatory variable:
- interpolation: inside the range of the values in the data (reasonably reliable if the model fits well);
- extrapolation: outside that range (unreliable, because the pattern may not continue).
Refer to the explanatory variable in your reason: "2 km is outside the range of distances in the data", not "the price is outside the data".
Residuals
A residual is actual predicted. Points above the line have positive residuals and points below have negative residuals. The residual plot, and what it says about linearity, is covered on the residual analysis page; the figure shows the residuals for the apartment data in 2025 Examination 2 Question 5.
, . has the sign of the slope; . of the variation in the response is explained by the variation in the explanatory variable. Residual actual predicted. Interpolation or extrapolation depends on the explanatory variable's data range.
Everything from one equation (2023 Examination 2 Question 3)
Consumption temperature, with .
- Step 1:
- to three decimal places, positive because the slope is positive.
- Step 2: describe
- : strong, positive, linear.
- Step 3: intercept
- On average, when the temperature is 0 °C, ice cream consumption is predicted to be 0.1404 litres per person.
- Step 4: predict at °C
- litres per person (give 0.126, not 0.13).
- Step 5: classify
- °C is below the lowest temperature in the data (about °C): extrapolation.
- Drawing the line (part a)
- calculate two points far apart, such as and , plot them carefully and rule a line through them.
A negative slope and a weak association (2025 Examination 2 Question 4)
- Step 1: explanatory variable
- Distance from city centre (right-hand side).
- Step 2:
- ; the slope is negative, so .
- Step 3: city centre prediction
- Distance : sale price dollars, the intercept.
- Step 4: 2 km from the centre
- The distances in the data start at about 5 km, so 2 km is outside the range of the explanatory variable: extrapolation.
- Step 5: describe
- is between 0.25 and 0.5: weak and negative. Only about of the variation in sale price is explained by distance.
Fitting a line from data to four significant figures (2025 Examination 2 Question 5)
- Step 1: lists
- Days (explanatory) in list 1, sale price (response) in list 2.
- Step 2: regression
- , , .
- Step 3: round
- Four significant figures: , . Sale price days.
- Step 4: check with the means
- days and dollars. Using the unrounded values, : the line passes through the point of means.
From two points on the line (2023 Examination 1 Question 9)
- Step 1: identify the variables
- Food energy intake is explanatory (), birth rate is response ().
- Step 2: slope
- . Answer: B.
- Step 3 (extension): intercept
- , so birth rate food energy intake.
From summary statistics
A data set has , , , , .
So , and : of the variation in is explained by the variation in .
- Forgetting the sign of
- takes the sign of the slope. In 2025 Examination 2 Question 4b, most students gave .
- Judging strength with
- does not make the association moderate; is strong.
- Interpreting the wrong coefficient
- Read whether the question asks for the slope or the intercept, and interpret only that one.
- Forgetting the scale in a slope question
- "Each 10 g increase" means slope.
- Significant figures versus decimal places
- Four significant figures of 0.002 857 14 is 0.002 857, not 0.0029. Misreading E notation (1.05E6) cost many students in 2025.
- Extrapolation explained with the wrong variable
- The reason must refer to the explanatory variable's range.
- Rounding when not asked
- 0.126 and 83.85% must not be rounded unless the question says so.
- Correlation read as causation
- "Is associated with" is correct; "causes" is not, from observational data.
Write every equation with the variable names, in the order response explanatory. When a question gives , write and then choose the sign from the slope in the same line, so the step is visible. For an interpretation, copy the template sentence and fill in the variable names, the units and "on average".
How the pieces fit together
A full linear analysis runs in order: identify the variables, describe the scatterplot, check that the association looks linear with no outliers, calculate , fit the least squares line, interpret the slope, intercept and , check the residual plot, and only then predict, noting whether the prediction is an interpolation or an extrapolation. If the residual plot shows a curve, move to a transformation. Throughout, a strong association is still only an association: deciding cause and effect needs an experiment.
When two measurements go together, draw them on a scatterplot with the one you use to predict along the bottom. Say whether the dots go up or down, whether they follow a straight line, and how tightly. The number (from to ) measures how close the dots are to a straight line. Your calculator finds the best straight line, : is how much changes, on average, when goes up by one, and is the value of when is zero. tells you what percentage of the ups and downs in the line explains. Predictions are safest inside the range of the data.
Exam-style questions
Questions in the style of VCAA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
2023 VCAA Exam 2 Q3b-cPast paper2 marksThe scatterplot below plots the average monthly ice cream consumption, in litres/person, against average monthly temperature, in °C. When a least squares line is fitted to the scatterplot, the equation is found to be: consumption temperature. The coefficient of determination is 0.7212. b. Determine the value of the correlation coefficient . Round your answer to three decimal places. c. Describe the association between average monthly ice cream consumption and average monthly temperature in terms of strength, direction and form.
Show worked answer →
b. (positive because the slope is positive). correct; some students squared 0.7212 instead.
c. Strong, positive, linear. correct; "moderate" came from judging strength by instead of .
Source: VCAA 2023 General Mathematics Examination 2, Question 3, and the 2023 examination report.
2023 VCAA Exam 2 Q3d-fPast paper3 marksFor the same ice cream data, the least squares line is consumption temperature. [The lowest temperature in the data is about °C.] d. Referring to the equation of the least squares line, interpret the value of the intercept in terms of the variables consumption and temperature. e. Use the equation of the least squares line to predict the average monthly ice cream consumption, in litres per person, when the monthly average temperature is °C. f. Write down whether this prediction is an interpolation or an extrapolation.
Show worked answer →
- d
- On average, when the temperature is 0 °C, ice cream consumption is predicted to be 0.1404 litres per person. correct; many interpreted the slope, and interpreting both was not accepted.
- e
- litres per person. correct; 0.13 was not accepted because no rounding was asked for.
- f
- Extrapolation: °C is outside the range of the temperatures in the data (lowest about °C). Only correct.
Source: VCAA 2023 General Mathematics Examination 2, Question 3, and the 2023 examination report.
2025 VCAA Exam 2 Q4b,d,ePast paper4 marksThe scatterplot shows the sale price of a home, in dollars, against the distance of the home from the city centre of Melbourne, in kilometres, for three-bedroom homes sold between 2016 and 2018. [Distances in the data run from about 5 km to 15.5 km.] The equation of the least squares line is sale price distance from city centre. The coefficient of determination is 0.0806. b. Calculate the value of the correlation coefficient . Round your answer to three decimal places. d. Jocelyn wants to sell her three-bedroom home located two kilometres from the city centre of Melbourne. Would the predicted sale price be an example of interpolation or extrapolation? Briefly explain your answer. e. Describe the linear association in terms of its strength and direction.
Show worked answer →
- b
- ; the slope is negative, so . Only correct: most gave .
- d
- Extrapolation, because 2 km lies outside the range of the explanatory variable (distance) in the data, which starts at about 5 km. Only correct; saying the sale price was outside the data was not accepted.
- e
- Weak and negative ( full marks).
Source: VCAA 2025 General Mathematics Examination 2, Question 4, and the 2025 examination report.
2025 VCAA Exam 2 Q5Past paper3 marksThe table below shows sale price and the number of days on the market before sale, days, for a sample of 10 apartments sold in a particular suburb. [(Sale price in dollars, days): (950 000, 15), (925 000, 18), (900 000, 23), (900 000, 24), (905 000, 26), (750 000, 28), (680 000, 31), (800 000, 35), (590 000, 46), (600 000, 65).] a. Use the data in the table above to find the equation of the least squares line. Round both values to four significant figures. sale price days (2 marks) b. For this data, Pearson's correlation coefficient is , rounded to three decimal places. Explain the meaning of the coefficient of determination, as a whole percentage, in the context given in this question. (1 mark)
Show worked answer →
a. Days is the explanatory variable () and sale price the response (). Linear regression gives and (the calculator may show as 1.05036E6). To four significant figures:
Only scored both marks: significant figures and exponent notation caused most errors.
b. : of the variation in sale price can be explained by the variation in days on the market ( correct).
Source: VCAA 2025 General Mathematics Examination 2, Question 5, and the 2025 examination report.
2023 VCAA Exam 2 Q1cPast paper2 marksWhen a least squares line is used to model the association between oyster weight and volume, the equation is: volume weight. i. Name the response variable in this equation. ii. Complete the following sentence by filling in the box provided. This equation predicts that, on average, each 10 g increase in the weight of an oyster is associated with a cm³ increase in its volume.
Show worked answer →
i. Volume, the variable on the left-hand side ( correct).
ii. The slope is 0.953 cm³ per gram, so a 10 g increase is associated with cm³. Only were correct; 0.953 was a frequent answer.
Source: VCAA 2023 General Mathematics Examination 2, Question 1, and the 2023 examination report.
2023 VCAA Exam 2 Q1dPast paper2 marksA least squares line can also be used to model the association between an oyster's volume, in cm³, and its electronic image size, in megapixels. In this model, image size is the explanatory variable. Using data from Table 1, determine the equation of this least squares line. Round the values of the intercept and slope to four significant figures. [Table 1 (image size, volume) for the 15 oysters: (5.1, 13.0), (4.8, 11.7), (6.5, 17.4), (2.9, 7.2), (3.7, 10.1), (5.7, 15.6), (4.0, 9.9), (2.7, 7.5), (5.5, 12.7), (5.0, 12.7), (3.9, 10.5), (4.1, 10.8), (5.3, 13.1), (3.5, 8.5), (5.3, 14.2).]
Show worked answer →
Regress volume () on image size (): ,
scored both marks. Four significant figures of 0.002 857 14 is 0.002 857 (leading zeros do not count), and the variables had to be in the right places.
Source: VCAA 2023 General Mathematics Examination 2, Question 1, and the 2023 examination report.
2023 VCAA Exam 1 Q9Past paper1 markA least squares line can be used to model the birth rate (children per 1000 population) in a country from the average daily food energy intake (megajoules) in that country. When a least squares line is fitted to data from a selection of countries it is found that: for a country with an average daily food energy intake of 8.53 megajoules, the birth rate will be 32.2 children per 1000 population; for a country with an average daily food energy intake of 14.9 megajoules, the birth rate will be 9.9 children per 1000 population. The slope of this least squares line is closest to A. B. C. D. 2.7 E. 25
Show worked answer →
Both points lie on the least squares line, so the slope is rise over run, with birth rate (the response) on top:
The answer is B ( correct). Option C () is the reciprocal, from putting the explanatory variable on top.
Source: VCAA 2023 General Mathematics Examination 1, Question 9, and the 2023 examination report.
2023 VCAA Exam 1 Q10Past paper1 markA study of Year 10 students shows that there is a negative association between the scores of topic tests and the time spent on social media. The coefficient of determination is 0.72. From this information it can be concluded that A. a decreased time spent on social media is associated with an increased topic test score. B. less time spent on social media causes an increase in topic test performance. C. an increased time spent on social media is associated with an increased topic test score. D. too much time spent on social media causes a reduction in topic test performance. E. a decreased time spent on social media is associated with a decreased topic test score.
Show worked answer →
A negative association means that as one variable increases the other tends to decrease, so less time on social media goes with higher scores. Observational data show association, not causation, which rules out B and D. C and E describe a positive association.
The answer is A ( correct; chose D).
Source: VCAA 2023 General Mathematics Examination 1, Question 10, and the 2023 examination report.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksFor a group of adults, height (cm) arm span (cm). (a) Name the explanatory and response variables. (b) Predict the height of an adult with an arm span of 170 cm.
Show worked solution →
(a) Explanatory: arm span (on the right-hand side). Response: height. (1 mark)
(b) cm. (1 mark)
foundation2 marksA least squares line has a negative slope and . (a) Find . (b) Describe the strength and direction of the linear association.
Show worked solution →
(a) (negative because the slope is negative). (1 mark)
(b) Strong () and negative. (1 mark)
core3 marksFor a set of bivariate data, , , , and . (a) Find the equation of the least squares line using the formulas. (b) Predict when . (c) What percentage of the variation in is explained by the variation in ?
Show worked solution →
(a) and . So . (1 mark)
(b) . (1 mark)
(c) , so . (1 mark)
core2 marksFor a delivery van, fuel used (L) distance (km). Interpret (a) the slope and (b) the intercept in context.
Show worked solution →
(a) On average, fuel used increases by 0.072 L for each 1 km increase in distance travelled. (1 mark)
(b) When the distance is 0 km, the fuel used is predicted to be 1.8 L. (If 0 km is outside the data, this is an extrapolation and may have no practical meaning.) (1 mark)
core1 markThe least squares line is . A data point is . Find its residual.
Show worked solution →
Predicted , so residual actual predicted . (1 mark)
exam4 marksSix students recorded hours of study, hours, and test score, score: (2, 52), (4, 60), (5, 61), (7, 70), (8, 74), (10, 81). (a) Find the least squares line with hours as the explanatory variable, with coefficients to four significant figures. (b) Find to three decimal places. (c) Interpret the slope. (d) Find the residual for the student who studied 5 hours, to two decimal places.
Show worked solution →
(a) Linear regression: score hours. (1 mark)
(b) . (1 mark)
(c) On average, test score increases by 3.643 marks for each additional hour of study. (1 mark)
(d) Predicted , so the residual is . (1 mark)
Note that the prediction at the mean, 6 hours, is 66.33, the mean score: the least squares line always passes through .
exam2 marksThe data for a least squares line has values from 3 to 18. (a) Is a prediction at an interpolation or an extrapolation? Explain. (b) A scatterplot of different data shows a clear U shape and . A student concludes there is no association. Explain why this is wrong.
Show worked solution →
(a) Extrapolation: 25 is outside the range of the explanatory variable in the data (3 to 18), so the prediction may be unreliable. (1 mark)
(b) only measures linear association. A U shape is a strong non-linear association, so near zero only shows there is no linear association. (1 mark)
Practise this
Sources & how we know this
- VCE General Mathematics Examination 1 (2023) and examination report — VCAA (2023)
- VCE General Mathematics Examination 2 (2023) and examination report — VCAA (2023)
- VCE General Mathematics Examination 2 (2025) and examination report — VCAA (2025)
- VCE Mathematics Study Design: General Mathematics (from 2023) — VCAA
- VCE General Mathematics: examination specifications, past examinations and reports — VCAA