Simplifying Multiple Linear Regression — A Beginner’s Guide with Height, Weight and Sex

Dive into Data Science with a Practical Height-Weight Prediction Model considering Sex

Josep Ferrer
DataBites

--

Image by Author. ML Basics. Multiple Linear Regression Example.
Image by Author. ML Basics. Multiple Linear Regression Example.

Linear regression is one of the most fundamental algorithms in the machine learning universe, and it’s like the ABC of analytics.

Last week we learned how to train a Simple Linear Regression model with Height and Weight data. However, this relationship is highly affected by the specific human’s sex — Male or Female.

Today, let’s repeat the same procedure but with a Multiple Linear Regression model.

Think of it like making the best line through a scatter of stars in the sky, where each star represents a data point.

Today, we’re diving into real-world ML with one of the classic examples of linear dependency — height and weight but categorized by sex👇🏻

Understanding the Basics

Simple linear regression is the most basic ML algorithm. It’s where most of us start our journey into data modeling.

Just like tuning an instrument before a big concert, we begin our Machine Learning development by sourcing real-world data.

--

--

Josep Ferrer
DataBites

Crush into the world of data with DataBItes: databites.tech | Outstand using data. ML, SQL, Python and DataViz | 👉🏻Inquiries in rfeers@gmail.com