__STYLES__
Simple linear regression
Simple linear regression is a regression model that estimates the relationship between one independent variable and one dependent variable using a straight line.
Dataset
The dataset used for this project contains two columns: "Hours" (independent variable) and "Scores" (dependent variable). You can access the dataset from here: http://bit.ly/w-data
Steps
Import libraries
Import dataset
Plotting the distribution of scores
From the graph above, we can clearly see that there is a positive linear relation between the number of hours studied and percentage of score.
Preparing the data
Training the Algorithm
Making Predictions
No of Hours = [[9.25]]
Predicted Score = 93.69173248737539
Evaluating the model
Mean Absolute Error: 4.183859899002982