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.
Screen times follow the original lesson. Edited YouTube versions may run shorter.
Define the rectangle
Enter lower and upper bounds for each feature. A point lies in the rectangle only when it satisfies all four comparisons.

Combine the bounds with AND
Compute each comparison independently first, then put them together in Excel. Decide whether edges count as inside.

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

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.
