Simple Linear Regression in Python
- Joseph S.
- Jan 2, 2022
- 1 min read
Updated: Feb 28, 2022
Learn about simple linear regression and how we can use it to predict an employee's salary based on time.

Data preprocessing
Before beginning going into simple linear regression, it's recommended to start with data preprocessing to clean and organize your data. Please check the data preprocessing file on the dataset section of the website.
Introduction
Regression models for both linear and non-linear are used to predict an outcome of real values like happiness. So, if your independent variable is income, then you are forecasting future values. Your dependent variable (happiness) is being measured and affected during the experiment.
Comments