How Biased is Your Regression Model? | by Sachin Date | Sep, 2024


A sample of M&Ms
Image by Author

A deep dive into the causes, effects, and remedies for bias in regression models

This pack of peanut M&Ms weighs 45 grams.

A 45 gram pack of M&Ms
(Image by Author)

Mars Inc. has likely priced this pack to perfection. But how does Mars know how many peanut M&Ms to stuff into a 45g pack?

One could simply divide 45 by the mean weight of a peanut M&M and round to the nearest integer (duh!).

But that raises another question:

What is the mean weight of a peanut M&M?

By the end of this year, a mind-numbing 150 billion M&Ms will have poured out of Mars’s factories. Even more will be produced next year and still more in the years to come. How will you ever know the mean weight of an M&M?

By the way, who in sweet heaven is eating all those M&Ms?!

At any rate, it’s literally impossible to calculate the mean weight of an M&M — the so-called population mean.

If we cannot know it, we must estimate it, and with estimates come errors.

Recent Articles

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here