R: Simple Linear Regression
Linear Regression is a very popular prediction method and most likely the first predictive algorithm most be people learn. To put it simply, in linear regression you try to place a line of best fit through a data set and then use that line to predict new data points. Now our data file contains a listing of Years a person has worked for company A and their Salary. With a 2 variable data set, often it is quickest just to graph the data to check for a possible linear relationship. Looking at the plot, there definitely appears to be a linear relationship.
Jun-9-2016, 06:36:14 GMT
- Technology: