Skip to main content

Correlation and least-squares regression: VCE General Mathematics Unit 3 Data analysis

Syllabus dot point

“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”

14 min read

Quick answer

Put the explanatory variable on the xx axis and the response on the yy axis. Describe a scatterplot by direction, form and strength (and outliers). Pearson's rr (between −1-1 and 11, same sign as the slope) measures the strength of a linear association only. Fit y=a+bxy = a + bx on CAS, or with b=rsysxb = r\frac{s_y}{s_x} and a=yˉ−bxˉa = \bar{y} - b\bar{x}. The slope is the average change in yy for each one-unit increase in xx; the intercept is the predicted yy when x=0x = 0. r2r^2 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
  1. What this dot point is asking
  2. The answer
  3. How the pieces fit together
  4. Exam-style questions
  5. Practice questions

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, rr, and its calculation and interpretation";
  • "least squares line of best fit y=a+bxy = a + bx ... the determination of the coefficients aa and bb using technology, and the formulas b=rsysxb = r\frac{s_y}{s_x} and a=yˉ−bxˉa = \bar{y} - b\bar{x}";
  • "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, r2r^2, 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 21%21\% gave the correct negative rr in 2025 Examination 2 Question 4b, 27%27\% explained extrapolation correctly in 4d, and 28%28\% gave a least squares equation to four significant figures in Question 5a.

The answer

Explanatory and response variables

The explanatory variable (xx) is the one used to explain or predict; the response variable (yy) is the one being predicted. In an equation written with words, the explanatory variable is on the right-hand side: in sale price =1 765 353−35 054×= 1\,765\,353 - 35\,054 \times 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 xx increases, yy 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 rr. A common VCE guide:

∣r∣\lvert r \rvert 0.750.75 to 11 0.50.5 to 0.750.75 0.250.25 to 0.50.5 below 0.250.25
Strength strong moderate weak no linear association

Pearson's correlation coefficient rr

  • −1≤r≤1-1 \le r \le 1; the sign gives the direction and the size gives the strength.
  • rr has the same sign as the slope of the least squares line. If you are given r2r^2, take the square root and attach the sign of the slope.
  • rr 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 rr a lot).
  • rr does not depend on which variable is xx and which is yy, and has no units.

The least squares line

The least squares line y=a+bxy = a + bx is the line that makes the sum of the squared residuals as small as possible. It always passes through the point of means (xˉ,yˉ)(\bar{x}, \bar{y}).

On CAS, enter the explanatory values in one list and the response values in another, then run linear regression (a+bxa + bx) with the lists in the right places. CAS gives aa, bb, rr and r2r^2.

From summary statistics:

b=rsysx,a=yˉ−bxˉ.b = r\frac{s_y}{s_x}, \qquad a = \bar{y} - b\bar{x}.

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 1.05036×106=1 050 3601.05036 \times 10^6 = 1\,050\,360.

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 [∣b∣|b| 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: 10×0.953=9.5310 \times 0.953 = 9.53 cm³).
  • Intercept: "When [explanatory] is 0, [response] is predicted to be [aa 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 r2r^2

r2=(correlation coefficient)2,0≤r2≤1.r^2 = (\text{correlation coefficient})^2, \qquad 0 \le r^2 \le 1.

Interpret it as a percentage: "[r2×100r^2 \times 100]% of the variation in [response] can be explained by the variation in [explanatory]." For 2025 Examination 2 Question 5, r=−0.866r = -0.866 gives r2≈0.75r^2 \approx 0.75: 75%75\% of the variation in sale price can be explained by the variation in days on the market. Use rr, not r2r^2, to describe strength: r2=0.7212r^2 = 0.7212 looks "moderate" but r=0.849r = 0.849 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 xx 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.

