Siilats Robots
SVM and constraints lessons

Build a Rectangular Decision Boundary in Excel | Classification Walkthrough

Build and debug a rectangular decision rule for two input features in Excel. This screen-share lesson compares upper and lower thresholds with AND conditions, checks labels inside and outside the rectangle, and explores why a fixed rule can be a poor fit for some arrangements of points.

Watch on Siilats RobotsSVM and constraints workbook

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

At 0:00 in the original

Define the rectangle

Enter lower and upper bounds for each feature. A point lies in the rectangle only when it satisfies all four comparisons.

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

Combine the bounds with AND

Compute each comparison independently first, then put them together in Excel. Decide whether edges count as inside.

Screen recording at 0:55
Screen at 0:55
At 5:30 in the original

Test changes in the bounds

Move one boundary at a time and compare the predicted labels with a scatterplot. Look for reversed inequality signs.

Screen recording at 5:30
Screen at 5:30
At 9:10 in the original

Compare a harder configuration

A rectangle can capture some patterns a line cannot. A rectangle’s axis alignment also limits which rotated patterns it can describe.

Screen recording at 9:10
Screen at 9:10