While correlation measures how two variables co-move, regression allows us to predict the value of a response variable (Y) based on a predictor variable (X).
If we assume a linear relationship, we can fit a straight line that best predicts the outcomes.