Question: Question 6 Let's compare the actual parameters (00 and 91) from both of our models. As a quick reminder, for the 1st model, Log Sale


Question 6 Let's compare the actual parameters (00 and 91) from both of our models. As a quick reminder, for the 1st model, Log Sale Price = 00 + 61 - (Bedrooms) for the 2nd model, Log Sale Price = 00 + 91 - (Bedrooms) + 62 - (Log Building Square Feet) Fiun the following cell and compare the values of 61 from both models. Why does 01 change from positive to negative when we introduce an additional feature in our 2nd model? Run the following cell and compare the values of 01 from both models. Why does @1 change from positive to negative when we introduce an additional feature in our 2nd model? # Parameters from ist model theta0 ml = linear_model_ml . intercept_ thetal ml = linear_model_ml . coef_[0] # Parameters from 2nd model theta0 m2 = linear model_m2. intercept_ thetal_m2, theta2_m2 = linear_model_m2 .coef_ print ("Ist Model\ 00: {}\ 01: {}".format (theta0_ml, thetal_ml) ) print ( "2nd Model\ 00: {}\ 01: {}\ 02: {}".format (theta0_m2, thetal_m2, theta2_m2) ) 1st Model 00: 10 . 571725401040084 01: 0. 4969197463141442 2nd Model 00: 1. 9339633173823714 01: -0 . 030647249803554506 02: 1. 4170991378689641 Type your answer here, replacing this text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
