Lecture 5 Flashcards

1
Q

What is the corresponding empirical risk for 0-1 loss?

A

R_0,1 (h) = 1/n En i=1 L_0,1 (y_i, h)

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

If y_1, y_2, …, y_n are all unique, what is R_0,1(y_1)?

A

n-1/n

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

How many parameters does does the simple linear regression model have?

A

two: w_0 and w_1

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

What is a feature?

A

an attribute of data - a piece of information

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

What is an example of a numerical feature?

A

maximum allowed speed, time of departure

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

What is an example of a categorical feature?

A

day of the week

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

What is an example of a boolean feature?

A

was there a car accident on the road?

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

What is another name for H?

A

the prediction rule

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

What is overfitting?

A

when we make mean squared error very small, even zero

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

What is our goal when making predictions?

A

make good predictions on data we haven’t seen

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

What is the syntax of quadratic regression?

A

H(x) = w_0 + w_1x_1 + w_2 x^2

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

What is the syntax of exponential regression?

A

H(x) = w_0e^w_1x

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

What is the syntax of constant regression?

A

H(x) = w_0

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

What does w_1 stand for?

A

slope

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

What does w_0 stand for?

A

intercept

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

What is a big problem with R_abs(h)?

A

it is not differentiable

17
Q

How do we rewrite R_sq as a function of w_0 and w_1?

A

R_sq(w_0, w_1) = 1/n En i=1 (y_i - (w_0 + w_1x_i))^2

18
Q

What does the graph of R_sq(w_0, w_1) look like?

A

it is a loss surface