0% found this document useful (0 votes)
365 views3 pages

Week 7 Online Quiz (Chapter 7) - Attempt Review PDF

This document is a summary of a student's completion of an online quiz for their ISDS 574-01 course in Fall 2020. The quiz consisted of 8 multiple choice questions covering topics related to k-nearest neighbors (kNN) classification models, including standardizing predictors, assigning class labels based on majority votes of neighbors, different weighting schemes, and evaluating kNN model performance on validation data. The student answered all questions correctly and received full points.

Uploaded by

Shaina Lolin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
365 views3 pages

Week 7 Online Quiz (Chapter 7) - Attempt Review PDF

This document is a summary of a student's completion of an online quiz for their ISDS 574-01 course in Fall 2020. The quiz consisted of 8 multiple choice questions covering topics related to k-nearest neighbors (kNN) classification models, including standardizing predictors, assigning class labels based on majority votes of neighbors, different weighting schemes, and evaluating kNN model performance on validation data. The student answered all questions correctly and received full points.

Uploaded by

Shaina Lolin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Dashboard / My courses / Fall 2020 ISDS 574-01 24737 / General / Week 7 online Quiz (Chapter 7)

Started on Friday, October 9, 2020, 5:59 PM


State Finished
Completed on Friday, October 9, 2020, 6:24 PM
Time taken 25 mins 17 secs
Points 8.00/8.00
Grade 10.00 out of 10.00 (100%)

Question 1 If predictors are very different in scales, should we standardize predictors before running kNN?
Complete

1.00 points out Select one:


of 1.00
a. Yes

b. No

The correct answer is: Yes

Question 2 Consider a kNN model with k=7. For a new observation, there are 5 nearest neighbors in class 1 and 2 nearest neighbors
Complete in class 0. With a cutoff=0.75, which class should we assign this observation to?
1.00 points out
of 1.00 Select one:
a. Class 0

b. Class 1

The correct answer is: Class 0

Question 3 Which of the following weights are reasonable for kNN of prediction? Denote by di the distance of the i-th nearest
Complete neighbor.
1.00 points out
of 1.00 Select one:
a. di / (d1 + d2 + … + dk)

b. 1/k

c. None of the other three

d. (1/di) / (1/d1 + 1/d2 + … + 1/dk)

The correct answer is: (1/di) / (1/d1 + 1/d2 + … + 1/dk)


Question 4 Consider the classification problem below. In kNN with k=3, what is the probability that the new observation belongs to
Complete class A?
1.00 points out
of 1.00

Select one:
a. 1

b. 2/3

c. 0

d. 1/3

The correct answer is: 1/3

Question 5 Using the data set below, write up a R function to calculate the Euclidean distance and calculate the Euclidean distance
Complete between the 3rd and the 7th observation. Do not include the outcome “Price” in calculation. Round it to two decimal
1.00 points out places.
of 1.00
https://www.dropbox.com/s/l507v6mke69e562/toyota_cleaned.csv?dl=0

Select one:
a. 9552.03

b. 197.09

c. 197.10

d. 9552.02

The correct answer is: 197.09

Question 6 The next three questions are based on the analysis of the data set below. Rescale (Standardize) the predictors. Consider
Complete the training data set as the first 18 observations and the rest as validation. For the grid of k values, {1, 3, 5, …, 17}, select
1.00 points out the one that gives you lowest validation error rate.
of 1.00
https://www.dropbox.com/s/bgezdl735xyeg0w/RidingMowers.csv?dl=0

Select one:
a. 15

b. 3

c. 1

d. 9

The correct answer is: 3


Question 7 What is the minimum error rate?
Complete

1.00 points out Select one:


of 1.00
a. 0.667

b. 0.333

c. 0.167

d. 0

The correct answer is: 0

Question 8 Rerun knn with the selected k value. What is the Specificity on the validation data?
Complete

1.00 points out Select one:


of 1.00
a. 0.5

b. 1

c. 0

d. 0.667

The correct answer is: 1

◄ Week 6 online Quiz (Chapter 5) Jump to... Week 8 online Quiz (Chapter 9) ►

You might also like