What actually is a linear model?
Every time you check how much data you've used on your phone plan , a flat monthly fee plus a charge per GB , you're already thinking in linear models. That's the whole idea: one number changes at a steady, predictable rate relative to another, and you can write that relationship as an equation.
The standard form is , where is your output variable, is your input variable, is the gradient (rate of change), and is the y-intercept (starting value when ). The gradient tells you how much shifts each time goes up by 1. The intercept is what you'd have before does anything at all.
Linear Model: A relationship where the output variable changes by a fixed amount for every equal step in the input variable, expressed as .
Take the equation , where is taxi cost in dollars and is distance in kilometres. The is the flat fee just for getting in , you owe it before the car moves an inch. The means every extra kilometre adds exactly $2 to the bill. That's a linear model doing real work.
Just because an equation fits the numbers doesn't mean it fits reality. A model might spit out a negative cost or a negative distance , mathematically fine, practically nonsense. Always ask whether your answer could actually exist in the real world.
8 more sections in this topic
Pick this up in your Library: it holds the whole topic, notes, cheatsheet and questions.