subject

Predicting housing median prices. The file BostonHousing. xls contains information on over 500 census tracts in Boston, where for each tract 14 variable values 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 and classifying the median value (MEDV and CAT. MEDV) of a tract, given the information in the first 13 columns (input variables) in the column list. Partition the data into training (60%) and validation (40%) sets.
a) Perform a k-nearest neighbors prediction with all 13 predictors (the CAT. MEDV column is the outcome or decision variable), trying values of k from 1 to 10. Make sure to normalize the data (click "normalize input data"). What is the best k chosen? What does it mean?
b) Why is the validation data error overly optimistic compared to the error rate when applying this kNNpredictor to new data?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:30
In which phase does software coding and testing happen in the spiral model? the spiral model does not have a separate testing phase. both, software coding and testing occurs during the phase.
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag.e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
You know the right answer?
Predicting housing median prices. The file BostonHousing. xls contains information on over 500 cens...
Questions
question
Mathematics, 04.02.2021 20:20
question
Mathematics, 04.02.2021 20:20
question
Mathematics, 04.02.2021 20:20
Questions on the website: 13722360