Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

download data csv from here : https://we.tl/t-vfij9A9Hl1 list of all numerical variables that contain missing data and print out the percentage of missing values per

download data csv from here : https://we.tl/t-vfij9A9Hl1

list of all numerical variables that contain missing data and print out the percentage of missing values per variable (use the training data).

Using the result of the previous step: For numerical variables with less than 15% of data missing, replace missing data with the mean of the variable, in other variables replace the missing data with the median of the variable in the training set (Apply the replacement to X_train and X_test and make sure it is based on the results you have obtained from the training set).

In the train and test sets, replace the values of variables 'YearBuilt', 'YearRemodAdd' and 'GarageYrBlt' with the time elapsed between them and the year in which the house was sold 'YrSold'. After that drop the 'YrSold' column

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

Step: 3

blur-text-image

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

Algebra And Trigonometry

Authors: Michael Sullivan

10th Edition

0321999290, 9780321999290

More Books

Students also viewed these Mathematics questions

Question

2. What do the others in the network want to achieve?

Answered: 1 week ago

Question

1. What do I want to achieve?

Answered: 1 week ago