Our Focus
Linear in both Parameters and inputs
Potentially Problematic
Linear in both Parameters and inputs
Misspecification Error
The Optimization Problem
Feature Transformations
Model
Polynomial Transformations in Python
linear_model1 = smf.ols(f'{dep_var} ~ {rhs_var}', data=df)
results1 = linear_model1.fit()
linear_model3 = smf.ols(f'{dep_var} ~ {rhs_var} + I({rhs_var} **2) + I({rhs_var} **3) ', data=df)
results3 = linear_model3.fit()