import numpy as np import pandas as pd import…
Question Answered step-by-step import numpy as np import pandas as pd import… Image transcription text1.9 LAB: Making predictions using SLR models The kc_house_data dataset contains information on house saleprices in King County, Washington from May 2014 and May 2015. The columns include sale price] number ofbedrooms, and square footage of living space. Write a program using the olsO function that creati… Show more… Show moreimport numpy as npimport pandas as pdimport statsmodels.formula.api as smshouse = # load the file kc_house_data.csvmodel = # fit a linear model using the sms.ols function and the house dataframearea = float(input())prediction = # use the model.predict function to find the predicted value for price using # the area value for the predictorprint(prediction)PLEASE PROVIDE THE CODE IN PYTHON AND PLEASE MAKE SURE THE OUTPUT MATCHES THE SNAPSHOT’S OUTPUT. Computer Science Engineering & Technology Python Programming CIS 461 Share QuestionEmailCopy link Comments (0)


