Julia 101 – 0.1. Least-Square fitting

year = Float64[0] for i in 1:6 push!(year, i) end year = year .+ 2013 7-element Array{Float64,1}: 2013.0 2014.0 2015.0 2016.0 2017.0 2018.0 2019.0 year_x = collect(Float64, 2013:1:2020); h = [2, 2, 2, 3, 4, 6, 8, 12]; using Plots scatter(year_x, h, xlab = “year”, ylab = “h-index”, xlim = [2012, 2023], ylim = [0,15],…