2.4 Scattergraph and Least-Squares Regression for Cost Estimation

Key Takeaways

  • A scattergraph plots every observed pair of activity and cost; the line of best fit's intercept estimates fixed cost and its gradient estimates variable cost per unit.

  • Least-squares regression calculates b = (nΣxy − ΣxΣy) ÷ (nΣx² − (Σx)²) and a = ȳ − b x̄, using all observations rather than only the highest and lowest.

  • In the cost equation y = a + bx, the intercept a is the estimated fixed cost and the slope b is the estimated variable cost per unit of activity.

  • Regression is objective and uses all data, but it still assumes a linear relationship and gives reliable predictions only within the range of activity observed.

Last updated: September 2026

Why this topic is examined

Syllabus area B1(c) asks you to calculate appropriate costs having identified cost behaviour, using "high-low, graphical and regression analysis methods to establish and predict total cost". Section 2.3 covered the high-low method. This section covers the other two. Expect number-entry questions that give you summary totals (Σx, Σy, Σxy, Σx²) and ask for the variable cost per unit, the fixed cost or a cost forecast, plus conceptual questions about which method is more reliable.

All three methods estimate the same cost equation:

y=a+bxy = a + bx

where yy is total cost, xx is the activity level, aa is the fixed cost (intercept) and bb is the variable cost per unit of activity (slope).


The scattergraph (graphical) method

How it works

  1. Plot each period's observation on a graph, with activity on the horizontal axis and total cost on the vertical axis.
  2. Look at the pattern of points. If they lie roughly along a straight line, a linear cost model is reasonable.
  3. Draw a line of best fit by eye, so that the points are spread evenly above and below it.
  4. Read off the intercept where the line meets the cost axis: this is the estimated fixed cost.
  5. Measure the gradient of the line (change in cost divided by change in activity): this is the estimated variable cost per unit.

Strengths and weaknesses

StrengthsWeaknesses
Uses every observation, not just twoThe line is drawn by judgement, so two people may draw different lines
Shows visually whether the relationship looks linearReading the intercept and slope from a graph is imprecise
Makes outliers (abnormal periods) easy to spot and excludeHard to use when points are widely scattered

Note

The scattergraph's great practical value is diagnostic: it shows whether a straight-line model is sensible at all, and whether any period (for example, a month with a strike) should be excluded before using high-low or regression.


Least-squares linear regression

Regression analysis calculates the line of best fit mathematically. The least-squares method chooses the values of aa and bb that minimise the sum of the squared vertical distances between the observed costs and the line. Because the calculation is mechanical, everyone using the same data gets the same answer.

The formulas

b=n∑xy−∑x∑yn∑x2−(∑x)2b = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - \left(\sum x\right)^2} a=yˉ−bxˉ=∑yn−b∑xna = \bar{y} - b\bar{x} = \frac{\sum y}{n} - b\frac{\sum x}{n}

where nn is the number of pairs of observations. CIMA provides relevant formulae and tables in the assessment, but you must know how to use them quickly and in the right order: calculate bb first, then use it to find aa.

Worked example

A maintenance department records five months of activity (thousands of machine hours) and cost ($000):

MonthMachine hours, 000 (xx)Cost, $000 (yy)xyxyx2x^2
11661
228164
3311339
44124816
55136525
Total155016855

Step 1: calculate the slope bb.

b=(5×168)−(15×50)(5×55)−152=840−750275−225=9050=1.8b = \frac{(5 \times 168) - (15 \times 50)}{(5 \times 55) - 15^2} = \frac{840 - 750}{275 - 225} = \frac{90}{50} = 1.8

Because yy is in $000 and xx is in thousands of hours, b=1.8b = 1.8 means $1.80 of variable cost per machine hour.

Step 2: calculate the intercept aa.

a=505−(1.8×155)=10−5.4=4.6a = \frac{50}{5} - \left(1.8 \times \frac{15}{5}\right) = 10 - 5.4 = 4.6

