Linear regression

It shows linear relationship between dependent variable (Y) and independent variable (X, explanatory variable(s)). When predicting, an observed data set (training) of values of Xs and Y will be used to fit on prediction, and additional data set (testing) of X will predict Y based on the fitted model.

  • Red – Observation
  • Blue – Relationship
  • Green – Result of deviation which shows data fitting between training and testing.