Skip to main content

ML from Scratch — Episode 1: Linear Regression

Updated 1 min readMarkdown

Linear Regression from Scratch

Why I built it from scratch

I knew the math — or thought I did. I could write the formulas, follow the derivations, tick the boxes. But I couldn't see it. Writing the logic myself, from the gradient down to the weight update, was the first time the math stopped being symbolic and started meaning something.

What surprised me

That it actually works. Not in a "the test passed" way — in a deeper way. The same equation I derived on paper is quietly running inside systems that predict what you buy, what you watch, what your body might do next. It's not bookish at all. It's everywhere.

Who this is for

If you're early in your ML journey — you've done the courses, you understand the theory on paper, but something still feels hollow — this is for you. Not a tutorial. Just one person showing their work.

About the author

  • A learner building ML algorithms from scratch to actually understand what's happening under the hood. Writing about the math, the mistakes, and the process and not just the results.

No comments yet. Be the first to comment.