Demystifying Machine Learning: Simple Linear Regression

Raphael Schols
12 min readFeb 25, 2024
Source cottonbro studio

In today's landscape, machine learning techniques have become accessible through drag-and-drop software solutions and pre-built libraries within programming languages.

However, understanding the inner workings remains invaluable. Comprehension of what is happening under the hood empowers a practitioner to better understand the outcomes as well as recognize the limitations of certain techniques.

This article unravels one of the most elementary machine learning algorithms, namely linear regression.

It explores core concepts of supervised machine learning and the distinction between independent and dependent variables. Furthermore, we will delve into the mathematics. Finally, I’ll illustrate a simple example using Python to predict Ethereum’s price through the Bitcoin price.

Linear Regression

Linear regression is a statistical technique and a popular machine-learning algorithm, used for predictive analysis.

It is commonly the introductory technique taught in machine learning courses, given its simplicity. Moreover, it provides a proper foundation for machine concepts used in many other machine-learning algorithms.

--

--