Reference no: EM133290710
Assignment:
Can you please answer this with calculations.
Euclidean distance question:
Given the following dataset:
Square Footage (in thousands) School Rating Home Type Sale Price
1 9 Condo High
2 6 Condo Low
3 7 Single Family House Low
4 9 Single Family House High
4 10 Single Family House High
If we would like to use k-nn model (k=3) to make prediction for the sale price (low/ high) of a new single family house with 4000 square footage, and school rating at 8, how can we do that?
Describe the process of your prediction including the distance calculation. (To make the problem simplified, no need to consider normalization)
Note: You need to actually do the calculations of distances and based on the calculation result, talk about whether the new house's price should be high/ low
For grading:
1. The calculation of Euclidean distances
2. What is the prediction? Describe how the model should make a prediction.