Least squares line and residuals for the apartment dataA scatterplot of sale price in dollars against days on the market for 10 apartments, from 15 to 65 days and 590 000 to 950 000 dollars. The least squares line, sale price equals 1 050 000 minus 8050 times days, falls from left to right and passes through the point of means, 31.1 days and 800 000 dollars. Dashed vertical segments join each point to the line; these are the residuals. The largest is for the apartment at 31 days that sold for 680 000 dollars, 120 805 dollars below the predicted 800 805 dollars. The correlation coefficient is minus 0.866.residual -120 805sale price = 1 050 000 - 8050 x daysr = -0.866, r² = 0.750500 000600 000700 000800 000900 0001 000 00010203040506070days on the marketsale price (dollars)

Formula

b=rsysxb = r\dfrac{s_y}{s_x}, a=yˉ−bxˉa = \bar{y} - b\bar{x}. rr has the sign of the slope; r=±r2r = \pm\sqrt{r^2}. r2×100%r^2 \times 100\% 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.

Worked examples: from equation to interpretation

Everything from one equation (2023 Examination 2 Question 3)

Consumption =0.1404+0.0024×= 0.1404 + 0.0024 \times temperature, with r2=0.7212r^2 = 0.7212.

Step 1: rr
0.7212=0.849\sqrt{0.7212} = 0.849 to three decimal places, positive because the slope 0.00240.0024 is positive.
Step 2: describe
∣r∣=0.849≥0.75|r| = 0.849 \ge 0.75: 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 −6-6 °C
0.1404+0.0024×(−6)=0.1404−0.0144=0.1260.1404 + 0.0024 \times (-6) = 0.1404 - 0.0144 = 0.126 litres per person (give 0.126, not 0.13).
Step 5: classify
−6-6 °C is below the lowest temperature in the data (about −4.5-4.5 °C): extrapolation.
Drawing the line (part a)
calculate two points far apart, such as (−10,0.1164)(-10, 0.1164) and (25,0.2004)(25, 0.2004), 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: rr
0.0806=0.2839\sqrt{0.0806} = 0.2839; the slope −35 054-35\,054 is negative, so r=−0.284r = -0.284.
Step 3: city centre prediction
Distance 00: sale price =1 765 353= 1\,765\,353 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
∣r∣=0.284|r| = 0.284 is between 0.25 and 0.5: weak and negative. Only about 8%8\% 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
a=1 050 360.6a = 1\,050\,360.6, b=−8050.18b = -8050.18, r=−0.866r = -0.866.
Step 3: round
Four significant figures: a=1 050 000a = 1\,050\,000, b=−8050b = -8050. Sale price =1 050 000−8050×= 1\,050\,000 - 8050 \times days.
Step 4: check with the means
xˉ=31.1\bar{x} = 31.1 days and yˉ=800 000\bar{y} = 800\,000 dollars. Using the unrounded values, 1 050 360.6−8050.18×31.1=800 0001\,050\,360.6 - 8050.18 \times 31.1 = 800\,000: 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 (xx), birth rate is response (yy).
Step 2: slope
9.9−32.214.9−8.53=−3.50\frac{9.9 - 32.2}{14.9 - 8.53} = -3.50. Answer: B.
Step 3 (extension): intercept
a=32.2−(−3.5008)×8.53=62.06a = 32.2 - (-3.5008) \times 8.53 = 62.06, so birth rate =62.06−3.50×= 62.06 - 3.50 \times food energy intake.

From summary statistics

A data set has xˉ=25\bar{x} = 25, sx=4s_x = 4, yˉ=60\bar{y} = 60, sy=12s_y = 12, r=0.82r = 0.82.

b=0.82×124=2.46,a=60−2.46×25=−1.5.b = 0.82 \times \frac{12}{4} = 2.46, \qquad a = 60 - 2.46 \times 25 = -1.5.

So y=−1.5+2.46xy = -1.5 + 2.46x, and r2=0.6724r^2 = 0.6724: 67.24%67.24\% of the variation in yy is explained by the variation in xx.

Common traps
Forgetting the sign of rr
r=±r2r = \pm\sqrt{r^2} takes the sign of the slope. In 2025 Examination 2 Question 4b, most students gave +0.284+0.284.
Judging strength with r2r^2
r2=0.72r^2 = 0.72 does not make the association moderate; r=0.85r = 0.85 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 10×10 \times 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.
Exam technique

