150 likes | 171 Views
Least-Squares Regression Computations. Appendix 2A. Learning Objective 8. Analyze a mixed cost using a scattergraph plot and the least-squares regression method. The Data Set. Matrix, Inc. wants to know its average fixed cost and variable cost per meals served.
E N D
Least-Squares Regression Computations Appendix 2A
Learning Objective 8 Analyze a mixed cost using a scattergraph plot and the least-squares regression method.
The Data Set Matrix, Inc. wants to know its average fixed cost and variable cost per meals served. Using the data to the right, let’s see how to do a Scattergraph plot using Microsoft Excel.
Scattergraph Plot Highlight Cells C4 through D19. from the Insert Menu in Excel, select Graph. and the Scattergraph with no lines. You should produce a graph that looks similar to the one shown on the right.
Scattergraph Plot Right click on any of the grid values and enter the text as shown. The X axis should read “Units (Meals), and the Y axis should read Total Cost.
Scattergraph Plot Right click on any data point in the scattergraph plot and selecting “Add Trendline” from the graph submenu. The relationship appears to be linear, so we can apply the regression model.
Simple Regression Using Excel • You will need three pieces of information from your regression analysis: • Estimated Variable Cost Per Unit (line slope) • Estimated Fixed Costs (line intercept) • Goodness of fit, or R2 To get these three pieces information we will need to use three Excel functions in the Statistical Group of special functions. SLOPE, INTERCEPT, and RSQ
Simple Regression Using Excel Place your cursor in cell F4 and press the = key. Click on the pull down menu and scroll down to “Statistical” and scroll until you see “Slope.”
Simple Regression Using Excel For “Known_y’s” highlight cells D4 through D19, and for “Known_x’s” highlight cells C4 through C19. Notice the Slope is calculated at 2.7684.
Simple Regression Using Excel Place your cursor in cell F5 and press the = key. Click on the pull down menu and scroll down to “Statistical” and scroll until you see “Intercept.”
Simple Regression Using Excel Here is the estimate of the fixed costs. 1. In the Known_y’s box, enter D4:D19 for the range. 2. In the Known_x’s box, enter C4:C19 for the range.
Simple Regression Using Excel Finally, we will determine the “goodness of fit”, or R2, by using the RSQ function. Move your cursor to Cell F6.
Simple Regression Using Excel Here is the estimate of R2. 1. In the Known_y’s box, enter D4:D19 for the range. 2. In the Known_x’s box, enter C4:C19 for the range.
Simple Regression Using Excel Notice that Excel depicts its least-squares regression equation as Y = bX + a. We can easily rearrange with equation.