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

A sample of M&Ms
Picture by Creator

A deep dive into the causes, results, and cures for bias in regression fashions

This pack of peanut M&Ms weighs 45 grams.

A 45 gram pack of M&Ms
(Picture by Creator)

Mars Inc. has possible priced this pack to perfection. However how does Mars know what number of peanut M&Ms to stuff right into a 45g pack?

One may merely divide 45 by the imply weight of a peanut M&M and spherical to the closest integer (duh!).

However that raises one other query:

What’s the imply weight of a peanut M&M?

By the tip of this yr, a mind-numbing 150 billion M&Ms could have poured out of Mars’s factories. Much more will probably be produced subsequent yr and nonetheless extra within the years to come back. How will you ever know the imply weight of an M&M?

By the way in which, who in candy heaven is consuming all these M&Ms?!

At any fee, it’s actually inconceivable to calculate the imply weight of an M&M — the so-called inhabitants imply.

If we can not understand it, we should estimate it, and with estimates come errors.