Swapping the variables
The explanatory variable is and the response is . Enter them into your calculator that way round — swapping them gives a different line, not just a rearranged one.
General Mathematics · Unit 3 · Topic 2
Fit a least-squares line with technology or from summary statistics, interpret its slope and intercept, make predictions, judge them with residual plots and the dangers of extrapolation, and tell association from causation.
Understand what makes the least-squares line the line of best fit, and use technology to fit it to raw data and write it as with the variable names.
Find the least-squares line from r, the two standard deviations and the two means using the formula-book rules, and work backwards from the slope to r.
Say what the slope and y-intercept of a least-squares line mean in context, with units, and decide when the intercept has no practical meaning.
Use the least-squares line to make predictions, tell interpolation from extrapolation, and explain why predictions outside the data can be unreliable.
Calculate residuals, construct a residual plot, and use its pattern to decide whether a linear model is appropriate — even when r is close to 1.
Explain why an association between two variables, categorical or numerical, does not by itself show cause, and identify coincidence or another variable as possible explanations.
Put the whole topic together to solve a practical problem — display and describe an association, fit and check a linear model, predict, and draw a conclusion that respects association versus causation.
Ten questions across the topic, from foundation to complex unfamiliar. Your results feed your mastery.
In Bivariate data analysis 1 you described an association between two numerical variables and measured its strength with and . Now you put a line through it. The least-squares line turns a scatterplot into a model you can use: how many iced coffees a café should expect to sell on a 31 °C day, what a seven-year-old Corolla is likely to be worth, how much power a rooftop solar system makes in nine hours of sunshine.
You'll fit the line with technology (your scientific calculator's statistics mode or a spreadsheet) and from summary statistics with and , interpret its slope and intercept in context, and use it to predict. Then you'll check whether the line deserves to be trusted: a residual plot shows whether a linear model suits the data, and the difference between interpolation and extrapolation shows when a prediction is reliable.
The topic ends with the most important idea in statistics: an association between two variables does not mean one causes the other. You'll learn to spot coincidence and the influence of another variable, and to solve practical problems by analysing an association from start to finish.
Builds on Bivariate data analysis 1 and Univariate data analysis 1.
Subject matter from the General Mathematics General senior syllabus 2025 v1.3 (opens in a new tab), CC BY 4.0 © State of Queensland (QCAA).
The focus areas you can practise on their own. Each one maps to dot points above.
Fitting a least-squares line
Use your calculator's statistics mode or a spreadsheet to fit y = mx + c to raw data, and write the equation in terms of the variables.
The line from summary statistics
Find the slope and intercept from r, the standard deviations and the means, and work backwards from the slope to r.
Interpreting slope and intercept
Say what the slope and y-intercept mean in context, with units, and decide whether the intercept is meaningful.
Making predictions
Substitute into the least-squares line to predict the response, or solve it to find the explanatory value that gives a target.
Interpolation and extrapolation
Decide whether a prediction is interpolation or extrapolation, and explain why extrapolation can be unreliable.
Calculating residuals
Find a residual as the actual value minus the predicted value, and construct a residual plot.
Reading residual plots
Use the pattern in a residual plot to decide whether a linear model is appropriate for the data.
Association and causation
Explain why an association, however strong, does not on its own show that one variable causes the other.
Non-causal explanations
Identify coincidence or the influence of another variable as possible explanations for an association, and communicate them in context.
Solving bivariate problems
Analyse an association from start to finish — display, describe, model, check, predict and conclude — and evaluate claims.
The explanatory variable is and the response is . Enter them into your calculator that way round — swapping them gives a different line, not just a rearranged one.
An equation such as earns full marks only when you say what and are. Write it with the variable names: .
"The slope is 3.23" is not an interpretation. Say "for each 1 °C increase in temperature, the number of iced coffees sold is predicted to increase by about 3.23".
The intercept is a prediction at . When 0 is far outside the data, or makes no sense (a car with no age, a wheat crop with no rain), say the intercept has no practical meaning rather than inventing one.
Residual actual predicted. A point above the line has a positive residual. Predicted minus actual gives every sign backwards.
close to 1 does not show the association is linear. A curved pattern can have . Only the residual plot (or the scatterplot) tells you about form.
A prediction is reliable when the association is strong and linear, the residual plot shows no pattern and the prediction is an interpolation. Extrapolation assumes the trend continues, which it may not.
A strong association, even with , never proves cause on its own. Always consider coincidence and a confounding variable before you mention cause.
Write the least-squares line with the variable names and the coefficients rounded as the question asks (two decimal places is common when it doesn't say). Keep unrounded values in the calculator for predictions.
Interpret the slope with the template: "For each one-unit increase in [explanatory], [response] is predicted to increase (or decrease) by [|m|] [units]."
Interpret the intercept with the template: "When [explanatory] is 0, [response] is predicted to be [c] [units]" — then say whether that makes sense in context.
When asked about the reliability of a prediction, address three things: the strength of the association ( or ), the residual plot (random scatter or a pattern), and interpolation or extrapolation.
For a residual plot, say what you see ("the residuals show a clear curved pattern") and what it means ("so a linear model is not appropriate"). One without the other loses a mark.
When a question asks whether one variable causes another, the safe answer is that association does not imply causation — then name a specific confounding variable or coincidence in context and explain how it could produce the association.
Show the substitution when you make a prediction, e.g. , then round to a sensible answer in context (a whole number of coffees).
Businesses forecast sales from weather, prices or advertising spending with least-squares lines.
Car dealers and insurers estimate a used car's value from its age and kilometres.
Agronomists relate rainfall and fertiliser to crop yields on the Darling Downs and in the Wimmera.
Energy retailers estimate rooftop solar output from hours of sunshine.
Health researchers separate genuine causes from confounding variables before recommending treatments, which is why medical trials are randomised.
Sports scientists model performance against training load, and warn against extrapolating world-record trends.