So the estimated fixed cost is $4,600 per month.

Step 3: write the cost equation and forecast.

Total cost ($000)=4.6+1.8x\text{Total cost (\textdollar 000)} = 4.6 + 1.8x

For a month with 3,500 machine hours (x=3.5x = 3.5):

4.6+(1.8×3.5)=4.6+6.3=10.9 ($000)4.6 + (1.8 \times 3.5) = 4.6 + 6.3 = 10.9 \text{ (\textdollar 000)}

The forecast cost is $10,900.

Comparison with high-low on the same data

The high-low method would use only months 5 and 1:

b=13−65−1=1.75a=6−(1.75×1)=4.25b = \frac{13 - 6}{5 - 1} = 1.75 \qquad a = 6 - (1.75 \times 1) = 4.25

High-low gives $1.75 per hour and $4,250 fixed, noticeably different from regression, because it ignores months 2, 3 and 4. Regression is generally the more reliable estimate when you have several observations.


How good is the fit?

The correlation coefficient rr (covered in more depth in BA1) measures how closely the points follow a straight line, from −1-1 to +1+1. Its square, the coefficient of determination r2r^2, gives the proportion of the variation in cost explained by the variation in activity. For the example above:

r=n∑xy−∑x∑y(n∑x2−(∑x)2)(n∑y2−(∑y)2)=9050×170≈0.976r = \frac{n\sum xy - \sum x\sum y}{\sqrt{\left(n\sum x^2 - (\sum x)^2\right)\left(n\sum y^2 - (\sum y)^2\right)}} = \frac{90}{\sqrt{50 \times 170}} \approx 0.976

(using ∑y2=534\sum y^2 = 534). So r2≈0.953r^2 \approx 0.953: about 95% of the month-to-month variation in maintenance cost is explained by machine hours. A high r2r^2 supports using the equation for budgeting; a low one suggests other cost drivers matter.


Choosing between the three methods

FeatureHigh-lowScattergraphRegression
Observations usedTwoAllAll
ObjectivityObjectiveSubjective (drawn by eye)Objective
EffortVery quickQuickMore calculation
Sensitivity to one abnormal periodHigh, if it is the high or low pointLow, if the outlier is spottedModerate
Shows whether linear model is suitableNoYesPartly, via rr and r2r^2

Limitations common to all three

  • They assume cost behaviour is linear within the range observed.
  • Forecasts are reliable only within the relevant range. Using the equation for 20,000 hours when the data covered 1,000 to 5,000 hours is extrapolation, and the relationship may not hold.
  • They rely on past data, which may not reflect future prices, technology or efficiency. Adjust for inflation (as shown in Section 2.3) before analysing costs from different years.
  • Correlation does not prove causation. A strong rr shows association; the management accountant should confirm that the activity measure genuinely drives the cost.
Loading diagram...
Choosing a Cost Estimation Method
Test Your Knowledge

A company has four observations of activity (x) and total cost (y, in $000) with these totals: n = 4, Σx = 20, Σy = 100, Σxy = 540 and Σx² = 110. Using least-squares regression, what are the variable cost per unit of activity (b) and the fixed cost (a)?

A

b = 4.0 and a = 5.0

B

b = 5.0 and a = 0.0

C

b = 4.0 and a = 25.0

D

b = 2.5 and a = 12.5

Test Your Knowledge

In a cost equation y = a + bx estimated by regression, where y is total overhead cost and x is machine hours, what does the value of a represent?

A

The variable cost per machine hour

B

The estimated fixed cost incurred at zero activity within the model

C

The correlation between machine hours and cost

D

The total cost at the average level of activity

Test Your Knowledge

What is the main weakness of the scattergraph method compared with least-squares regression?

A

It uses only the highest and lowest observations

B

It cannot show whether any observations are abnormal

C

The line of best fit is drawn by judgement, so different people may estimate different costs

D

It can only be used when costs are purely variable

Sections you finish are checked off in the contents.