Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1. (15p) Recall the example that we have solved in the lecture to find the price of a house. We will do the same thing

image text in transcribed

Q1. (15p) Recall the example that we have solved in the lecture to find the price of a house. We will do the same thing here, in the exam. I have a dataset of 10 houses given in the following Each observation has size as its feature and the output is the price. For example the first house's size is 45m2 and its price is 96TL. I will use two models to make predictions. KNN with k=1 and KNN with k=2. We will use ordinary KNN, i.e., we will take arithmetic mean and use Euclidian distances. a. (5p) What is the price of a house with size 60m2 if we use a KNN model with k=2. b. (5p) What is the price of a house with size 60m2 if we use a KNN model with k=3. c. (5p) We want to see what happens to the model with the choice of k. Please plot the train error and the test error versus the value

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions