Math, Stats, Julia, Predictions, Linear Regression.
1:12) model = lm(@formula(y ~ x), data) # create the model pred = DataFrame(x = 0:0.01:12); # predict pr = predict(model, pred, interval = :prediction, level = 0.95) plot(xlabel="x", ylabel="y", legend=:bottomright, title = "Linear nodel") plot!(data.x, data.y, label="data", seriestype=:scatter)