Linear Regression Implementation In C++

A working code tutorial on how to implement Machine learning basics using C++

Ahmed Hashesh
Embedded House

--

Linear regression models the relation between an explanatory (independent) variable and a scalar response (dependent) variable by fitting a linear equation. For example, modeling individuals’ weights with their heights using a linear equation.

Photo by M. B. M. on Unsplash

This article is part of a series that address the implementation of Machine learning algorithms in C++, throughout this series, We will be implementing basic Machine learning algorithms using C++ features.

Before trying to model the relationship on the observed data, you should first determine whether there is a linear relation between them or not, usually, the scatter plot can be a helpful tool to view the relation between the data.

--

--

Ahmed Hashesh
Embedded House

A learner, Embedded SW Engineer, Machine learning and Autonomous Vehicles Enthusiast. Follow https://www.linkedin.com/in/ahmed-hashesh-01583784/