This appendix describes estimation of the regression equation, several commonly used regression statistics, and how to choose among cost functions that have been estimated by regression analysis. We use the data for Elegant Rugs presented in Exhibit 10-3 and displayed here again for easy reference.

The table depicts cost driver: machine-hours and indirect manufacturing labor costs for weeks 1 through 12, plus the total. The details of the table are as follows:
1. Week 1
Cost driver, machine-hours: 68
Indirect manufacturing labor costs: 1,190 dollars
2. Week 2
Cost driver, machine-hours: 88
Indirect manufacturing labor costs: 1,211 dollars
3. Week 3
Cost driver, machine-hours: 62
Indirect manufacturing labor costs: 1,004 dollars
4. Week 4
Cost driver, machine-hours: 72
Indirect manufacturing labor costs: 917 dollars
5. Week 5
Cost driver, machine-hours: 60
Indirect manufacturing labor costs: 770 dollars
6. Week 6
Cost driver, machine-hours: 96
Indirect manufacturing labor costs: 1,456 dollars
7. Week 7
Cost driver, machine-hours: 78
Indirect manufacturing labor costs: 1,180 dollars
8. Week 8
Cost driver, machine-hours: 46
Indirect manufacturing labor costs: 710 dollars
9. Week 9
Cost driver, machine-hours: 82
Indirect manufacturing labor costs: 1,316 dollars
10. Week 10
Cost driver, machine-hours: 94
Indirect manufacturing labor costs: 1,032 dollars
11. Week 11
Cost driver, machine-hours: 68
Indirect manufacturing labor costs: 752 dollars
12. Week 12
Cost driver, machine-hours: 48
Indirect manufacturing labor costs: 963 dollars
13. Total
Cost driver, machine-hours: 862
Indirect manufacturing labor costs: 12,501 dollars
The least-squares technique for estimating the regression line minimizes the sum of the squares of the vertical deviations from the data points to the estimated regression line (also called residual term in Exhibit 10-6). The objective is to find the values of a and b in the linear cost function where y is the predicted cost value as distinguished from the observed cost value, which we denote by Y. We wish to find the numerical values of a and b that minimize the sum of the squares of the vertical deviations between Y and y. Generally, these computations are done using software packages such as R. For the data in our example,*
Goodness of fit measures how well the predicted values, y, based on the cost driver, X, match actual cost observations, Y. The regression analysis method computes a measure of goodness of fit, called the coefficient of determination (r2). The coefficient of determination measures the percentage of variation in Y explained by X (the independent variable). It is more convenient to express the coefficient of determination as 1 minus the proportion of total variance that is not explained by the independent variable—that is, 1 minus the ratio of unexplained variation to total variation. The unexplained variance arises because of differences between the actual values, Y, and the predicted values, y. In the Elegant Rugs example, goodness of fit is given by*
The calculations indicate that increases as the predicted values, y, more closely approximate the actual observations, Y. The range of is from 0 (implying no explanatory power) to 1 (implying perfect explanatory power). Generally, an of 0.30 or higher passes the goodness-of-fit test. However, do not rely exclusively on goodness of fit. It can lead to the indiscriminate inclusion of independent variables that increase but have no economic plausibility as cost drivers. Goodness of fit has meaning only if the relationship between the cost drivers and costs is economically plausible.
An alternative and related way to evaluate goodness of fit is to calculate the standard error of the regression. The standard error of the regression is the standard deviation of the residuals. It is equal to
Degrees of freedom equal the number of observations, 12, minus the number of coefficients estimated in the regression (in this case two, a and b). The standard error of $170.54 is an estimate of the variation of the observed indirect manufacturing labor costs about the regression line. It is in the same unit of measurement (dollars) as indirect manufacturing labor costs, the dependent variable. For comparison, note that the average value of Y, is $1,041.75. The smaller the standard error of the regression, the better the fit and the better the predictions for different values of X.
Exhibit 10-15 shows a convenient format for summarizing the regression results for number of machine-hours and indirect manufacturing labor costs. Do changes in the economically plausible independent variable result in significant changes in the dependent variable? Or, alternatively stated, is the slope coefficient, of the regression line statistically significant (that is, different from $0)? Recall that in the regression of number of machine-hours and indirect manufacturing labor costs in the Elegant Rugs’ illustration, b is estimated from a sample of 12 weekly observations. The estimate, b, is subject to random factors, as are all sample statistics. That is, a different sample of 12 data points would give a different estimate of b. The standard error of the estimated coefficient indicates how much the estimated value, b, is likely to be affected by random factors.

