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.
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:
where is total cost, is the activity level, is the fixed cost (intercept) and is the variable cost per unit of activity (slope).
The scattergraph (graphical) method
How it works
- Plot each period's observation on a graph, with activity on the horizontal axis and total cost on the vertical axis.
- Look at the pattern of points. If they lie roughly along a straight line, a linear cost model is reasonable.
- Draw a line of best fit by eye, so that the points are spread evenly above and below it.
- Read off the intercept where the line meets the cost axis: this is the estimated fixed cost.
- 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
| Strengths | Weaknesses |
|---|---|
| Uses every observation, not just two | The line is drawn by judgement, so two people may draw different lines |
| Shows visually whether the relationship looks linear | Reading the intercept and slope from a graph is imprecise |
| Makes outliers (abnormal periods) easy to spot and exclude | Hard 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 and 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
where 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 first, then use it to find .
Worked example
A maintenance department records five months of activity (thousands of machine hours) and cost ($000):
| Month | Machine hours, 000 () | Cost, $000 () | ||
|---|---|---|---|---|
| 1 | 1 | 6 | 6 | 1 |
| 2 | 2 | 8 | 16 | 4 |
| 3 | 3 | 11 | 33 | 9 |
| 4 | 4 | 12 | 48 | 16 |
| 5 | 5 | 13 | 65 | 25 |
| Total | 15 | 50 | 168 | 55 |
Step 1: calculate the slope .
Because is in $000 and is in thousands of hours, means $1.80 of variable cost per machine hour.
Step 2: calculate the intercept .
So the estimated fixed cost is $4,600 per month.
Step 3: write the cost equation and forecast.
For a month with 3,500 machine hours ():
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:
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 (covered in more depth in BA1) measures how closely the points follow a straight line, from to . Its square, the coefficient of determination , gives the proportion of the variation in cost explained by the variation in activity. For the example above:
(using ). So : about 95% of the month-to-month variation in maintenance cost is explained by machine hours. A high supports using the equation for budgeting; a low one suggests other cost drivers matter.
Choosing between the three methods
| Feature | High-low | Scattergraph | Regression |
|---|---|---|---|
| Observations used | Two | All | All |
| Objectivity | Objective | Subjective (drawn by eye) | Objective |
| Effort | Very quick | Quick | More calculation |
| Sensitivity to one abnormal period | High, if it is the high or low point | Low, if the outlier is spotted | Moderate |
| Shows whether linear model is suitable | No | Yes | Partly, via and |
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 shows association; the management accountant should confirm that the activity measure genuinely drives the cost.
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)?
b = 4.0 and a = 5.0
b = 5.0 and a = 0.0
b = 4.0 and a = 25.0
b = 2.5 and a = 12.5
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?
The variable cost per machine hour
The estimated fixed cost incurred at zero activity within the model
The correlation between machine hours and cost
The total cost at the average level of activity
What is the main weakness of the scattergraph method compared with least-squares regression?
It uses only the highest and lowest observations
It cannot show whether any observations are abnormal
The line of best fit is drawn by judgement, so different people may estimate different costs
It can only be used when costs are purely variable
Sections you finish are checked off in the contents.