Close this search box.

Stepwise Regression Help

This page shows how to perform stepwise regression using SPC for Excel. This page contains the following:


We will use an example from Montgomery’s regression book. An engineer employed by a soft drink beverage bottler is analyzing what impacts delivery times. He decides the two factors that impact the time could be the number of cases a driver delivers, as well as how far the driver has to walk at the customer’s facility. He has collected 25 observations for delivery time (minutes), the number of cases, and distance walked (feet). The data are shown below. We want to use this data to determine if either factor impacts delivery time and if we can build a model to predict delivery time. The steps below show how to do this using the SPC for Excel software. In this example, we are using the following model:

Y = bo + b1x1 + b2x2


Data Entry

Enter the data into a spreadsheet as shown below. The data can be downloaded here. The data must be in columns with the variable names in the first cell of the column.

Running the Regression

Stepwise Regression Output

A new worksheet is added that contains the stepwise regression output. The variables tested are listed at the top. Each step in the stepwise regression is then given. It will tell if the variable was added or removed and give the coefficient, the t statistic, and the p value for each variable included in the model. It will also give the value of sigma, R2 and R2 adjusted.

After finding the best model, the software generates the regression output.

Scroll to Top