Optimization Algorithms, Optimization Techniques, Machine Learning, Deep Learning, Convex Optimization.
OLS [Image by author] Let us calculate the same using Python code: import numpy as np # define your X and Y as NumPy Arrays X = np.array([1,3,5]) Y = np.array([4.8,12.4,15.5]) # np.polyfit function does a 1-dimensional Polynomial fitting # and the np.poly1d function converts the polynomial