Exhibit 5A-3
Exhibit 5A-3
E X H I B I T 5 A – 3 Y
The Concept of Least-Squares
Regression
Actual Y
Error Regression line
Cost
Estimated Y
Y = a + bX
X
Level of activity
Fortunately, Microsoft Excel can be used to estimate the fixed cost (intercept) and vari-
able cost per unit (slope) that minimize the sum of the squared errors. Excel also provides
a statistic called the R2, which is a measure of “goodness of fit.” The R2 tells us the per-
centage of the variation in the dependent variable (cost) that is explained by variation in
the independent variable (activity). The R2 varies from 0% to 100%, and the higher the
percentage, the better.
As mentioned earlier, you should always plot the data in a scattergraph, but it is par-
ticularly important to check the data visually when the R2 is low. A quick look at the scat-
tergraph can reveal that there is little relation between the cost and the activity or that the
relation is something other than a simple straight line. In such cases, additional analysis
would be required.
Exhibit 5A–4 uses Excel to depict the Brentline Hospital data that we used earlier to
illustrate the high-low method. We’ll be using this same data set to illustrate how Excel
can be used to create a scattergraph plot and to calculate the intercept a, the slope b, and
the R2 using least-squares regression.6
E X H I B I T 5 A – 4
The Least-Squares Regression
Worksheet for Brentline Hospital
6
The authors wish to thank Don Schwartz, Professor of Accounting at National University, for provid-
ing suggestions that were instrumental in creating this appendix.
Cost-Volume-Profit Relationships 247
EXHIBIT 5A–5
A Scattergraph Plot for Brentline
Hospital Using Microsoft Excel
7
To insert labels for the X-axis and Y-axis, go to the Layout tab in Excel. Then, within the Labels
group, select Axis Titles.
248 Chapter 5
E X H I B I T 5 A – 6
Trendline Options in Microsoft Excel
E X H I B I T 5 A – 7
Brentline Hospital: Least-
Squares Regression Results
Using Microsoft Excel
High-Low Least-Squares
Method Regression Method
Variable cost estimate per patient-day������������� $0.800 $0.759
Fixed cost estimate per month��������������������������� $3,400 $3,431
Cost-Volume-Profit Relationships 249
When Brentline uses the least-squares regression method to create a straight line that
minimizes the sum of the squared errors, it results in estimated fixed costs that are $31
higher than the amount derived using the high-low method. It also decreases the slope
of the straight line resulting in a lower variable cost estimate of $0.759 per patient-day
rather than $0.80 per patient-day as derived using the high-low method.
Required:
1. Using the high-low method, estimate the fixed cost of electricity per month and the variable
cost of electricity per occupancy-day. Round off the fixed cost to the nearest whole dollar and
the variable cost to the nearest whole cent.
2. What other factors in addition to occupancy-days are likely to affect the variation in electrical
costs from month to month?