University of Technology Sydney · FACULTY OF STATISTICS

26134 · Responsible Evidence-based Decisions

- one subject, every graph, every model, every mark
Statistics14 Chapters11-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 10 of 12 · 26134

Modelling Relationships: Regression Analysis

Week 10 is Module 4: simple linear regression. You read a scatterplot, fit the least-squares line, interpret the slope and intercept, assess goodness of fit with R², and reason about confounding and the difference between correlation and a causal effect. Fitting or interpreting a regression line, and reading R², is a standard exam item.

In this chapter

What this chapter covers

  • 01The model yᵢ = β₀ + β₁xᵢ + εᵢ and the fitted line ŷ = b₀ + b₁x
  • 02Least-squares estimation: minimise Σ(yᵢ − ŷᵢ)²
  • 03Slope b₁ = r·(s_y/sₓ) = Σ(xᵢ − x̄)(yᵢ − ȳ)/Σ(xᵢ − x̄)²
  • 04Intercept b₀ = ȳ − b₁x̄; the line passes through (x̄, ȳ)
  • 05Interpreting the slope (change in y per unit x) and intercept (y at x = 0)
  • 06Goodness of fit: R² = SSR/SST = 1 − SSE/SST; in simple regression R² = r²
  • 07Residuals eᵢ = yᵢ − ŷᵢ and why data scatter around the line
  • 08Confounding / omitted variables; correlation is not causation; multiple regression holds other factors constant
Worked example · free

Fitting and reading a least-squares line from summary statistics

Q [4 marks]. For an advertising-spend (x, $000s) versus sales (y, units) sample: x̄ = 10, ȳ = 50, sₓ = 4, s_y = 15, and correlation r = 0.8. Find the least-squares slope and intercept, predict sales when x = 12, and state R². (4 marks)
  • +1Slope. b₁ = r·(s_y/sₓ) = 0.8 × (15/4) = 0.8 × 3.75 = 3.0. Each extra $1,000 of advertising is associated with about 3 more units of sales.
  • +1Intercept. b₀ = ȳ − b₁x̄ = 50 − 3.0 × 10 = 50 − 30 = 20. The fitted line is ŷ = 20 + 3x.
  • +1Prediction at x = 12. ŷ = 20 + 3 × 12 = 20 + 36 = 56 units.
  • +1Goodness of fit. In simple regression R² = r² = 0.8² = 0.64, so about 64% of the variation in sales is explained by advertising spend; the remaining 36% is residual variation.
ŷ = 20 + 3x; predicted sales at x = 12 is 56 units; R² = r² = 0.64 (64% of sales variation explained). The positive slope means sales rise about 3 units per extra $1,000 of advertising — an association, not proof of causation.
Sia tip — Get the slope formula the right way round: b₁ = r·(s_y/sₓ), NOT s_x/s_y. The fitted line always passes through (x̄, ȳ), so b₀ = ȳ − b₁x̄ is a reliable check. Interpret the slope in the variables' units, and remember R² = r² only in SIMPLE (one-predictor) regression.
Glossary

Key terms

Simple linear regression model
yᵢ = β₀ + β₁xᵢ + εᵢ, where y is the response, x the predictor, β₀ the intercept, β₁ the slope, and ε a random error absorbing everything x does not explain. The fitted version is ŷ = b₀ + b₁x.
Least-squares estimation (OLS)
Chooses b₀ and b₁ to minimise the sum of squared residuals Σ(yᵢ − ŷᵢ)². This yields b₁ = Σ(xᵢ − x̄)(yᵢ − ȳ)/Σ(xᵢ − x̄)² and b₀ = ȳ − b₁x̄, the line through (x̄, ȳ).
Slope and intercept
The slope b₁ is the estimated change in y per one-unit increase in x; the intercept b₀ is the predicted y when x = 0. Interpret the slope in the data's units, and treat the intercept cautiously if x = 0 is outside the data range.
Residual
eᵢ = yᵢ − ŷᵢ, the vertical gap between an observed value and the fitted line. Residuals exist because real data scatter around the line; least squares makes their squared sum as small as possible.
Coefficient of determination (R²)
R² = SSR/SST = 1 − SSE/SST, the proportion of variation in y explained by the model, between 0 and 1. In simple regression R² equals the square of the correlation, r².
Confounding / omitted variable
A third factor that influences y and is related to x; ignoring it biases the estimated slope. Multiple regression adds such variables to isolate the effect of one predictor holding the others constant — the 'everything-else-equal' interpretation.
FAQ

Modelling Relationships: Regression Analysis FAQ

How do I interpret the slope and intercept?

The slope b₁ is the estimated change in y for each one-unit increase in x, stated in the variables' units (e.g. '3 more units of sales per extra $1,000 spent'). The intercept b₀ is the predicted y when x = 0; treat it literally only if x = 0 is within or near the observed data, otherwise it is just where the line meets the axis.

What does R² tell me, and what is a 'good' value?

R² is the share of variation in y explained by the model, from 0 to 1; R² = 0.64 means 64% is explained and 36% is residual. There is no universal 'good' threshold — it depends on the field. In simple regression R² = r², so a strong correlation implies a high R².

Does a regression slope prove that x causes y?

No. A fitted slope quantifies an association, but confounding variables or reverse causation can produce it without x causing y. Establishing causation needs controlled design or careful methods; multiple regression can help by holding other measured factors constant, but it does not by itself prove cause and effect.

Can AI help me with regression in 26134?

Yes, as a study aid. Sia can walk you through computing the slope and intercept from summary statistics, making a prediction, interpreting R², and explaining confounding, step by step, while checking your working. Use it to rehearse the method; it does not do your graded assessment, and the UTS academic-integrity policy applies.

Study strategy

Exam move

Regression questions are formulaic, so drill the sequence: slope b₁ = r·(s_y/sₓ), intercept b₀ = ȳ − b₁x̄, write ŷ = b₀ + b₁x, predict at a given x, then state R² = r² with a one-line interpretation. Practise interpreting the slope in the variables' own units and flagging that association is not causation — that responsible-interpretation point is examinable. Use the fact that the line passes through (x̄, ȳ) as a self-check. Keep the slope, intercept and R² formulas on your printed exam notes, along with the Excel regression output layout. When the slope formula or the R²-versus-r distinction trips you, ask Sia to re-derive it on a fresh dataset; confirm assessment details on Canvas.

Working through Modelling Relationships: Regression Analysis in 26134? Sia is AskSia’s AI Statistics tutor — ask any 26134 Modelling Relationships: Regression Analysis question and get a clear, step-by-step explanation grounded in how 26134 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 13 of your University of Technology Sydney subjects - and 1,000+ Bibles across every Australian university.
Sia - your 26134 tutor, unlimited, worked the way the exam marks it
The full 11-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$25/ month
30-day money-back · cancel in one tap · how it works
Unlock the full 26134 Bible + 13 University of Technology Sydney subjects解锁完整 26134 Bible + University of Technology Sydney 13 门科目
$25/mo