Simple linear regression is a commonly used type of predictive analysis. The idea is to examine (1) does a set of predictor variables do a good job in predicting an outcome? (2) Which variables in particular are significant predictors of the outcome variable, and how do they impact the outcome?
library(ggplot2) library(plotly)