Details of the spreadsheet are as follows:
Intercept
Coefficient: $300.98
Standard error: $229.75
t Stat: 1.31
Independent Variable: Machine-Hours (denoted by X)
Coefficient: $10.31
Standard error: $3.12
t Stat: 3.30
Regression Statistics (quotient of 1 and 2)
R Square: 0.52
Durbin-Watson Statistic: 2.05.
The t-value of a coefficient measures how large the value of the estimated coefficient is relative to its standard error. The t-value (also called t Stat) for the slope coefficient b is the value of the estimated coefficient, the standard error of the estimated coefficient, This is compared to a critical or cutoff value to ensure that a relationship exists between the independent variable and the dependent variable that cannot be attributed to random chance alone. The cutoff t-value for making inferences is a function of the number of degrees of freedom and the significance level. It is typical to look for a 5% level of significance, which indicates that there is less than a 5% probability that random factors could have affected the coefficient b. The cutoff t-value at the 5% significance level and 10 degrees of freedom is 2.228. Because the t-value for the slope coefficient b is 3.30, which exceeds 2.228, we can conclude that there is a statistically significant relationship between machine-hours and indirect manufacturing labor costs.*
An alternative way to test that the coefficient b is significantly different from zero is in terms of a confidence interval: There is less than a 5% chance that the true value of the machine-hours coefficient lies outside the range or or from $3.36 to $17.26. Because zero does not appear in the confidence interval, we can conclude that changes in the number of machine-hours do affect indirect manufacturing labor costs. Similarly, using data from Exhibit 10-15, the t-value for the constant term a is which is less than 2.228. This t-value indicates that, within the relevant range, the constant term is not significantly different from zero. The Durbin-Watson statistic in Exhibit 10-15 will be discussed in the following section.
Specification analysis is the testing of the assumptions of regression analysis. If the assumptions of (1) linearity within the relevant range, (2) constant variance of residuals, (3) independence of residuals, and (4) normality of residuals all hold, then the simple regression procedures give reliable estimates of coefficient values. This section provides a brief overview of specification analysis. When these assumptions are not satisfied, more-complex regression procedures are necessary to obtain the best estimates.*

The graphs consist of both scatter and line graphs. All values are approximate here. Details of the plot are as follows:
(1) Panel A: Constant variance (Uniform scatter of data points around regression line)
Y-axis shows Indirect Manufacturing Labor Costs ranging from $0 to $4,000 with increments of $1000 and X-axis shows machine-hours ranging from 0 to 250 with increments of 50.
The line starts at $900 labor costs when the machine hours are 0 and reaches $3,300 labor costs when the machine hours is 250.
The scatter plot is arranged parallel to the line on either of its sides.
(2) Panel B: Non-constant variance (higher outputs have larger residuals)
Y-axis shows Indirect Manufacturing Labor Costs ranging from $0 to $4,000 with increments of $1000 and X-axis shows machine-hours ranging from 0 to 250 with increments of 50.
The line starts at $900 labor costs when the machine hours are 0 and reaches $3,300 labor costs when the machine hours is 250.
The scatter plots diverge as the machine hours increase in the graph, but still remain around the line.

Details of the plot are as follows:
Panel A: Independence of residuals (No pattern in residuals)
Y-axis shows Indirect Manufacturing Labor Costs ranging from $0 to $3,000 with increments of $500 and X-axis shows machine-hours ranging from 0 to 250 with increments of 50.
Line: The labor costs are $600 when the machine hours are 33, and labor costs reach $2,500 when the machine hours are 275.
Small bunch of 2 to 4 plots are arranged along the line with certain distance between each group.
The plots are concentrated around the end of the line.
Panel B: Serial correlation in residuals (A pattern of positive residuals for extreme machine-hours used; negative residuals for moderate machine-hours used).
Y-axis shows Indirect Manufacturing Labor Costs ranging from $0 to $3,000 with increments of $500 and X-axis shows machine-hours ranging from 0 to 250 with increments of 50.
Line: The labor costs are $600 when the machine hours are 33, and labor costs reach $2,500 when the machine-hours are 275.
Plots are arranged in a curve around the line, with the plots being above the line till 100 machine-hours and then being below the line till 250 machine hours and then again above the line.
Consider the two choices of cost drivers we described earlier in this chapter for indirect manufacturing labor costs (y):
Exhibits 10-6 and 10-8 show plots of the data for the two regressions. Exhibit 10-15 reports regression results for the cost function using number of machine-hours as the independent variable. Exhibit 10-18 presents comparable regression results for the cost function using number of direct manufacturing labor-hours as the independent variable.

