Statistics, Regression, Data Science, Machine Learning, AI.
the β₁ in the β vector. # Adding a Constant term for the Intercept X_train = sm.add_constant(X_train) X_test = sm.add_constant(X_test) X_train # Visualizing X dataframe with the constant Now we may fit the model to the data and draw some conclusions by looking at the summary. # Fitting model model