Linear Regression: The Mathematics you should know!

What is Linear Regression?

Example 1:

y = 2x + 1

In machine learning, we always denote y as a variable that is to be predicted.

Example 2:

y = mx + c … Eqn 1.1

where ‘m’ is the SLOPE and ‘c’ is the Y-intercept. Every line has some slope and it is calculated as the ratio of vertical change to the horizontal change and it is often quoted sometimes as “rise over run” (in layman language, How steep the line is it’s slope) and Y-intercept is the point where our line and Y-axis intersects.

>>>Slope: [[1.8]]
>>>Intercept: [32.]

Therefore, we can write Equation 1.1 as,

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pritish Mishra

Pritish Mishra

5 Followers

I Love Programming and know languages like Python,Java and Go.I learn AI and ML and has made many projects in it.I am also a YouTuber makes video on AI Projects