Lecture 8 Flashcards

1
Q

What is the equation for the correlation coefficient?

A

r = 1/n En i=1 (x_i - xbar / σ_x) * (y_i - ybar / σ_y)

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

What is R_sq(w_0, w_1)?

A

σ_y^2(1 - r^2)

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

What do we often use to compare the performances of different models in machine learning?

A

the mean squared error and r^2

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

What is the equivalent of finding models that minimize the mean squared error?

A

finding models that maximize r^2

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

What is the simple linear regression model similar to?

A

the constant model except it is more flexible

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

What will help us to use linear regression but with multiple features and nonlinearity?

A

matrices and vectors

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

If two matrices A and B, what is not true?

A

AB ≠ BA

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

What is a vector in R^n?

A

an ordered collection of n numbers

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

How do we usually write vectors?

A

as columns

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

How do we usually write vectors?

A

lower-case letters with an arrow on top

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

What is another way of writing a vector?

A

[1, 2, 3 , 4]^T

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

If a vector v has four components, how do we write that?

A

varrow E R^4

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

What is another way to say the length of a vector?

A

the L_2 norm

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

What is the L_2 norm of a vector v?

A

||v|| = sqrt(v_1^2 + v_2^2 + … + v_n^2)

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

What is a vector sometimes described as?

A

an object with a magnitude/length and direction

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

How do we write the dot product of two vectors u and v in R^n?

A

u * v = En i=1 u_iv_i = u_1v_1 + u_2v_2 + … + u_nv_n

17
Q

What is the result of the dot product of two vectors?

A

a scalar

18
Q

What is a scalar?

A

a single number

19
Q

What is the geometric definition of the dot product?

A

u*v = ||u||||v|| cos θ, where θ is the angle between u and v

20
Q

What is the equation for finding the angle θ between two vectors?

A

cos θ = u * v / ||u||||v||