subject
Engineering, 07.04.2020 22:02 russboys3

Predicting housing median prices. The file BostonHousing. xls contains information on over 500 census tracts in Boston, where for each tract 14 variables are recorded. The last column (CAT. MEDV) was derived from MEDV, such that it obtains the value 1 if MEDV>30 and 0 otherwise. Consider the goal of predicting the median value(MEDV) of a tract, given the information in the first 13 columns.

a. Perform a k-NN prediction with all 13 predictors (ignore the CAT. MEDV column), trying values of k from 1 to 5. Make sure to normalize the data (click "normalize input data"). What is the best k chosen? What does it mean?

b. Predict the MEDV for a tract with the following information, using the best k:

c. Why is the error of the training data zero?

d. Why is the validation data error overly optimistic compared to the error rate when applying this k-NN predictor to new data?

e. If the purpose is to predict MEDV for several thousands of new tracts, what would be the disadvantage of using k-NN prediction? List the operations that the algorithm goes through in order to produce each prediction.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 19:20
Apiping systems consists of 6 m of 6-std type k and 12 m of 4-std type k, both drawn copper tubing. the system conveys ethylene glycol at a rate of 0.013 m3/s. the pressure drop across the system is to be calculated. there are two 90° elbows in the 6-in pipe, a reduction from the 6-in pipe to the 4-in pipe and four 90° elbows in the 4-in pipe. all fittings are soldered (same as flanged) and regular. the inlet and outlet of the system are at the same height.
Answers: 1
question
Engineering, 04.07.2019 19:20
Amass-spring-viscous damper system of mass 3 kg has a frequency of 100 rad/s and is critically damped. its initial conditions are x(0)-3 mm and (0)-2.3 m/s. does the system overshoot its equilibrium position? prove your answer
Answers: 1
question
Engineering, 06.07.2019 02:30
Precipitation hardening can be achieved in many light alloys by a three-step heat treatment. what is carried out and what is the purpose at each step? why is such a treatment necessary based on the nucleation and growth theory of phase transformation. compare this treatment with tempering martensite for carbon steels (similarities and differences).
Answers: 1
question
Engineering, 06.07.2019 04:10
Steam enters a converging nozzle at 3.0 mpa and 500°c with a negligible velocity, and it exits at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: is isentropic (a) (b) has an efficiency of 94 percent
Answers: 1
You know the right answer?
Predicting housing median prices. The file BostonHousing. xls contains information on over 500 censu...
Questions
question
Mathematics, 10.05.2021 02:50
question
Mathematics, 10.05.2021 02:50
question
Mathematics, 10.05.2021 02:50
question
Mathematics, 10.05.2021 02:50
question
Mathematics, 10.05.2021 02:50
Questions on the website: 13722360