Machine Learning, Artificial Intelligence, Python, Statistics, Mathematics.
else did this for you! Let’s use the optimum formula for our specific case: X=pd.DataFrame() X['$x^0$']=pol(0) X['$x^1$']=pol(1) X['$x^2$']=pol(2) X['$x^3$']=pol(3) reg=LinearRegression().fit(X,t(x)) pred_four=reg.predict(X) pred_four_data=pd.DataFrame() pred_four_data['$x$']=x