Posts

Beginners Guide to Linear Regression in Python

  Hello everyone! Welcome to this step-by-step tutorial where we’ll dive into the world of linear regression using the mpg dataset in the seaborn library. Note that this is a beginner level tutorial suitable for students and aspiring data science professionals.  I also started my data science journey with multiple linear regression back in 2008 - not in Python, but in Excel. Its a different thing that we were not aware of the term 'data science' back then. Anyways, lets get into the task at hand.  Understanding the Dataset The mpg dataset contains information about various car models and their fuel efficiency. It’s often used for tasks such as regression analysis to predict fuel efficiency based on the other attributes. The dataset contains the following attributes or columns: 1. mpg : Miles per gallon. This is the target variable that indicates the fuel efficiency of the car. 2. cylinders: The number of cylinders in the car’s engine. It can be thought of as an i...
Recent posts