top of page
Multiple Linear Regression (69 Pages)

Multiple Linear Regression (69 Pages)

$49.00Price

You can already ask an AI to write you a regression model. The problem is knowing why two correlated inputs can trade their coefficients back and forth until neither means anything, why an R² of 0.95 says nothing about whether the model will hold outside the data it was fitted on, or why one learning rate you didn't understand is quietly letting gradient descent diverge. None of that is visible from model.fit(). This is the course that gives you that judgment.


Five parts, one algorithm, no gaps:

  • Part 1 — Intro. Why a weighted sum of inputs fitted by least squares is the workhorse of engineering data, what each slope means when the inputs move together, and how the exact normal equations and step-by-step gradient descent arrive at the same plane. The intuition before the notation.

  • Part 2 — By Hand. A complete worked example: six machining jobs, two predictors, the exact answer solved from the normal equations, and four full iterations of gradient descent — predictions, residuals, gradients and updates, every number shown. Nothing waved away, nothing left "as an exercise." You watch the squared error fall from 10,080 toward its minimum of 24 and prove the method to yourself.

  • Part 3 — In Excel. The same example built out in a spreadsheet you can open and poke at, one block of rows per iteration, so you see every residual and gradient — and watch forty iterations converge on 5 + 3x1 + 2x2 as you change the learning rate or the data.

  • Part 4 — In Python. A clean, executable, verified reference implementation that checks its own answer against the normal equations, NumPy's least-squares solver and a brute-force grid — the known-good version you can check any other code against.

  • Part 5 — With AI. A tested prompt that directs an AI assistant to carry this same algorithm to your problem, plus the understanding to catch it when it's wrong.


By the end you won't just have working code. You'll have followed the algorithm from first principles through a hand calculation, a spreadsheet, and production Python — so when you point an AI at your own data, you'll know how to standardize the inputs and choose a learning rate on purpose, read correlated coefficients with the right skepticism, and tell when the answer is right.

    bottom of page