Polynomial and interaction features explicitly construct non-linear and combined relationships from existing variables, letting models that only see linear combinations capture curves and synergies. They exist because many real relationships are not linear — performance may rise then fall with workload, and two factors may matter only in combination — and a linear model, blind to these by construction, can represent them only if you hand it the squared, cubed, and product terms directly. Polynomial features add powers of a variable to capture curvature, while interaction features multiply variables together to capture synergies where the effect of one depends on another. Mastering these turns a simple linear model into one capable of expressing rich non-linear structure, but it also introduces the dangers of feature explosion and overfitting, so knowing when and how to use them is as important as knowing how to create them.
25 minintermediate
Polynomial and Interaction Features
Analogy🏏Cricket
🏏 Think of it like cricket: Reducing twenty batting statistics to two dimensions with PCA produces a flat projection that may look like one undifferentiated cloud, while t-SNE or UMAP finds that the data actually organises into distinct clusters — aggressive pinch-hitters, steady anchors, explosive finishers — whose separation PCA's flat projection smeared together. Just as the non-linear reduction reveals the natural groupings that flat projection could not, t-SNE and UMAP reveal structure that PCA misses because it can only flatten, not curve to follow the data's natural shape. The insight is that non-linear reduction methods follow the data's true curved geometry rather than forcing a flat projection, revealing the cluster structure and local neighbourhoods that linear methods like PCA cannot preserve.
Lesson 15 of 35
0% complete