Module 4 - Computer Discussion - Computer Science
What are the benefits of using linear regression and prediction modeling in a business setting?  What are the limitations? Have you used either or both previously?  If so, please share how they were used. Business Analytics © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Linear Regression Chapter 7 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Introduction (Slide 1 of 2) Managerial decisions are often based on the relationship between two or more variables: Example: After considering the relationship between advertising expenditures and sales, a marketing manager might attempt to predict sales for a given level of advertising expenditures. Sometimes a manager will rely on intuition to judge how two variables are related. If data can be obtained, a statistical procedure called regression analysis can be used to develop an equation showing how the variables are related. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Introduction (Slide 2 of 2) Dependent variable or response: Variable being predicted. Independent variables or predictor variables: Variables being used to predict the value of the dependent variable. Simple linear regression: A regression analysis for which any one unit change in the independent variable, x, is assumed to result in the same change in the dependent variable, y. Multiple linear regression: A regression analysis involving two or more independent variables. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Simple Linear Regression Model Regression Model Estimated Regression Equation © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Simple Linear Regression Model (Slide 1 of 5) Regression Model: The equation that describes how y is related to x and an error term. The error term accounts for the variability in y that cannot be explained by the linear relationship between x and y. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. In the Butler Trucking Company example, the population consists of all the driving assignments that can be made by the company. For every driving assignment in the population, there is a value of x (miles traveled) and a corresponding value of y (travel time in hours). 6 Simple Linear Regression Model (Slide 2 of 5) Estimated Regression Equation: The parameter values are usually not known and must be estimated using sample data. the regression equation and dropping the error term, we obtain the estimated regression for simple linear regression. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. To estimate the mean or expected value of travel time for a driving assignment of 75 miles, Butler Trucking would substitute the value of 75 for x in equation = b0 + b1x. 7 Simple Linear Regression Model (Slide 3 of 5) In the estimated simple linear regression equation: The graph of the estimated simple linear regression equation is called the estimated regression line. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. To estimate the mean or expected value of travel time for a driving assignment of 75 miles, Butler Trucking would substitute the value of 75 for x in equation = b0 + b1x. 8 Meghan Cook (MC) - The slash in this equation should be a vertical line. I have edited the alt text to show how this should read as well. Simple Linear Regression Model (Slide 4 of 5) Figure 7.1: The Estimation Process in Simple Linear Regression © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 9 Simple Linear Regression Model (Slide 5 of 5) Figure 7.2: Possible Regression Lines in Simple Linear Regression © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The regression line in Panel A shows that the mean value of y is related positively to x, with larger values of associated with larger values of x. In Panel B, the mean value of y is related negatively to x, with smaller values of associated with larger values of x. In Panel C, the mean value of y is not related to x; that is, is the same for every value of x. 10 Least Squares Method Least Squares Estimates of the Regression Parameters Using Excel’s Chart Tools to Compute the Estimated Regression Equation © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Least Squares Method (Slide 1 of 15) Least squares method: A procedure for using sample data to find the estimated regression equation. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 12 Least Squares Method (Slide 2 of 15) Table 7.1: Miles Traveled and Travel Time for 10 Butler Trucking Company Driving Assignments Driving Assignment i x = Miles Traveled y = Travel Time (hours) 1 100 9.3 2 50 4.8 3 50 8.9 4 100 6.5 5 50 4.2 6 80 6.2 7 75 7.4 8 65 6.0 9 90 7.6 10 90 6.1 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. To illustrate the least squares method, suppose data were collected from a sample of 10 Butler Trucking Company driving assignments. For the ith observation or driving assignment in the sample, xi is the miles traveled and yi is the travel time (in hours). The values of xi and yi for the 10 driving assignments in the sample are summarized in Table 7.1. 13 Least Squares Method (Slide 3 of 15) Figure 7.3: Scatter Chart of Miles Traveled and Travel Time for Sample of 10 Butler Trucking Company Driving Assignments © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 7.3 is a scatter chart of the data in Table 7.1. Miles traveled is shown on the horizontal axis, and travel time (in hours) is shown on the vertical axis. Longer travel times appear to coincide with more miles traveled. The relationship between the travel time and miles traveled appears to be approximated by a straight line; indeed, a positive linear relationship is indicated between x and y. Therefore, the simple linear regression model is chosen to represent this relationship. 14 Least Squares Method (Slide 4 of 15) © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 15 Least Squares Method (Slide 5 of 15) Hence, We are finding the regression that minimizes the sum of squared errors. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 16 Least Squares Method (Slide 6 of 15) Least Squares Estimates of the Regression Parameters: For the Butler Trucking Company data in Table 7.1: The estimated simple linear regression model: © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 17 Least Squares Method (Slide 7 of 15) If the length of a driving assignment were 1 unit (1 mile) longer, the mean travel time for that driving assignment would be 0.0678 units (0.0678 hours, or approximately 4 minutes) longer. If the driving distance for a driving assignment was 0 units (0 miles), the mean travel time would be 1.2739 units (1.2739 hours, or approximately 76 minutes). © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. We interpret b1 and b0 as we would the y-intercept and slope of any straight line. 18 Least Squares Method (Slide 8 of 15) Experimental region: The range of values of the independent variables in the data used to estimate the model. The regression model is valid only over this region. Extrapolation: Prediction of the value of the dependent variable outside the experimental region. It is risky. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Because we have no empirical evidence that the relationship we have found holds true for values of x outside of the range of values of x in the data used to estimate the relationship, extrapolation is risky and should be avoided if possible. For Butler Trucking, this means that any prediction outside the travel time for a driving distance less than 50 miles or greater than 100 miles is not a reliable estimate, and so for this model the estimate of β0 is meaningless. However, if the experimental region for a regression problem includes zero, the y-intercept will have a meaningful interpretation. 19 Least Squares Method (Slide 9 of 15) Butler Trucking Company example: Use the estimated model and the known values for miles traveled for a driving assignment (x) to estimate mean travel time in hours. For example, the first driving assignment in Table 7.1 has a value for miles The mean travel time in hours for this driving assignment is estimated to be: The resulting residual of the estimate is: © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The simple linear regression model underestimated travel time for this driving assignment by 1.2461 hours (approximately 74 minutes). 20 Least Squares Method (Slide 10 of 15) Table 7.2: Predicted Travel Time and Residuals for 10 Butler Trucking Company Driving Assignments © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Note in Table 7.2 that: The sum of predicted values is equal to the sum of the values of the dependent variable y. The sum of the residuals ei is 0. The sum of the squared residuals has been minimized. 21 Least Squares Method (Slide 11 of 15) Figure 7.4: Scatter Chart of Miles Traveled and Travel Time for Butler Trucking Company Driving Assignments with Regression Line Superimposed © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 7.4 shows the simple linear regression line = 1.2739 + 0.0678xi superimposed on the scatter chart for the Butler Trucking Company data in Table 7.1. This figure, which also highlights the residuals for driving assignment 3 (e3) and driving assignment 5 (e5), shows that the regression model underpredicts travel time for some driving assignments (such as driving assignment 3) and overpredicts travel time for others (such as driving assignment 5), but in general appears to fit the data relatively well. 22 Least Squares Method (Slide 12 of 15) Figure 7.5: A Geometric Interpretation of the Least Squares Method © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. In Figure 7.5, a vertical line is drawn from each point in the scatter chart to the linear regression line. Each of these lines represents the difference between the actual driving time and the driving time to be predicted using linear regression for one of the assignments in the data. The length of each line is equal to the absolute value of the residual for one of the driving assignments. When a residual is squared, the resulting value is equal to the square that is formed using the vertical dashed line representing the residual in Figure 7.4 as one side of a square. Thus, when we find the linear regression model that minimizes the sum of squared errors for the Butler Trucking example, we are positioning the regression line in the manner that minimizes the sum of the areas of the ten squares in Figure 7.5. 23 Least Squares Method (Slide 13 of 15) Using Excel’s Chart Tools to Compute the Estimated Regression Equation: After constructing a scatter chart with Excel’s chart tools: Right-click on any data point and select Add Trendline. When the Format Trendline task pane appears: Select Linear in the Trendline Options area. Select Display Equation on chart in the Trendline Options area. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Least Squares Method (Slide 14 of 15) Figure 7.6: Scatter Chart and Estimated Regression Line for Butler Trucking Company © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. We can use Excel’s chart tools to compute the estimated regression equation on a scatter chart of the Butler Trucking Company data in Table 7.1. The worksheet displayed in Figure 7.6 shows the original data, scatter chart, estimated regression line, and estimated regression equation. Note that Excel uses y instead of to denote the predicted value of the dependent variable and puts the regression equation into slope-intercept form whereas we use the intercept-slope form that is standard in statistics. 25 Least Squares Method (Slide 15 of 15) Slope Equation y-Intercept Equation © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 26 Assessing the Fit of the Simple Linear Regression Model The Sums of Squares The Coefficient of Determination Using Excel’s Chart Tools to Compute the Coefficient of Determination © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Assessing the Fit of the Simple Linear Regression Model (Slide 1 of 10) The Sums of Squares: Sum of squares due to error: The value of SSE is a measure of the error in using the estimated regression equation to predict the values of the dependent variable in the sample. From Table 7.2, © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Assessing the Fit of the Simple Linear Regression Model (Slide 2 of 10) © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Without knowledge of any related variables, we would use the sample mean as a predictor of travel time for any given driving assignment. To find , we divide the sum of the actual driving times yi from Table 7.2 (67) by the number of observations n in the data (10); this yields = 6.7. Figure 7.7 provides insight on how well we would predict the values of yi in the Butler Trucking company example using = 6.7. From this figure, which again highlights the residuals for driving assignments 3 and 5, we can see that tends to overpredict travel times for driving assignments that have relatively small values for miles traveled (such as driving assignment 5) and tends to underpredict travel times for driving assignments that have relatively large values for miles traveled (such as driving assignment 3). 29 Assessing the Fit of the Simple Linear Regression Model (Slide 3 of 10) Table 7.3 shows the sum of squared deviations obtained by using for each driving assignment in the sample. Butler Trucking Example: For the ith driving assignment in the © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SST is a measure of how well the observations cluster about the line. 30 Assessing the Fit of the Simple Linear Regression Model (Slide 4 of 10) The corresponding sum of squares is called the total sum of squares (SST). © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. SST is a measure of how well the observations cluster about the line. 31 Assessing the Fit of the Simple Linear Regression Model (Slide 5 of 10) Table 7.3: Calculations for the Sum of Squares Total for the Butler Trucking Simple Linear Regression © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The sum at the bottom of the last column in Table 7.3 is the total sum of squares for Butler Trucking Company: SST = 23.9. 32 Assessing the Fit of the Simple Linear Regression Model (Slide 6 of 10) © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. In Figure 7.8, we show the estimated regression line = 1.2739 + 0.0678xi and the line corresponding to = 6.7. Note that the points cluster more closely around the estimated regression line = 1.2739 + 0.0678xi than they do about the horizontal line = 6.7. 33 Assessing the Fit of the Simple Linear Regression Model (Slide 7 of 10) Relation between SST, SSR, and SSE: where SST = total sum of squares SSR = sum of squares due to regression SSE = sum of squares due to error. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. In the Butler Trucking Company example, SSE = 8.0288 and SST = 23.9: SSR = SST SSE = 23.9 8.0288 = 15.8712 34 Assessing the Fit of the Simple Linear Regression Model (Slide 8 of 10) The Coefficient of Determination: The ratio SSR/SST used to evaluate the goodness of fit for the estimated regression equation; this ratio is called the coefficient of determination and is denoted by Take values between zero and one. Interpreted as the percentage of the total sum of squares that can be explained by using the estimated regression equation. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. For the Butler Trucking Company example, the coefficient of determination, r2 = = = 0.6641. It can be concluded that 66.41\% of the total sum of squares can be explained by using the estimated regression equation = 1.2739 + 0.0678xi to predict quarterly sales. 35 Assessing the Fit of the Simple Linear Regression Model (Slide 9 of 10) Using Excel’s Chart Tools to Compute the Coefficient of Determination: To compute the coefficient of determination using the scatter chart in Figure 7.3: Right-click on any data point in the scatter chart and select Add Trendline… When the Format Trendline task pane appears: Select Display R-squared value on chart in the Trendline Options area. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 36 Assessing the Fit of the Simple Linear Regression Model (Slide 10 of 10) © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 7.9 displays the scatter chart, the estimated regression equation, the graph of the estimated regression equation, and the coefficient of determination for the Butler Trucking Company data. We see that r2 = 0.6641. 37 The Multiple Regression Model Regression Model Estimated Multiple Regression Equation Least Squares Method and Multiple Regression Butler Trucking Company and Multiple Regression Using Excel’s Regression Tool to Develop the Estimated Multiple Regression Equation © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The Multiple Regression Model (Slide 1 of 11) Regression Model: © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 39 The Multiple Regression Model (Slide 2 of 11) Regression Model (cont.): Represents the change in the mean value of the dependent variable y that corresponds to a one unit increase in the independent variable holding the values of all other independent variables in the model constant. The multiple regression equation that describes how the mean value of y is related to © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 40 The Multiple Regression Model (Slide 3 of 11) Estimated Multiple Regression Equation: © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 41 The Multiple Regression Model (Slide 4 of 11) Least Squares Method and Multiple Regression: The least squares method is used to develop the estimated multiple regression equation: Finding Uses sample data to provide the values of that minimize the sum of squared residuals. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 42 The Multiple Regression Model (Slide 5 of 11) Figure 7:10: The Estimation Process for Multiple Regression © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The estimation process for multiple regression is shown in Figure 7.10. The estimated values of the dependent variable y are computed by substituting values of the independent variables x1, x2, . . . , xq into the estimated multiple regression equation. Computer software packages can be used to obtain the estimated regression equation and determine the regression coefficients b0, b1, b2, . . . , bq. 43 The Multiple Regression Model (Slide 6 of 11) Butler Trucking Company and Multiple Regression: The estimated simple linear regression equation, The linear effect of the number of miles traveled explains 66.41\% This implies, 33.59\% of the variability in sample travel times remains unexplained The managers might want to consider adding one or more independent variables, such as number of deliveries, to the model to explain some of the remaining variability in the dependent variable. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 44 The Multiple Regression Model (Slide 7 of 11) Butler Trucking Company and Multiple Regression (cont.): Estimated multiple linear regression with two independent variables: © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 45 The Multiple Regression Model (Slide 8 of 11) Figure 7.11: Data Analysis Tools Box Using Excel’s Regression Tool to Develop the Estimated Multiple Regression Equation: © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The following steps describe how to use Excel’s Regression tool to compute the estimated regression equation using the data in the worksheet. Copy the data values from the file ButlerWithDeliveries into an Excel worksheet from columns A through D and rows 1 through 301. Step 1. Click the DATA tab in the Ribbon Step 2. Click Data Analysis in the Analysis group Step 3. Select Regression from the list of Analysis Tools in the Data Analysis tools box (shown in Figure 7.11) and click OK 46 The Multiple Regression Model (Slide 9 of 11) Figure 7.12: Regression Dialog Box © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Step 4. When the Regression dialog box appears (as shown in Figure 7.12): 1. Enter D1:D301 in the Input Y Range: box 2. Enter B1:C301 in the Input X Range: box 3. Select Labels Selecting Labels tells Excel to use the names you have given to your variables in row 1 when displaying the regression model output. 4. Select Confidence Level: 5. Enter 99 in the Confidence Level: box 6. Select New Worksheet Ply: 7. Click OK 47 The Multiple Regression Model (Slide 10 of 11) Figure 7.13: Excel Regression Output for the Butler Trucking Company with Miles and Deliveries as Independent Variables © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. In the Excel output shown in Figure 7.13, the label for the independent variable x1 is Miles (see cell A18), and the label for the independent variable x2 is Deliveries (see cell A19). Estimated regression equation: = 0.1273 + 0.0672x1 + 0.6900x2 Interpretation: For a fixed number of deliveries, we estimate that the mean travel time will increase by 0.0672 hours when the distance traveled increases by 1 mile. For a fixed distance traveled, we estimate that the mean travel time will increase by 0.69 hours when the number of deliveries increases by 1 delivery. Multiple coefficient of determination, R2 = 0.8173. Interpretation: 81.73\% of the variability in sample values of the dependent variable, travel time, is explained by the independent variables, number of deliveries and distance traveled. 48 The Multiple Regression Model (Slide 11 of 11) Figure 7.14: Graph of the Regression Equation for Multiple Regression Analysis with Two Independent Variables © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. With two independent variables x1 and x2, we now generate a predicted value of y for every combination of values of x1 and x2. Thus, instead of a regression line, we now create a regression plane in three-dimensional space. Figure 7.14 provides the graph of the estimated regression plane for the Butler Trucking Company example and shows the seventh driving assignment in the data. As the plane slopes upward to larger values of total travel time () as either the number of miles traveled (x1) or the number of deliveries (x2) increases. The residual for a driving assignment when x1 = 75 and x2 = 3 is the difference between the observed y value and the estimated mean value of y when x1 = 75 and x2 = 3. The observed value lies above the regression plane, indicating that the regression model underestimates the expected driving time for the seventh driving assignment. 49 Inference and Regression Conditions Necessary for Valid Inference in the Least Squares Regression Model Testing Individual Regression Parameters Addressing Nonsignificant Independent Variables Multicollinearity © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Inference and Regression (Slide 1 of 17) Statistical inference: Process of making estimates and drawing conclusions about one or more characteristics of a population (the value of one or more parameters) through the analysis of sample data drawn from the population. In regression, inference is commonly used to estimate and draw conclusions about: The regression parameters The mean value and/or the predicted value of the dependent variable y for specific values of the independent variables Consider both hypothesis testing and interval estimation. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 51 Inference and Regression (Slide 2 of 17) Conditions Necessary for Valid Inference in the Least Squares Regression Model: For any given combination of values of the independent variables distributed with a mean of 0 and a constant variance. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Inference and Regression (Slide 3 of 17) Figure 7.15: Illustration of the Conditions for Valid Inference in Regression … Business Analytics © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Time Series Analysis and Forecasting Chapter 8 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Introduction (Slide 1 of 2) Forecasting methods can be classified as qualitative or quantitative. Qualitative methods generally involve the use of expert judgment to develop forecasts. Quantitative forecasting methods can be used when: Past information about the variable being forecast is available. The information can be quantified. It is reasonable to assume that past is prologue. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Introduction (Slide 2 of 2) The objective of time series analysis is to uncover a pattern in the time series and then extrapolate the pattern into the future. The forecast is based solely on past values of the variable and/or on past forecast errors. Modern data-collection technologies have enabled individuals, businesses, and government agencies to collect vast amounts of data that may be used for causal forecasting. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 4 Time Series Patterns Horizontal Pattern Trend Pattern Seasonal Pattern Trend and Seasonal Pattern Cyclical Pattern Identifying Time Series Patterns © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Time Series Patterns (Slide 1 of 20) Time series: A sequence of observations on a variable measured at successive points in time or over successive periods of time. The measurements may be taken every hour, day, week, month, year, or any other regular interval. The pattern of the data is important in understanding the series’ past behavior. If the behavior of the times series data of the past is expected to continue in the future, it can be used as a guide in selecting an appropriate forecasting method. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. To identify the underlying pattern in the data, a useful first step is to construct a time series plot, which is a graphical presentation of the relationship between time and the time series variable; time is represented on the horizontal axis and values of the time series variable are shown on the vertical axis. 6 Time Series Patterns (Slide 2 of 20) Horizontal Pattern: Exists when the data fluctuate randomly around a constant mean over time. Stationary time series: It denotes a time series whose statistical properties are independent of time: The process generating the data has a constant mean. The variability of the time series is constant over time. A time series plot for a stationary time series will always exhibit a horizontal pattern with random fluctuations. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Time Series Patterns (Slide 3 of 20) Table 8.1: Gasoline Sales Time Series Week Sales (1,000s of gallons) 1 17 2 21 3 19 4 23 5 18 6 16 7 20 8 18 9 22 10 20 11 15 12 22 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Data in Table 8.1 show the number of gallons of gasoline (in 1000s) sold by a gasoline distributor in Bennington, Vermont, over the past 12 weeks. The average value, or mean, for this time series is 19.25, or 19,250 gallons per week. 8 Time Series Patterns (Slide 4 of 20) Figure 8.1: Gasoline Sales Time Series Plot © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 8.1 shows a time series plot for the data in Table 8.1. Note how the data fluctuate around the sample mean of 19,250 gallons. Although random variability is present, we would say that these data follow a horizontal pattern. 9 Time Series Patterns (Slide 5 of 20) Table 8.2: Gasoline Sales Time Series after Obtaining the Contract with the Vermont State Police Week Sales (1,000s of gallons) Week Sales (1,000s of gallons) 1 17 12 22 2 21 13 31 3 19 14 34 4 23 15 31 5 18 16 33 6 16 17 28 7 20 18 32 8 18 19 30 9 22 20 29 10 20 21 34 11 15 22 33 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 8.2 shows the number of gallons of gasoline sold for the original time series and the 10 weeks after signing the new contract with the Vermont State Police to provide gasoline for state police cars located in southern Vermont. 10 Time Series Patterns (Slide 6 of 20) Figure 8.2: Gasoline Sales Time Series Plot after Obtaining the Contract with the Vermont State Police © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 8.2 shows the corresponding time series plot. Note the increased level of the time series beginning in week 13. This change in the level of the time series makes it more difficult to choose an appropriate forecasting method. 11 Time Series Patterns (Slide 7 of 20) Trend Pattern: A trend pattern shows gradual shifts or movements to relatively higher or lower values over a longer period of time. A trend is usually the result of long-term factors such as: Population increases or decreases. Shifting demographic characteristics of the population. Improving technology. Changes in the competitive landscape. Changes in consumer preferences. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Time Series Patterns (Slide 8 of 20) Table 8.3: Bicycle Sales Time Series Year Sales (1,000s) 1 21.6 2 22.9 3 25.5 4 21.9 5 23.9 6 27.5 7 31.5 8 29.7 9 28.6 10 31.4 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 8.3 shows the time series of bicycle sales for a particular manufacturer over the past 10 years. 13 Time Series Patterns (Slide 9 of 20) Figure 8.3: Bicycle Sales Time Series Plot © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 8.3 shows the time series of bicycle sales for a particular manufacturer over the past 10 years. Note that 21,600 bicycles were sold in year 1, 22,900 were sold in year 2, and so on. In year 10, the most recent year, 31,400 bicycles were sold. Visual inspection of the time series plot shows some up-and-down movement over the past 10 years. 14 Time Series Patterns (Slide 10 of 20) Table 8.4: Cholesterol Drug Revenue Times Year Revenue ($ millions) 1 23.1 2 21.3 3 27.4 4 34.6 5 33.8 6 43.2 7 59.5 8 64.4 9 74.2 10 99.3 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The data in Table 8.4 and the corresponding time series plot in Figure 8.4 show the sales revenue for a cholesterol drug since the company won FDA approval for the drug 10 years ago. The time series increases in a nonlinear fashion; that is, the rate of change of revenue does not increase by a constant amount from one year to the next. In fact, the revenue appears to be growing in an exponential fashion. 15 Time Series Patterns (Slide 11 of 20) Figure 8.4: Cholesterol Drug Revenue Times Series Plot ($ millions) © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. The data in Table 8.4 and the corresponding time series plot in Figure 8.4 show the sales revenue for a cholesterol drug since the company won FDA approval for the drug 10 years ago. The time series increases in a nonlinear fashion; that is, the rate of change of revenue does not increase by a constant amount from one year to the next. In fact, the revenue appears to be growing in an exponential fashion. 16 Time Series Patterns (Slide 12 of 20) Seasonal Pattern: Seasonal patterns are recurring patterns over successive periods of time. Example: A retailer that sells bathing suits expects low sales activity in the fall and winter months, with peak sales in the spring and summer months to occur every year. The time series plot not only exhibits a seasonal pattern over a one-year period but also for less than one year in duration. Example: daily traffic volume shows within-the-day “seasonal” behavior, with peak levels occurring during rush hour, moderate flow during the rest of the day, and light flow from midnight to early morning. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Time Series Patterns (Slide 13 of 20) Table 8.5: Umbrella Sales Time Series Year Quarter Sales 1 1 125   2 153   3 106   4 88 2 1 118   2 161   3 133   4 102 3 1 138   2 144   3 113   4 80 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 18 Time Series Patterns (Slide 14 of 20) Table 8.5: Umbrella Sales Time Series (cont.) Year Quarter Sales 4 1 109   2 137   3 125   4 109 5 1 130   2 165   3 128   4 96 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 19 Time Series Patterns (Slide 15 of 20) Figure 8.5: Umbrella Sales Time Series Plot © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 20 Time Series Patterns (Slide 16 of 20) Trend and Seasonal Pattern: Some time series include both a trend and a seasonal pattern. Table 8.6: Quarterly Smartphone Sales Time Series Year Quarter Sales ($1,000s) 1 1 4.8   2 4.1   3 6.0   4 6.5 2 1 5.8   2 5.2   3 6.8   4 7.4 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 8.6 and Figure 8.6 show quarterly smartphone sales for a particular manufacturer over the past four years. Clearly an increasing trend is present. However, Figure 8.6 also indicates that sales are lowest in the second quarter of each year and highest in quarters 3 and 4. Thus, we conclude that a seasonal pattern also exists for smartphone sales. 21 Time Series Patterns (Slide 17 of 20) Table 8.6: Quarterly Smartphone Sales Time Series (cont.) Year Quarter Sales ($1,000s) 3 1 6.0   2 5.6   3 7.5   4 7.8 4 1 6.3   2 5.9   3 8.0   4 8.4 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Figure 8.6 shows quarterly smartphone sales for a particular manufacturer over the past four years. Clearly an increasing trend is present. However, Figure 8.6 also indicates that sales are lowest in the second quarter of each year and highest in quarters 3 and 4. Thus, we conclude that a seasonal pattern also exists for smartphone sales. 22 Time Series Patterns (Slide 18 of 20) Figure 8.6: Quarterly Smartphone Sales Time Series Plot © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 8.6 and Figure 8.6 show quarterly smartphone sales for a particular manufacturer over the past four years. Clearly an increasing trend is present. However, Figure 8.6 also indicates that sales are lowest in the second quarter of each year and highest in quarters 3 and 4. Thus, we conclude that a seasonal pattern also exists for smartphone sales. 23 Time Series Patterns (Slide 19 of 20) Cyclical Pattern: A cyclical pattern exists if the time series plot shows an alternating sequence of points below and above the trendline that lasts for more than one year. Example: Periods of moderate inflation followed by periods of rapid inflation can lead to a time series that alternates below and above a generally increasing trendline. Cyclical effects are often combined with long-term trend effects and referred to as trend-cycle effects. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 24 Time Series Patterns (Slide 20 of 20) Identifying Time Series Patterns: The underlying pattern in the time series is an important factor in selecting a forecasting method. A time series plot should be one of the first analytic tools. We need to use a forecasting method that is capable of handling the pattern exhibited by the time series effectively. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 25 Forecast Accuracy © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Forecast Accuracy (Slide 1 of 10) Table 8.7: Computing Forecasts and Measures of Forecast Accuracy Using the Most Recent Value as the Forecast for the Next Period Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 1 17             2 21 17 4 4 16 19.05 19.05 3 19 21 −2 2 4 −10.53 10.53 4 23 19 4 4 16 17.39 17.39 5 18 23 −5 5 25 −27.78 27.78 6 16 18 −2 2 4 −12.50 12.50 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 8.7 shows the forecasts for the gasoline time series shown in Table 8.1 using the simplest of all the forecasting methods. We use the most recent week’s sales volume as the forecast for the next week. For instance, the distributor sold 17 thousand gallons of gasoline in week 1; this value is used as the forecast for week 2. Next, we use 21, the actual value of sales in week 2, as the forecast for week 3, and so on. This method is often referred to as a naïve forecasting method because of its simplicity. 27 Forecast Accuracy (Slide 2 of 10) Table 8.7: Computing Forecasts and Measures of Forecast Accuracy Using the Most Recent Value as the Forecast for the Next Period (cont.) Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 7 20 16 4 4 16 20.00 20.00 8 18 20 −2 2 4 −11.11 11.11 9 22 18 4 4 16 18.18 18.18 10 20 22 −2 2 4 −10.00 10.00 11 15 20 −5 5 25 −33.33 33.33 12 22 15 7 7 49 31.82 31.82 Totals 5 41 179 1.19 211.69 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Table 8.7 shows the forecasts for the gasoline time series shown in Table 8.1 using the simplest of all the forecasting methods. We use the most recent week’s sales volume as the forecast for the next week. For instance, the distributor sold 17 thousand gallons of gasoline in week 1; this value is used as the forecast for week 2. Next, we use 21, the actual value of sales in week 2, as the forecast for week 3, and so on. This method is often referred to as a naïve forecasting method because of its simplicity. 28 Forecast Accuracy (Slide 3 of 10) Naïve forecasting method: Using the most recent data to predict future data. The key concept associated with measuring forecast accuracy is forecast error. Measures to determine how well a particular forecasting method is able to reproduce the time series data that are already available. Forecast error. Mean forecast error (MFE). Mean absolute error (MAE). Mean squared error (MSE). Mean absolute percentage error (MAPE). © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Forecast Accuracy (Slide 4 of 10) Forecast Error: Difference between the actual and the forecasted values for period t. Mean Forecast Error: Mean or average of the forecast errors. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Forecast error: = = actual value = forecasted value Example: Consider Table 8.7. The distributor actually sold 21 thousand gallons of gasoline in week 2, and the forecast, using the sales volume in week 1, was 17 thousand gallons. The forecast error in week 2 is = = 21 17 = 4. Mean Forecast Error (MFE): MFE = n = Number of periods in time series k = Number of periods at the beginning of the time series for which we cannot produce a naïve forecast Example: Table 8.7 shows that the sum of the forecast errors for the gasoline sales time series is 5. Thus, the mean or average error is 5/11 = 0.45. 30 Forecast Accuracy (Slide 5 of 10) Mean Absolute Error (MAE): Measure of forecast accuracy that avoids the problem of positive and negative forecast errors offsetting one another. Mean Squared Error (MSE): Measure that avoids the problem of positive and negative errors offsetting each other is obtained by computing the average of the squared forecast errors. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Mean Absolute Error (MAE) It is also referred to as the mean absolute deviation (MAD). Example: Table 8.7 shows that the sum of the absolute values of the forecast errors is 41. Thus MAE = average of the absolute value of the forecast errors = 41/11 = 3.73. MEAN SQUARED ERROR (MSE) Example: From Table 8.7, the sum of the squared errors is 179. Hence, MSE = average of the square of the forecast errors = 179/11 = 16.27. 31 Forecast Accuracy (Slide 6 of 10) Mean Absolute Percentage Error (MAPE): Average of the absolute value of percentage forecast errors. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Mean Absolute Percentage Error (MAPE): The size of MAE or MSE depends upon the scale of the data. As a result, it is difficult to make comparisons for different time intervals (such as comparing a method of forecasting monthly gasoline sales to a method of forecasting weekly sales) or to make comparisons across different time series (such as monthly sales of gasoline and monthly sales of oil filters). To make comparisons such as these, we need to work with relative or percentage error measures. The mean absolute percentage error (MAPE) is such a measure. Example: Table 8.7 shows that the sum of the absolute values of the percentage errors is Thus the MAPE, which is the average of the absolute value of percentage forecast errors, is 211.69/11 = 19.24\% 32 Forecast Accuracy (Slide 7 of 10) Table 8.8: Computing Forecasts and Measures of Forecast Accuracy Using the Average of All the Historical Data as the Forecast for the Next Period Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 1 17             2 21 17.00 4.00 4.00 16.00 19.05 19.05 3 19 19.00 0.00 0.00 0.00 0.00 0.00 4 23 19.00 4.00 4.00 16.00 17.39 17.39 5 18 20.00 −2.00 2.00 4.00 −11.11 11.11 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. We begin by developing a forecast for week 2. Because there is only one historical value available prior to week 2, the forecast for week 2 is just the time series value in week 1; thus, the forecast for week 2 is 17 thousand gallons of gasoline. To compute the forecast for week 3, we take the average of the sales values in weeks 1 and 2. Thus, = (17 + 21)/2 = 19 Similarly, the forecast for week 4 is = (17 + 21 + 19)/3 = 19. Using the results shown in Table 8.8, we obtain the following values of MAE, MSE, and MAPE: MAE = 26.81/11 = 2.44 MSE = 89.07/11 = 8.10 MAPE = 141.34/11 = 12.85\% 33 Forecast Accuracy (Slide 8 of 10) Table 8.8: Computing Forecasts and Measures of Forecast Accuracy Using the Average of All the Historical Data as the Forecast for the Next Period (cont.) Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 6 16 19.60 −3.60 3.60 12.96 −22.50 22.50 7 20 19.00 1.00 1.00 1.00 5.00 5.00 8 18 19.14 −1.14 1.14 1.31 −6.35 6.35 9 22 19.00 3.00 3.00 9.00 13.64 13.64 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. We begin by developing a forecast for week 2. Because there is only one historical value available prior to week 2, the forecast for week 2 is just the time series value in week 1; thus, the forecast for week 2 is 17 thousand gallons of gasoline. To compute the forecast for week 3, we take the average of the sales values in weeks 1 and 2. Thus, = (17 + 21)/2 = 19 Similarly, the forecast for week 4 is = (17 + 21 + 19)/3 = 19. Using the results shown in Table 8.8, we obtain the following values of MAE, MSE, and MAPE: MAE = 26.81/11 = 2.44 MSE = 89.07/11 = 8.10 MAPE = 141.34/11 = 12.85\% 34 Forecast Accuracy (Slide 9 of 10) Table 8.8: Computing Forecasts and Measures of Forecast Accuracy Using the Average of All the Historical Data as the Forecast for the Next Period (cont.) Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 10 20 19.33 0.67 0.67 0.44 3.33 3.33 11 15 19.40 −4.40 4.40 19.36 −29.33 29.33 12 22 19.00 3.00 3.00 9.00 13.64 13.64 Totals 4.52 26.81 89.07 2.75 141.34 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. We begin by developing a forecast for week 2. Because there is only one historical value available prior to week 2, the forecast for week 2 is just the time series value in week 1; thus, the forecast for week 2 is 17 thousand gallons of gasoline. To compute the forecast for week 3, we take the average of the sales values in weeks 1 and 2. Thus, = (17 + 21)/2 = 19 Similarly, the forecast for week 4 is = (17 + 21 + 19)/3 = 19. Using the results shown in Table 8.8, we obtain the following values of MAE, MSE, and MAPE: MAE = 26.81/11 = 2.44 MSE = 89.07/11 = 8.10 MAPE = 141.34/11 = 12.85\% 35 Forecast Accuracy (Slide 10 of 10) Compare the accuracy of the two forecasting methods by comparing the values of MAE, MSE, and MAPE for each method. Naïve Method Average of Past Values MAE 3.73 2.44 MSE 16.27 8.10 MAPE 19.24\% 12.85\% The average of past values provides more accurate forecasts for the next period than using the most recent observation. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. 36 Moving Averages and Exponential Smoothing Moving Averages Exponential Smoothing © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Moving Averages and Exponential Smoothing (Slide 1 of 16) Moving Averages: Moving averages method: Uses the average of the most recent k data values in the time series as the forecast for the next period. © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. In the formula for moving average forecast, = forecast of the time series for period t + 1 = actual value of the time series in period t k = number of periods of time series data used to generate the forecast To use moving averages to forecast a time series, we must first select the order k. If only the most recent values of the time series are considered relevant, a small value of k is preferred. If a greater number of past values are considered relevant, then we generally opt for a larger value of k. A moving average will adapt to the new level of the series and continue to provide good forecasts in k periods. Thus, a smaller value of k will track shifts in a time series more quickly. On the other hand, larger values of k will be more effective in smoothing out random fluctuations. 38 Moving Averages and Exponential Smoothing (Slide 2 of 16) Table 8.9: Summary of Three-Week Moving Average Calculations Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 1 17             2 21             3 19             4 23 19 4 4 16 17.39 17.39 5 18 21 −3 3 9 −16.67 16.67 6 16 20 −4 4 16 −25.00 25.00 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. To illustrate the moving averages method, let us return to the original 12 weeks of gasoline sales data in Table 8.1 and Figure 8.1. We will use a three-week moving average (k = 3). We begin by computing the forecast of sales in week 4 using the average of the time series values in weeks 1 to 3. = average for weeks 1 to 3 = (17 + 21 + 19)/3 = 19 The moving average forecast of sales in week 4 is 19, or 19,000 gallons of gasoline. Because the actual value observed in week 4 is 23, the forecast error in week 4 is e4 = 23 - 19 = 4. We next compute the forecast of sales in week 5 by averaging the time series values in weeks 2 to 4. = average for weeks 2 to 4 = (21 + 19 + 23)/3 = 21 Hence, the forecast of sales in week 5 is 21 and the error associated with this forecast is e5 = 18 - 21 = -3. A complete summary of the three-week moving average forecasts for the gasoline sales time series is provided in Table 8.9. 39 Moving Averages and Exponential Smoothing (Slide 3 of 16) Table 8.9: Summary of Three-Week Moving Average Calculations (cont.) Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 7 20 19 1 1 1 5.00 5.00 8 18 18 0 0 0 0.00 0.00 9 22 18 4 4 16 18.18 18.18 10 20 20 0 0 0 0.00 0.00 11 15 20 −5 5 25 −33.33 33.33 12 22 19 3 3 9 13.64 13.64 Totals 0 24 92 −20.79 129.21 © 2021 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. To illustrate the moving averages method, let us return to the original 12 weeks of gasoline sales data in Table 8.1 and Figure 8.1. We will use a three-week moving average (k = 3). We begin by computing the forecast of sales in week 4 using the average of the time series values in weeks 1 to 3. = average for weeks 1 to 3 = (17 + 21 + 19)/3 = 19 The moving average forecast of sales in week 4 is 19 or 19,000 gallons of gasoline. Because the actual value observed in week 4 is 23, the forecast error in week 4 is e4 = 23 - 19 = 4. We next compute the forecast of sales in week 5 by averaging the time series values in weeks 2 to 4. = average for weeks 2 to 4 = (21 + 19 + 23)/3 = 21 Hence, the forecast of sales in week 5 is 21 and the error associated with this forecast is e5 = 18 - 21 = -3. A complete summary of the three-week moving average forecasts …
CATEGORIES
Economics Nursing Applied Sciences Psychology Science Management Computer Science Human Resource Management Accounting Information Systems English Anatomy Operations Management Sociology Literature Education Business & Finance Marketing Engineering Statistics Biology Political Science Reading History Financial markets Philosophy Mathematics Law Criminal Architecture and Design Government Social Science World history Chemistry Humanities Business Finance Writing Programming Telecommunications Engineering Geography Physics Spanish ach e. Embedded Entrepreneurship f. Three Social Entrepreneurship Models g. Social-Founder Identity h. Micros-enterprise Development Outcomes Subset 2. Indigenous Entrepreneurship Approaches (Outside of Canada) a. Indigenous Australian Entrepreneurs Exami Calculus (people influence of  others) processes that you perceived occurs in this specific Institution Select one of the forms of stratification highlighted (focus on inter the intersectionalities  of these three) to reflect and analyze the potential ways these ( American history Pharmacology Ancient history . Also Numerical analysis Environmental science Electrical Engineering Precalculus Physiology Civil Engineering Electronic Engineering ness Horizons Algebra Geology Physical chemistry nt When considering both O lassrooms Civil Probability ions Identify a specific consumer product that you or your family have used for quite some time. This might be a branded smartphone (if you have used several versions over the years) or the court to consider in its deliberations. Locard’s exchange principle argues that during the commission of a crime Chemical Engineering Ecology aragraphs (meaning 25 sentences or more). Your assignment may be more than 5 paragraphs but not less. INSTRUCTIONS:  To access the FNU Online Library for journals and articles you can go the FNU library link here:  https://www.fnu.edu/library/ In order to n that draws upon the theoretical reading to explain and contextualize the design choices. Be sure to directly quote or paraphrase the reading ce to the vaccine. Your campaign must educate and inform the audience on the benefits but also create for safe and open dialogue. A key metric of your campaign will be the direct increase in numbers.  Key outcomes: The approach that you take must be clear Mechanical Engineering Organic chemistry Geometry nment Topic You will need to pick one topic for your project (5 pts) Literature search You will need to perform a literature search for your topic Geophysics you been involved with a company doing a redesign of business processes Communication on Customer Relations. Discuss how two-way communication on social media channels impacts businesses both positively and negatively. Provide any personal examples from your experience od pressure and hypertension via a community-wide intervention that targets the problem across the lifespan (i.e. includes all ages). Develop a community-wide intervention to reduce elevated blood pressure and hypertension in the State of Alabama that in in body of the report Conclusions References (8 References Minimum) *** Words count = 2000 words. *** In-Text Citations and References using Harvard style. *** In Task section I’ve chose (Economic issues in overseas contracting)" Electromagnetism w or quality improvement; it was just all part of good nursing care.  The goal for quality improvement is to monitor patient outcomes using statistics for comparison to standards of care for different diseases e a 1 to 2 slide Microsoft PowerPoint presentation on the different models of case management.  Include speaker notes... .....Describe three different models of case management. visual representations of information. They can include numbers SSAY ame workbook for all 3 milestones. You do not need to download a new copy for Milestones 2 or 3. When you submit Milestone 3 pages): Provide a description of an existing intervention in Canada making the appropriate buying decisions in an ethical and professional manner. Topic: Purchasing and Technology You read about blockchain ledger technology. Now do some additional research out on the Internet and share your URL with the rest of the class be aware of which features their competitors are opting to include so the product development teams can design similar or enhanced features to attract more of the market. The more unique low (The Top Health Industry Trends to Watch in 2015) to assist you with this discussion.         https://youtu.be/fRym_jyuBc0 Next year the $2.8 trillion U.S. healthcare industry will   finally begin to look and feel more like the rest of the business wo evidence-based primary care curriculum. Throughout your nurse practitioner program Vignette Understanding Gender Fluidity Providing Inclusive Quality Care Affirming Clinical Encounters Conclusion References Nurse Practitioner Knowledge Mechanics and word limit is unit as a guide only. The assessment may be re-attempted on two further occasions (maximum three attempts in total). All assessments must be resubmitted 3 days within receiving your unsatisfactory grade. You must clearly indicate “Re-su Trigonometry Article writing Other 5. June 29 After the components sending to the manufacturing house 1. In 1972 the Furman v. Georgia case resulted in a decision that would put action into motion. Furman was originally sentenced to death because of a murder he committed in Georgia but the court debated whether or not this was a violation of his 8th amend One of the first conflicts that would need to be investigated would be whether the human service professional followed the responsibility to client ethical standard.  While developing a relationship with client it is important to clarify that if danger or Ethical behavior is a critical topic in the workplace because the impact of it can make or break a business No matter which type of health care organization With a direct sale During the pandemic Computers are being used to monitor the spread of outbreaks in different areas of the world and with this record 3. Furman v. Georgia is a U.S Supreme Court case that resolves around the Eighth Amendments ban on cruel and unsual punishment in death penalty cases. The Furman v. Georgia case was based on Furman being convicted of murder in Georgia. Furman was caught i One major ethical conflict that may arise in my investigation is the Responsibility to Client in both Standard 3 and Standard 4 of the Ethical Standards for Human Service Professionals (2015).  Making sure we do not disclose information without consent ev 4. Identify two examples of real world problems that you have observed in your personal Summary & Evaluation: Reference & 188. Academic Search Ultimate Ethics We can mention at least one example of how the violation of ethical standards can be prevented. Many organizations promote ethical self-regulation by creating moral codes to help direct their business activities *DDB is used for the first three years For example The inbound logistics for William Instrument refer to purchase components from various electronic firms. During the purchase process William need to consider the quality and price of the components. In this case 4. A U.S. Supreme Court case known as Furman v. Georgia (1972) is a landmark case that involved Eighth Amendment’s ban of unusual and cruel punishment in death penalty cases (Furman v. Georgia (1972) With covid coming into place In my opinion with Not necessarily all home buyers are the same! When you choose to work with we buy ugly houses Baltimore & nationwide USA The ability to view ourselves from an unbiased perspective allows us to critically assess our personal strengths and weaknesses. This is an important step in the process of finding the right resources for our personal learning style. Ego and pride can be · By Day 1 of this week While you must form your answers to the questions below from our assigned reading material CliftonLarsonAllen LLP (2013) 5 The family dynamic is awkward at first since the most outgoing and straight forward person in the family in Linda Urien The most important benefit of my statistical analysis would be the accuracy with which I interpret the data. The greatest obstacle From a similar but larger point of view 4 In order to get the entire family to come back for another session I would suggest coming in on a day the restaurant is not open When seeking to identify a patient’s health condition After viewing the you tube videos on prayer Your paper must be at least two pages in length (not counting the title and reference pages) The word assimilate is negative to me. I believe everyone should learn about a country that they are going to live in. It doesnt mean that they have to believe that everything in America is better than where they came from. It means that they care enough Data collection Single Subject Chris is a social worker in a geriatric case management program located in a midsize Northeastern town. She has an MSW and is part of a team of case managers that likes to continuously improve on its practice. The team is currently using an I would start off with Linda on repeating her options for the child and going over what she is feeling with each option.  I would want to find out what she is afraid of.  I would avoid asking her any “why” questions because I want her to be in the here an Summarize the advantages and disadvantages of using an Internet site as means of collecting data for psychological research (Comp 2.1) 25.0\% Summarization of the advantages and disadvantages of using an Internet site as means of collecting data for psych Identify the type of research used in a chosen study Compose a 1 Optics effect relationship becomes more difficult—as the researcher cannot enact total control of another person even in an experimental environment. Social workers serve clients in highly complex real-world environments. Clients often implement recommended inte I think knowing more about you will allow you to be able to choose the right resources Be 4 pages in length soft MB-920 dumps review and documentation and high-quality listing pdf MB-920 braindumps also recommended and approved by Microsoft experts. The practical test g One thing you will need to do in college is learn how to find and use references. References support your ideas. College-level work must be supported by research. You are expected to do that for this paper. You will research Elaborate on any potential confounds or ethical concerns while participating in the psychological study 20.0\% Elaboration on any potential confounds or ethical concerns while participating in the psychological study is missing. Elaboration on any potenti 3 The first thing I would do in the family’s first session is develop a genogram of the family to get an idea of all the individuals who play a major role in Linda’s life. After establishing where each member is in relation to the family A Health in All Policies approach Note: The requirements outlined below correspond to the grading criteria in the scoring guide. At a minimum Chen Read Connecting Communities and Complexity: A Case Study in Creating the Conditions for Transformational Change Read Reflections on Cultural Humility Read A Basic Guide to ABCD Community Organizing Use the bolded black section and sub-section titles below to organize your paper. For each section Losinski forwarded the article on a priority basis to Mary Scott Losinksi wanted details on use of the ED at CGH. He asked the administrative resident