University of Glasgow · FACULTY OF STATISTICS

ACCFIN2018 Chap.8 Simple Regression and Correlation

- one subject, every graph, every model, every mark
7 Chapters5-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 8 of 9 · ACCFIN2018

Simple Regression and Correlation

Simple Regression and Correlation measures how a dependent variable moves with one independent variable. It starts with the scatter plot and the least squares line, whose slope and intercept come from sums of squares on the course formula sheet.

Residuals, the gaps between observed and fitted values, always sum to zero, and their squares give the sum of squared errors, the standard error of the estimate and the coefficient of determination. Pearson's correlation coefficient measures linear strength and direction.

The t test of the slope asks whether the relationship could be zero, with n minus 2 degrees of freedom, and confidence and prediction intervals estimate the mean response and a single new value. Diagnostic plots, actual against fitted, residual and normal probability, check the assumptions behind the inference, as the group report requires.

In this chapter

What this chapter covers

  • 01

    Scatter plots and the least squares line

  • 02

    Slope and intercept from SSxx and SSxy

  • 03

    Residuals, SSE and the standard error of the estimate

  • 04

    Pearson's r and the coefficient of determination

  • 05

    Testing the slope with t and n - 2 degrees of freedom

  • 06

    Confidence and prediction intervals for a given x

  • 07

    Actual versus fitted, residual and normal probability plots

Worked example · free

Check the residuals of a least squares line fitted to marketing spend

Q [5 marks]. Six months of marketing spend in thousands of pounds (2, 4, 5, 7, 8, 10) and new accounts in hundreds (3.0, 4.1, 5.2, 5.9, 7.4, 8.0) give the least squares line y-hat = 1.70 + 0.65x. Find each fitted value and residual, confirm the residuals sum to zero, and compute SSE and r squared given SSyy = 18.26. Nothing in the mark allocation is official; it is not taken from a University marking guide.
Blue points pair each month's marketing spend with the new accounts that followed, the orange line is the least squares fit 1.70 + 0.65x, and each dashed red seBlue points pair each month's marketing spend with the new accounts that followed, the orange line is the least squares fit 1.70 + 0.65x, and each dashed red segment is a residual; positive and negative residuals cancel to a total of zero.24681048marketing spend (£000)new accounts (hundreds)fitted lineresidual
Blue points pair each month's marketing spend with the new accounts that followed, the orange line is the least squares fit 1.70 + 0.65x, and each dashed red segment is a residual; positive and negative residuals cancel to a total of zero.
  • 1Fitted values from 1.70 + 0.65x: 3.00, 4.30, 4.95, 6.25, 6.90 and 8.20.
  • 2Residuals y minus y-hat: 0.00, -0.20, 0.25, -0.35, 0.50 and -0.20, which sum to exactly zero.
  • 1SSE = 0 + 0.04 + 0.0625 + 0.1225 + 0.25 + 0.04 = 0.515.
  • 1r squared = 1 - 0.515 / 18.26 = 0.972, so spend explains about 97% of the variation in new accounts in this sample.
The residuals 0.00, -0.20, 0.25, -0.35, 0.50 and -0.20 sum to zero, as least squares requires, and give SSE = 0.515 and r squared = 0.972. The largest residual, 0.50 in the 8-thousand-pound month, is the observation the line under-predicts most.
Sia tip — Confirm that the residuals add to zero before interpreting the slope; a nonzero total means one of the fitted values was copied wrongly.
Glossary

Key terms

Least squares line
The straight line whose intercept and slope minimise the sum of squared residuals.
Coefficient of determination
The proportion of variation in y explained by the regression, written r squared.
Prediction interval
A range for a single new value of y at a given x, wider than the interval for the mean response.
Normal probability plot
A diagnostic chart in which residuals near a straight line suggest approximate normality.
FAQ

Simple Regression and Correlation FAQ

What does the slope actually tell a manager?

It gives the average change in y for a one-unit increase in x, in the units of both variables. A slope of 0.65 accounts per thousand pounds means each extra thousand pounds of spend goes with about 65 more accounts, as an association rather than proof of cause.

Is a high r squared enough to trust a regression?

No. A high r squared shows strong association in the sample but says nothing about causation, omitted variables or violated assumptions. Residual plots, the slope's t test and common sense about what drives both variables are needed before relying on the model.

Why test the slope at both 5% and 10%?

A result can be significant at one level and not the other when the t statistic falls between the two critical values. Reporting both shows how strong the evidence is, and the group report explicitly asks whether the conclusion changes when the significance level moves from 5% to 10%.

What do the diagnostic plots in the group report check?

Actual against fitted values show whether the model tracks the data, the residual plot reveals patterns such as curves, funnels or trends that a straight line misses, and the normal probability plot checks whether residuals are roughly normal, which the t test of the slope assumes. Together they justify the model choice.

Study strategy

Exam move

Estimate one regression completely by hand from raw data, building the sums, SSxx, SSxy, the slope and intercept, the residuals and SSE, and check that the residuals sum to zero. Then move to reading output: for several printed regressions, write a sentence each for the slope, the intercept, r squared and the slope's t test, always with units.

Practise the t test of the slope at 5% and at 10% using the degrees-of-freedom rows in the t table. Sketch the three diagnostic plots for a good model and for a faulty one, and describe what each pattern implies.

Because the group report asks the team to choose between models and defend the choice with these plots, rehearse writing a short comparison of two fitted models using r squared, the slope test and the residual evidence.

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

A+Everything unlocked
Unlocks this Bible + all 26 of your subjects at University of Glasgow, plus 1,000+ more Bibles across the AskSia library.
Sia - your ACCFIN2018 tutor, unlimited, worked the way the exam marks it
The full 5-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
$0.99 Trial
30-day money-back · cancel in one tap · how it works