Question: python-please help asap get_ols_parameters: This function takes a Series, fits a line to it, and returns the slope, intercept, R?, and the p-value in a
python-please help asap
get_ols_parameters: This function takes a Series, fits a line to it, and returns the slope, intercept, R?, and the p-value in a list. If you stored your return value from model.fit() like this: results = model.fit () Then the p-value you want to return is in results.pvalues['x1']. The rest of the parameters can be found in the Hw6 notebook. get_ols_parameters: This function takes a Series, fits a line to it, and returns the slope, intercept, R?, and the p-value in a list. If you stored your return value from model.fit() like this: results = model.fit () Then the p-value you want to return is in results.pvalues['x1']. The rest of the parameters can be found in the Hw6 notebook
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