Write every equation with the variable names, in the order response =a+b×= a + b \times explanatory. When a question gives r2r^2, write r=±r2r = \pm\sqrt{r^2} 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 rr, fit the least squares line, interpret the slope, intercept and r2r^2, 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.

Note

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 rr (from −1-1 to 11) measures how close the dots are to a straight line. Your calculator finds the best straight line, y=a+bxy = a + bx: bb is how much yy changes, on average, when xx goes up by one, and aa is the value of yy when xx is zero. r2r^2 tells you what percentage of the ups and downs in yy 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 marks
The 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 =0.1404+0.0024×= 0.1404 + 0.0024 \times temperature. The coefficient of determination is 0.7212. b. Determine the value of the correlation coefficient rr. 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. r=+0.7212=0.849r = +\sqrt{0.7212} = 0.849 (positive because the slope is positive). 69%69\% correct; some students squared 0.7212 instead.

c. Strong, positive, linear. 58%58\% correct; "moderate" came from judging strength by r2r^2 instead of rr.

Source: VCAA 2023 General Mathematics Examination 2, Question 3, and the 2023 examination report.

2023 VCAA Exam 2 Q3d-fPast paper3 marks
For the same ice cream data, the least squares line is consumption =0.1404+0.0024×= 0.1404 + 0.0024 \times temperature. [The lowest temperature in the data is about −4.5-4.5 °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 −6-6 °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. 43%43\% correct; many interpreted the slope, and interpreting both was not accepted.
e
0.1404+0.0024×(−6)=0.1260.1404 + 0.0024 \times (-6) = 0.126 litres per person. 75%75\% correct; 0.13 was not accepted because no rounding was asked for.
f
Extrapolation: −6-6 °C is outside the range of the temperatures in the data (lowest about −4.5-4.5 °C). Only 41%41\% correct.

Source: VCAA 2023 General Mathematics Examination 2, Question 3, and the 2023 examination report.

2025 VCAA Exam 2 Q4b,d,ePast paper4 marks
The 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 =1 765 353−35 054×= 1\,765\,353 - 35\,054 \times distance from city centre. The coefficient of determination is 0.0806. b. Calculate the value of the correlation coefficient rr. 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
r=±0.0806=±0.2839…r = \pm\sqrt{0.0806} = \pm 0.2839\ldots; the slope is negative, so r=−0.284r = -0.284. Only 21%21\% correct: most gave +0.284+0.284.
d
Extrapolation, because 2 km lies outside the range of the explanatory variable (distance) in the data, which starts at about 5 km. Only 27%27\% correct; saying the sale price was outside the data was not accepted.
e
Weak and negative (65%65\% full marks).

Source: VCAA 2025 General Mathematics Examination 2, Question 4, and the 2025 examination report.

2025 VCAA Exam 2 Q5Past paper3 marks
The 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 =□+□×= \square + \square \times days (2 marks) b. For this data, Pearson's correlation coefficient is r=−0.866r = -0.866, 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 (xx) and sale price the response (yy). Linear regression gives a=1 050 360.6…a = 1\,050\,360.6\ldots and b=−8050.18…b = -8050.18\ldots (the calculator may show aa as 1.05036E6). To four significant figures:

sale price=1 050 000−8050×days\text{sale price} = 1\,050\,000 - 8050 \times \text{days}

Only 28%28\% scored both marks: significant figures and exponent notation caused most errors.

b. r2=(−0.866)2=0.7499…≈75%r^2 = (-0.866)^2 = 0.7499\ldots \approx 75\%: 75%75\% of the variation in sale price can be explained by the variation in days on the market (44%44\% correct).

Source: VCAA 2025 General Mathematics Examination 2, Question 5, and the 2025 examination report.

2023 VCAA Exam 2 Q1cPast paper2 marks
When a least squares line is used to model the association between oyster weight and volume, the equation is: volume =0.780+0.953×= 0.780 + 0.953 \times 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 □\square cm³ increase in its volume.
Show worked answer →

i. Volume, the variable on the left-hand side (88%88\% correct).

ii. The slope is 0.953 cm³ per gram, so a 10 g increase is associated with 10×0.953=9.5310 \times 0.953 = 9.53 cm³. Only 27%27\% 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 marks
A 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 (yy) on image size (xx): a=0.002 857…a = 0.002\,857\ldots, b=2.571 43…b = 2.571\,43\ldots

volume=0.002 857+2.571×image size\text{volume} = 0.002\,857 + 2.571 \times \text{image size}

37%37\% 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 mark
A 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. −4.7-4.7 B. −3.5-3.5 C. −0.29-0.29 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:

b=9.9−32.214.9−8.53=−22.36.37=−3.50…b = \frac{9.9 - 32.2}{14.9 - 8.53} = \frac{-22.3}{6.37} = -3.50\ldots

The answer is B (59%59\% correct). Option C (−0.29-0.29) 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 mark
A 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 (59%59\% correct; 22%22\% 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 marks
For a group of adults, height (cm) =42.5+0.61×= 42.5 + 0.61 \times 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) 42.5+0.61×170=146.242.5 + 0.61 \times 170 = 146.2 cm. (1 mark)

foundation2 marks
A least squares line has a negative slope and r2=0.64r^2 = 0.64. (a) Find rr. (b) Describe the strength and direction of the linear association.
Show worked solution →

(a) r=−0.64=−0.8r = -\sqrt{0.64} = -0.8 (negative because the slope is negative). (1 mark)

(b) Strong (∣r∣≥0.75|r| \ge 0.75) and negative. (1 mark)

core3 marks
For a set of bivariate data, xˉ=25\bar{x} = 25, sx=4s_x = 4, yˉ=60\bar{y} = 60, sy=12s_y = 12 and r=0.82r = 0.82. (a) Find the equation of the least squares line using the formulas. (b) Predict yy when x=30x = 30. (c) What percentage of the variation in yy is explained by the variation in xx?
Show worked solution →

(a) b=rsysx=0.82×124=2.46b = r\frac{s_y}{s_x} = 0.82 \times \frac{12}{4} = 2.46 and a=yˉ−bxˉ=60−2.46×25=−1.5a = \bar{y} - b\bar{x} = 60 - 2.46 \times 25 = -1.5. So y=−1.5+2.46xy = -1.5 + 2.46x. (1 mark)

(b) y=−1.5+2.46×30=72.3y = -1.5 + 2.46 \times 30 = 72.3. (1 mark)

(c) r2=0.822=0.6724r^2 = 0.82^2 = 0.6724, so 67.24%67.24\%. (1 mark)

core2 marks
For a delivery van, fuel used (L) =1.8+0.072×= 1.8 + 0.072 \times 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 mark
The least squares line is y=12+3.2xy = 12 + 3.2x. A data point is (14,58)(14, 58). Find its residual.
Show worked solution →

Predicted y=12+3.2×14=56.8y = 12 + 3.2 \times 14 = 56.8, so residual == actual −- predicted =58−56.8=1.2= 58 - 56.8 = 1.2. (1 mark)

exam4 marks
Six 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 rr 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 =44.48+3.643×= 44.48 + 3.643 \times hours. (1 mark)

(b) r=0.996r = 0.996. (1 mark)

(c) On average, test score increases by 3.643 marks for each additional hour of study. (1 mark)

(d) Predicted =44.476…+3.6428…×5=62.69= 44.476\ldots + 3.6428\ldots \times 5 = 62.69, so the residual is 61−62.69=−1.6961 - 62.69 = -1.69. (1 mark)

Note that the prediction at the mean, 6 hours, is 66.33, the mean score: the least squares line always passes through (xˉ,yˉ)(\bar{x}, \bar{y}).

exam2 marks
The data for a least squares line has xx values from 3 to 18. (a) Is a prediction at x=25x = 25 an interpolation or an extrapolation? Explain. (b) A scatterplot of different data shows a clear U shape and r=0.05r = 0.05. 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) rr only measures linear association. A U shape is a strong non-linear association, so rr near zero only shows there is no linear association. (1 mark)

Practise this

Sources & how we know this

ExamExplained