Math, Stats, Julia, Predictions, Linear Regression.
2. Create a regression model: model = fit(LinearModel, @formula(Y ~ x), df) Image by author residuals(model) Image by author Above we have the residuals for the 12 data points. This is the model with predictions out to x = 24 x_new = [13, 14, 15,16,17,18,19,20,21,22,23,24] predictions =