You already know how a straight line can describe a relationship between numbers. But what if your data includes categories, curves, or situations where two factors team up? In this chapter, we’ll add new tools to regression that handle these real‑world twists — and we’ll learn how to build models that predict well on fresh data, not just the data we already have.