HW 3 solutioun Flashcards

1
Q

linear or non linear: perceptron

A

linear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

linear or non linear: multiplayer perceptron

A

nonlinear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

linear or non linear: decision tree

A

nonlinear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

linear or non linear: knn

A

nonlinear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

linear or non linear: logistic regression

A

linear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Decision trees can perform _ classification

A

multiclass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Decision trees can reduce overfitting by having a _ max depth

A

smaller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An ensemble of decision trees is called a

A

forest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The prediction is given by the _ node in a decision tree

A

leaf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Feature values are encoded in the _ of decision tree

A

edges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If there are N features, a decision tree can perfectly encode all permutations of
features with a depth of _

A

N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

If the decision boundary is linear, do we expect LDA or QDA to perform better on the
training set? On the test set?

A

We would expect QDA to perform better on the training set because its
increased flexibility will result in a closer fit. If the Bayes decision boundary is linear, we
expect LDA to perform better than QDA on the test set, as QDA could be subject to
overfitting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If the decision boundary is non-linear, do we expect LDA or QDA to perform better
on the training set? On the test set?

A

If the Bayes decision boundary is non-linear, we expect QDA to perform better
on both the training and test sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In general, as the sample size n increases, do we expect the test prediction
accuracy of QDA relative to LDA to improve, decline, or be unchanged? Why?

A

We expect the test prediction accuracy of QDA relative to LDA to improve as n
gets bigger. In general, as the the sample size increases, a more flexible method will
yield a better fit as the variance is offset by the larger sample size.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: Even if the Bayes decision boundary for a given problem is linear, we
will probably achieve a superior test error rate using QDA rather than LDA because
QDA is flexible enough to model a linear decision boundary. Justify your answer.

A

Solution: False. With fewer sample points, the variance from using a more flexible
method, such as QDA, would likely result in overfitting, yielding a higher test error rate
than LDA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Q5 For parts each of the following, indicate whether each method is more or less
flexible than least squares (plain linear regression). Describe how each method’s trade-
off between bias and variance impacts its prediction accuracy. Justify your answers.

A

Solution: Puts a budget constraint on least squares. It is therefore less flexible. The
lasso will have improved prediction accuracy when its increase in bias is less than its
decrease in variance.