When a straight line can't
Here are chapter 3's matches again, but the question is different: was it a draw? Draws sit along the top of the board, everything else along the bottom. 30 of 111 matches in Premier League were draws.
Football knowledge says draws are likeliest when the teams are even, which means a gap near 0. A model with only x can't express that. σ(b + w·x) keeps rising or keeps falling, so the best it can do is the dashed curve, a gentle tilt.
The fix is a synthetic feature, x² computed from x. x² is large at both ends and small in the middle, so the model becomes
z = b + w₁ · x + w₂ · x²
With a negative w₂ the solid curve can peak in the middle and fall off on both sides. This is called a polynomial transform. Underneath it's still the same linear model trained with the same gradient descent, it just has one more column.
In Premier League w₂ comes out at -0.29. The model gives two even teams a 32% chance of a draw, and a two-goal mismatch 17%.