A Simple program that uses Linear regression to predict the predictor variable.
The program is pretty self-explanatory, there are two ways to predict:
- Using the values in the current dataset values
- Pass the values in the test list, which is by the way commented out.
The output gives the predicted values and the RMS Error values, as well as a plot to show the regression line and the scatterplot of the prior values.
I did not use Pandas, so it will be a little slow and can give exceptions for a large amount of data.
- Modules used:
- matplotlib
- csv
- math
- operator
TQ!!