Details of the spreadsheet are as follows:
Intercept
Coefficient: $744.67
Standard error: $217.61
t Stat: 3.42
Independent Variable: direct manufacturing labor-hours (denoted by X2)
Coefficient: $7.72
Standard error: $5.40
t Stat: 1.43
Regression Statistics (quotient of above 1 and 2)
R Square: 0.17
Durbin-Watson Statistic: 2.26.
On the basis of the material presented in this appendix, which regression is better? Exhibit 10-19 compares these two cost functions in a systematic way. On the basis of several criteria, the cost function based on machine-hours is preferable to the cost function based on direct manufacturing labor-hours. The economic plausibility criterion is especially important.

Table depicts the comparison of cost function 1 and cost function 2 on the basis on various criterions.
Criterion: Economic plausibility
Cost function 1–Machine-hours as independent variable: A positive relationship between indirect manufacturing labor costs (technical support labor) and machine- hours is economically plausible in Elegant Rugs’ highly automated plant.
Cost function 2–Direct manufacturing labor-hours as independent variable: A positive relationship between indirect manufacturing labor costs and direct manufacturing labor-hours is economically plausible, but less so than machine-hours in Elegant Rugs’ highly automated plant on a week-to-week basis.
Criterion: Goodness of fit
Cost function 1– Machine-hours as independent variable: r squared equals 0.52 and standard error of regression equals $170.54. Excellent goodness of fit.
Cost function 2– Direct manufacturing labor-hours as independent variable: r squared equals 0.17 and standard error of regression equals $224.61. Poor goodness of fit.
Criterion: Significance of independent variable or variables
Cost function 1– Machine-hours as independent variable: The t-value of 3.30 is significant at the 0.05 level.
Cost function 2– Direct manufacturing labor-hours as independent variable: The t-value of 1.43 is not significant at the 0.05 level.
Criterion: Specification analysis of estimation assumptions
Cost function 1– Machine-hours as independent variable: Plot of the data indicates that assumptions of linearity, constant variance, independence of residuals (Durbin-Watson statistic equals 2.05), and normality of residuals hold, but inferences drawn from only 12 observations are not reliable.
Cost function 2– Direct manufacturing labor-hours as independent variable: Plot of the data indicates that assumptions of linearity, constant variance, independence of residuals (Durbin-Watson statistic equals 2.26), and normality of residuals hold, but inferences drawn from only 12 observations are not reliable.
Do not assume that any one cost function will perfectly satisfy all the criteria in Exhibit 10-19. A cost analyst must often make a choice among “imperfect” cost functions, in the sense that the data of any particular cost function will not perfectly meet one or more of the assumptions underlying regression analysis. For example, both of the cost functions in Exhibit 10-18 are imperfect because inferences drawn from only 12 observations are generally not reliable.
In some cases, a satisfactory estimation of a cost function may be based on only one independent variable, such as number of machine-hours. In many cases, however, basing the estimation on more than one independent variable (that is, multiple regression) is more economically plausible and improves accuracy. The most widely used equations to express relationships between two or more independent variables and a dependent variable are linear in the form
where,
Example: Consider the Elegant Rugs data in Exhibit 10-20. The company’s ABC analysis indicates that indirect manufacturing labor costs include large amounts incurred for setup and changeover costs when a new batch of carpets is started. Management believes that in addition to number of machine-hours (an output unit-level cost driver), indirect manufacturing labor costs are also affected by the number of batches of carpet produced during each week (a batch-level driver). Elegant Rugs estimates the relationship between two independent variables—number of machine-hours and number of production batches of carpet manufactured during the week—and indirect manufacturing labor costs.

Details of the spreadsheet are as follows:
Week 1
Machine-hours (X1): 68
Number of production batches(X2): 12
Direct manufacturing labor-hours: 30
Indirect manufacturing labor costs(Y): $1,190
Week 2
Machine-hours (X1): 88
Number of production batches(X2): 15
Direct manufacturing labor-hours: 35
Indirect manufacturing labor costs(Y): $1,211
Week 3
Machine-hours (X1): 62
Number of production batches(X2): 13
Direct manufacturing labor-hours: 36
Indirect manufacturing labor costs(Y): $1,004
Week 4
Machine-hours (X1): 72
Number of production batches(X2): 11
Direct manufacturing labor-hours: 20
Indirect manufacturing labor costs(Y): $917
Week 5
Machine-hours (X1): 60
Number of production batches(X2): 10
Direct manufacturing labor-hours: 47
Indirect manufacturing labor costs(Y): $770
Week 6
Machine-hours (X1): 96
Number of production batches(X2): 12
Direct manufacturing labor-hours: 45
Indirect manufacturing labor costs(Y): $1,456
Week 7
Machine-hours (X1): 78
Number of production batches(X2): 17
Direct manufacturing labor-hours: 44
Indirect manufacturing labor costs(Y): $1,180
Week 8
Machine-hours (X1): 46
Number of production batches(X2): 7
Direct manufacturing labor-hours: 38
Indirect manufacturing labor costs(Y): $710
Week 9
Machine-hours (X1): 82
Number of production batches(X2): 14
Direct manufacturing labor-hours: 70
Indirect manufacturing labor costs(Y): $1,316
Week 10
Machine-hours (X1): 94
Number of production batches(X2): 12
Direct manufacturing labor-hours: 30
Indirect manufacturing labor costs(Y): $1,032
Week 11
Machine-hours (X1): 68
Number of production batches(X2): 7
Direct manufacturing labor-hours: 29
Indirect manufacturing labor costs(Y): $752
Week 12
Machine-hours (X1): 48
Number of production batches(X2): 14
Direct manufacturing labor-hours: 38
Indirect manufacturing labor costs(Y): $963
Total
Machine-hours (X1): 862
Number of production batches(X2): 144
Direct manufacturing labor-hours: 462
Indirect manufacturing labor costs(Y): $12,501.
Exhibit 10-21 presents results for the following multiple regression model, using data in columns B, C, and E of Exhibit 10-20:

