Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the data set In this assignment vou are going to predict the prices of 5 new houses (a4 test.csv - the testing dataset) built in

image text in transcribed

the data set

image text in transcribed

In this assignment vou are going to predict the prices of 5 new houses (a4 test.csv - the testing dataset) built in Santa Maria-Orcutt. As a training dataset, you are given (a4 train.csv) the sale prices of 30 similar houses in Santa Maria-Orcutt. You are required to build a linear regression model based on the dataset provided to you. Use this linear regression model to predict/estimate the prices for the 5 new houses. You are free to choose as many IVs as possible for a good prediction. Print the coefficients (same as slopes), ? (the intercept), ?'s (the slopes), R2 and the predicted prices as: Coefficient Area Age Bedrooms Beta O= [xxxx] Beta s= [xxxx , predictedPrices[xx , xxxx) XxXx, R-squared-0.83423 To test vour code vour R value should be close to the one listed above To read different columns from a CSV file: dataset-pandas. read csva4 tran.csv) Xs - dataset[[ 'Bedrooms, 'Age', 'Area' ]] In this assignment vou are going to predict the prices of 5 new houses (a4 test.csv - the testing dataset) built in Santa Maria-Orcutt. As a training dataset, you are given (a4 train.csv) the sale prices of 30 similar houses in Santa Maria-Orcutt. You are required to build a linear regression model based on the dataset provided to you. Use this linear regression model to predict/estimate the prices for the 5 new houses. You are free to choose as many IVs as possible for a good prediction. Print the coefficients (same as slopes), ? (the intercept), ?'s (the slopes), R2 and the predicted prices as: Coefficient Area Age Bedrooms Beta O= [xxxx] Beta s= [xxxx , predictedPrices[xx , xxxx) XxXx, R-squared-0.83423 To test vour code vour R value should be close to the one listed above To read different columns from a CSV file: dataset-pandas. read csva4 tran.csv) Xs - dataset[[ 'Bedrooms, 'Age', 'Area' ]]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions