Hello everyone, in this blog I will explain how to implement Linear Regression using python. This requires a pre-requisite which is Mathematical Implementation Of Linear Regression, which I have explained in one of my previous blogs, I have pasted the link below. Click here to know the mathematical implementation of Linear Regression Get to know the Mathematical implementation first, or else you might feel very difficult to understand this blog. So let's start, now I will show how to implement Linear Regression in python. NOTE: Lines highlighted with Yellow color are actually code. STEP 1: Import necessary libraries that are required for numerical operations, importing data frames and plotting the graph. import numpy as np import pandas as pd import matplotlib.pyplot as plt STEP 2: Read the data The data will be in the format of CSV, EXCEL there are still some, but I have mentioned only two . The data which I'm taking is tiny it has only two columns SAT and GPA , ...
Welcome to my blog! I'm Vishnu Das, sharing insights and discussions on the latest advancements in Generative AI and machine learning, simplified for everyone to understand.