Details of the spreadsheet are as follows:
Intercept
Coefficient: $42.58
Standard error: $213.91
t Stat: 0.20
Independent Variable 1: Machine-hours (denoted by X)
Coefficient: $7.60
Standard error: $2.77
t Stat: 2.75
Independent Variable 2: Number of production batches (denoted by X2)
Coefficient: $37.77
Standard error: $15.25
t Stat: 2.48
Regression Statistics (Quotient of above 1 and 2)
R Square: 0.72
Durbin-Watson Statistic: 2.49.
where X1 is the number of machine-hours and X2 is the number of production batches. It is economically plausible that both number of machine-hours and number of production batches would help explain variations in indirect manufacturing labor costs at Elegant Rugs. The of 0.52 for the simple regression using number of machine-hours (Exhibit 10-15) increases to 0.72 with the multiple regression in Exhibit 10-21. The t-values suggest that the independent variable coefficients of both number of machine-hours ($7.60) and number of production batches ($37.77) are significantly different from zero ( is the t-value for number of machine-hours, and is the t-value for number of production batches, compared to the cutoff t-value of 2.26). The multiple regression model in Exhibit 10-21 satisfies both economic plausibility and statistical criteria, and explains much greater variation (that is, of 0.72 versus of 0.52) in indirect manufacturing labor costs than the simple regression model using only number of machine-hours as the independent variable.* The standard error of the regression equation that includes number of batches as an independent variable is
which is lower than the standard error of the regression with only machine-hours as the independent variable, $170.54. That is, even though adding a variable reduces the degrees of freedom in the denominator, it substantially improves fit so that the numerator, decreases even more. Number of machine-hours and number of production batches are both important cost drivers of indirect manufacturing labor costs at Elegant Rugs.
In Exhibit 10-21, the slope coefficients—$7.60 for number of machine-hours and $37.77 for number of production batches—measure the change in indirect manufacturing labor costs associated with a unit change in an independent variable (assuming that the other independent variable is held constant). For example, indirect manufacturing labor costs increase by $37.77 when one more production batch is added, assuming that the number of machine-hours is held constant.
An alternative approach would create two separate cost pools for indirect manufacturing labor costs: one for costs related to number of machine-hours and another for costs related to number of production batches. Elegant Rugs would then estimate the relationship between the cost driver and the costs in each cost pool. The difficult task under this approach is to properly subdivide the indirect manufacturing labor costs into the two cost pools.
A major concern that arises with multiple regression is multicollinearity. Multicollinearity exists when two or more independent variables are highly correlated with each other. Generally, a coefficient of correlation between independent variables greater than 0.70 indicates multicollinearity. Multicollinearity increases the standard errors of the coefficients of the individual variables. That is, variables that are economically and statistically significant will appear not to be significantly different from zero.
The matrix of correlation coefficients of the different variables described in Exhibit 10-20 are as follows:
| Indirect | Number of | Direct | ||
| Manufacturing | Production | Manufacturing | ||
| Labor Costs | Machine-Hours | Batches | Labor-Hours | |
| Indirect manufacturing labor costs | 1 | |||
| Machine-hours | 0.72 | 1 | ||
| Number of production batches | 0.69 | 0.4 | 1 | |
| Direct manufacturing labor-hours | 0.41 | 0.12 | 0.31 | 1 |
These results indicate that multiple regressions using any pair of the independent variables in Exhibit 10-20 are not likely to encounter multicollinearity problems.
When multicollinearity exists, try to obtain new data that do not suffer from multicollinearity problems. Do not drop an independent variable (cost driver) that should be included in a model because it is correlated with another independent variable. Omitting such a variable will cause the estimated coefficient of the independent variable included in the model to be biased away from its true value.