Linear Algebra Meets Geometry Flashcards

1
Q

What is the definition of a point?

A

A location relative to the origin.

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

What is the definition of a Vector?

A

Points from one point to another; comprised of direction *norm.

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

What is the format of a vector?

A

The format of a Vector is the displacement needed to get to a point assuming the vector begins at the origin.

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

What is the Vector pointing FROM point (1, 2) TO point (-2, -1)?

A

(-3, -3)

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

How is vector addition performed?

A

Assumes same size, performed element wise.

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

Does order matter in Vector addition?

A

No, it is commutative.

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

What is the result of a Vector [v1, v2, v3, …, vk] multiplied by scalar s?

A

[sv1, sv2, …, s*vk]

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

What is the norm of a Vector [v1, v2, v3, …, vk]?

A

sqrt(v12 + v22 +… + vk**2)

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

What is the norm of a Vector?

A

It is the length or magnitude

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

What is a unit vector

A

A vector with a norm equal to 1

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

What is the shorthand for a vector u that is a unit vector?

A

û

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

Given a vector u, how do you transform it into a unit vector?

A

û = u / (||u||) or vector divided by its norm

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

Given vectors u and v, what is the dot product of both assuming they are the same size?

A

It is the sum of elementwise multiplication between the two vectors.

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

Given vectors u and v, what is the numpy method to find the dot product?

A

u.dot(v)

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

Given vectors u and v, what is the numpy operator to find the dot product?

A

u @ v

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

Given numpy arrays u and v, where:

u = [1, 0, 1]
v = [0, -1, 2]

what does list(zip(u, v)) return?

A

[(1, 0), (0, -1), (1, 2)]

17
Q

What is the dot product of a vector v with itself?

A

||v||**2

18
Q

What is the dot product of two unit vectors?

A

cos(theta), where theta is the angle between the two vectors

19
Q

What are orthogonal vectors?

A

Non-zero vectors for which the dot product is 0, meaning the angle between them is 90 degrees.

20
Q

Cosine Similarity: What is the similarity of two vectors when cos(theta) = 1?

A

They point in the same direction

21
Q

Cosine Similarity: What is the similarity of two vectors when cos(theta) = -1?

A

They point in opposite directions

22
Q

Cosine Similarity: What is the similarity of two vectors when cos(theta) = 0?

A

They are orthogonal.

23
Q

Why is cosine similarity better than dot product for comparing vectors?

A

The norm can muddy the water, and cosine only compares direction.

24
Q

What is a linear Classifier?

A
25
Q

What is a Hyperplane?

A

The equivalent of a line or plane in greater than 3 dimensions.

26
Q

What is the Hyperplane defined by the equation wTu = 0?

A
27
Q

What is the equation for a hyper plane?

A

wTu + b= 0

28
Q

Given hyperplane wTu + b= 0, what is w?

A

The fixed weight vector

29
Q

Given hyperplane wTu + b= 0, what is b?

A

b is a scalar called the bias.

30
Q

When the bias is 0, what point will a hyperplane always pass through?

A

The origin.