Skip to content
Go back

80/20 Of The Week: Basic MLs (Linear Regression and GBDT)

Edit page

Here is the 80/20 Of The Week 🗣️ - Basic MLs (Linear Regression and GBDT)

These two models are basically the bread-and-butter of prediction and are used for prices, demand, risk scoring, and all types of forecasting.

In as basic terms as possible…

1) Linear Regression (LR) - one main rule

LR tries to learn one simple rule that maps your inputs to an output.

Say you want to predict requests per second that come to the app tomorrow based on: hour of day, day of week… LR learns something like:

So it gives one clean answer: predicted RPS.

prediction = w₁·x₁ + w₂·x₂ + … + bias (dw about this too much tho)

So it’s answering: “If I increase feature X a bit, how much does the prediction move?”

2) GBDT - many small rules that stack into a strong brain

GBDT doesn’t use one rule. It builds many tiny rules.

Here, a decision tree is a small “choose-your-path” chart that makes a prediction by asking a few simple questions in order… some of those could be:

Then it combines these little rules into one final prediction. Each new tree focuses on the mistakes of the current model, so over time it becomes a strong predictor.

That’s why it’s called “boosting”: you’re boosting performance by iteratively correcting errors.

3) Strengths and weaknesses

a) When LR is a great choice:

LR weaknesses:

b) When GBDT is a great choice:

GBDT weaknesses:

Here’s another drawio image for this 🙃

ML LR GBDT


Edit page
Share this post on:

Previous Post
80/20 Of The Week: Docker Compose and Kubernetes
Next Post
80/20 Of The Week: Scalable Distributed Systems