Machine Learning, Data Science, Programming, Python, Statistics.
want to estimate. #Loss function (1/2* len(x)) * sum([(theta* x[i] - y[i])**2 for i in range(len(x))]) #Change of theta theta - 0.0001 * (1/len(x)) * sum([x[i]*(theta*x[i] - y[i]) for i in range(len(x))]) We can do the gradient descent iteratively until we meet a minimum or until the loss function