Fit a line to the data

Each dot is a past month of ad spend and sales โ€” tilt and raise the line to fit them, then press Train and watch it settle on the best fit.
Sales revenue (โ‚น lakh) Ad spend (โ‚น lakh)
Errorโ€”
Slope0.35
Intercept29
Past months (data) Fitted line Error (residual) Prediction
0.35
29
Total error โ€”
Adds up how far every dot sits from the line (squared). Smaller means a better fit โ€” it hits zero-ish only when the line threads the data.
16
Spend โ‚น16 lakh โ†’ the line predicts revenue.
The model learned the line that best fits past data โ€” now it predicts new values.