Skip to content

alokverma18/Linear-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear Regression 📈

This is a project to implement Simple and Multiple Linear Regression on the same dataset that is related to Fuel Consumption and Carbon Dioxide Emission of Cars. Simple Linear Regression is a technique used to model the relationship between two numeric variables: an independent variable ( 'Fuel Consumption' in this project) and a dependent variable ( 'CO2 Emission' in this project), while in Multiple Linear Regression uses two or more independent variables. The goal is to find a linear equation that best represents the relationship between the variables so that we can make predictions based on new values of the independent variable(s).

Code Outline

  • Read Data file.
  • Explore the Data and select useful Features.
  • Plot the data to find better Relationships.
  • Split data into Training and Test sets.
  • Create and Fit the Model with selected Feature(s).
  • Plot the Output.
  • Evaluate the Performance of the Model.

Modules

  • scikit-learn
  • pandas
  • numpy
  • matplotlib

Contributing

Feel free to Contribute and Improve this by creating a Pull Request or an Issue.

Connect

portfolio linkedin twitter

Leave a 🌟 if it was Helpful!!

Thanks!