Siilats Robots
Regression and perceptron lessons

Perceptron in Excel: Add an Intercept and Update Two Weights

Extend the Excel perceptron example with an intercept and a second coefficient. We compare the spreadsheet setup with how regression handles a column of ones, then reorganize the prediction and update formulas for the two inputs.

Watch on Siilats RobotsRegression and perceptron workbook

Screen times follow the original lesson. Edited YouTube versions may run shorter.

At 0:00 in the original

Review the coefficient layout

Separate the intercept and the feature weights in the worksheet. Mixing their ranges makes it easy to update the wrong cell.

Screen recording at 0:00
Screen at 0:00
At 2:00 in the original

Use a constant feature

Treat the intercept as a weight on a column of ones. Then the bias uses the same update structure as other coefficients.

Screen recording at 2:00
Screen at 2:00
At 6:00 in the original

Return to the classification rule

Compute one signed score across the available features and inspect how changing the intercept shifts the decision boundary.

Screen recording at 6:00
Screen at 6:00
At 8:00 in the original

Initialize the parameters

Pick starting values, run a few misclassified rows, and check that the update changes only the intended parameters.

Screen recording at 8:00
Screen at 8:00