Linear Algebra Theory Flashcards

1
Q

What is a vector - mathematical interpretation

A

A vector is an ordered list of numbers

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

Number of elements in a vector is called

A

Dimensionality

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

What is a vector - geometric interpretation

A

A vector is a straight line with some length and some direction.

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

Vector and coordinate position overlap at

A

Standard position

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

What are the rules for vector addition or subtraction

A

The vectors to be added or subtracted must have same dimensions

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

What scales a vector up and down?

A

Scalar

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

Scalar is denoted by

A

greek letters - lambda, beta, alpha

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

Scalar stretches a vector when

A

the scalar value is greater than 1

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

Scalar flips a vector when

A

the scalar value is less than 1

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

when scalar value is 0

A

The vector is at origin

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

When a scalar is multiplied to a vector - it doesn’t change two things __________ and isn’t that notion contrary to what we know about when the scalar is negative?

A
  1. Direction and angle of the vector.
  2. Usually it is assumed the vector lies on a 1-D subspace that stretches in infinite direction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the several ways of performing vector-vector multiplication?

A
  1. Hadamard multiplication
  2. Dot product
  3. Cross product
  4. Outer product
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is dot product?

A

Dot product provides a single number that provides the relationship information between two vectors.

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

Dot product is also called as

A

Scalar product

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

Mathematical notations for dot product

A

alpha = <a,b> = aTb = summation i = 1 to n ai*bi

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

Rules to perform dot product on two vectors

A

Both the vectors must have same dimensions.

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

What are the properties to which dot product is true

A
  1. Commutative
  2. Distributive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What are the operations in which the dimensionality of the two vectors must be equal

A
  1. Vector addition
  2. Vector subtraction
  3. Vector dot product
  4. Hadamard multiplication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is commutative property in terms dot product?

A

a.b = b.a

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

What is distributive property in terms of dot product

A

a.(b+c) = (a.b)+(a.c)

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

For which properties is the dot product not true?

A

Associative property

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

What is associative property in terms of dot product?

A

a.(b.c) != (a.b).c

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

Definition of vector norm

A

Square root of the sum of each component squared.

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

Formula for vector norm

A

sqrt(vT. V)

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

What are the other names for vector norm

A

Vector length or vector magnitude.

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

Dot product - geometric interpretation

A

alpha = |a|.|b|.cos(theta(a,b))

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

How to get the angle between two vectors

A

theta = acos((a.b) or alpha/|a|.|b|)

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

Cosine is bound by

A

-1 and 1

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

If theta < 90 degrees then alpha or dot product is

A

> 90 degrees

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

If theta > 90 then alpha or dot product is

A

< 90 degrees

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

If theta is 90 degrees then alpha is ____________ and that vector is also called as _____________

A

0; orthogonal vector

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

If theta is 0 degrees then alpha is

A

|a||b|

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

If theta is 180 degrees then alpha is

A
  • |a||b|
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What is cauchy schwarz inequality?

A

the absolute value of the dot product between two vectors is less than or equal to the product of magnitudes of the two vectors

|aTb| <= ||a||*||b||

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

Is the dot product sign affected by scalar multiplication

A

Yes

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

Hadamard multiplication is also called as

A

Element wise multiplication

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

What is the rule for Hadamard or element-wise multiplication

A

Both the vectors must be of same dimension

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

Formula for outer product

A

outer(v,w) = v.wT

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

What is the rule for outer product

A

The vectors don’t have to be of same dimension.

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

The output of outer product is

A

matrix

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

What is the rule for vector cross product

A

Vector cross product can only be performed on 2 3-Dimensional vectors.

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

What is the output of vector product - dimensionality

A

3D Vector

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

Formula for cross product

A

[1;2;3] cross [a;b;c] = [2c-3b; 3a-1c; 1b-2a]

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

What does cross product represent

A

If two vectors v1 and v2 are used to represent a plane then the output vector v3 represent a vector perpendicular to that plane. (do fact check)

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

Complex numbers have angle with respect to

A

Positive real axis

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

Complex number format

A

a + bi

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

i^2 =

A

-1

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

i in complex number value is

A

sqrt(-1)

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

Complex numbers have ________ or _________ away from the origin of the complex plane

A

distance or magnitude

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

Hermitian transpose is also called as

A

Conjugate transpose

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

Hermitian transpose is performed for ________________

A

Complex vectors and complex matrices

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

The complex conjugate of a+bi

A

a-bi

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

Dot product between two complex vectors - v,w

A

vH. w or v*.W

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

Dot product between two complex vectors - v,w

A

vH. w or v*.W

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

What is a unit vector

A

A vector of length 1 is called unit vector.

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

How to normalize a vector?

A

mu = 1/norm(v)

For normalization
mu.v = normalized vector

norm(normalized vector) = 1

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

The magnitude of the dot product is _____ value of the dot product

A

absolute value of the dot product

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

What is dimensions

A

Dimension is the number of elements

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

What are fields

A

Field is a set of numbers on which addition, subtraction, multiplication and division are valid operations.

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

Example of fields -

A

Real numbers, complex numbers

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

Example of non-fields

A

Integers/counting numbers.

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

What is a subspace

A

A subspace is defined as the set of all vectors that can be created by taking the linear combination of some vector or set of vectors.

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

Linear combination is

A
  1. The multiplication of a vector by a scalar
  2. Addition of two vectors.
64
Q

The scalar in scalar-vector multiplication can be ______

A

any real valued number

65
Q

What is the formal definition for subspace

A

A vector subspace must be closed under vector addition, scalar multiplication and must contain zero vector.

66
Q

Different vector from _____________ planes

A

Different

67
Q

All the planes formed from different vectors converge at

A

origin

68
Q

Ambient 3D space contains

A
  1. 0D Subspace
  2. infinite 1D subspace
  3. Infinite 2D subspace
  4. One 3D subspace
69
Q

Why does having 2 vectors doesn’t mean they form a plane

A

The formation of the plane depends on if one vector is dependent or independent on the other vector

70
Q

What is a subset?

A

Subset is a set of some points that satisfies some conditions.

71
Q

What are the conditions for a subset?

A
  1. Doesn’t need to include origin
  2. Doesn’t need to be closed
  3. Can have boundaries.
72
Q

What is span?

A

A region of space that you can reach by the linear combination of given vectors. The vectors ‘span’ that subspace.

73
Q

What is thumb rule for dependent vectors

A

Any set of M > N vectors in RN - dependent vectors.

74
Q

What is the thumb rule for independent vectors

A

Any set of M <= N vectors in RN - ‘COULD BE’ independent vectors.

75
Q

Rules for basis

A
  1. Mutually orthogonal - 90 degrees
  2. Basis must be independent vectors
  3. We can have different basis
76
Q

Matrix terminology

A
  1. Diagonal elements
  2. Off diagonal elements
77
Q

Rectangular matrices or

A

Non-square matrices

78
Q

Matrix size - format

A

rows X columns

79
Q

What is a symmetric matrix

A

Square Matrix elements are mirrored across the diagonal.

80
Q

Square matrices

A
  1. Symmetric matrix,
  2. Skew symmetric matrix
  3. Identity matrix
81
Q

What is a skew symmetric matrix

A

Square Matrix elements are mirrored across the diagonal with flipped signs - with 0’s as its diagonal.

82
Q

What values fit for a skew-symmetrical matrix diagonal?

A

0’s

83
Q

Identity matrix

A

A square matrix with 1’s as diagonal elements and 0’s as off-diagonal elements.

84
Q

Identity matrix is also a

A

Symmetric matrix

85
Q

Multiplication property of identity matrix

A

A * I = A

86
Q

Zero matrix

A

A matrix with all diagonal and off diagonal elements as 0

87
Q

Diagonal matrix

A

A square or non-square matrix with zero or non-zero diagonal elements and zero off-diagonal elements is called as diagonal matrix

88
Q

Relationship between diagonal matrix and identity matrix

A

D.I = D

89
Q

Types of triangular matrices

A
  1. Upper triangular matrix
  2. Lower triangular matrix
90
Q

What is upper triangular matrix?

A
  1. Elements above the diagonal can be zero or non-zero
  2. Elements below the diagonal are all zeros.
91
Q

What is Lower triangular matrix?

A
  1. Elements below the diagonal can be zero or non-zero.
  2. Elements above the diagonal must be all zeros
92
Q

What is the rule for concatenating matrices

A

The two concatenating matrices must have same number of rows.

93
Q

Rule for matrix addition/subtraction

A

Must have same dimensions

94
Q

Matrix addition/subtraction properties

A
  1. Commutative - A+B = B+A
  2. Associative - (A+B)+C = A+(B+C)
95
Q

What is shifting a matrix?

A

Adding a scaled version of identity matrix

96
Q

Properties of matrix shifting

A
  1. Doesn’t change off-diagonal elements.
  2. Changes diagonal elements
  3. Inflates a matrix
97
Q

What is a linear operation?

A

Closed under matrix addition and scalar-matrix multiplication.

98
Q

Is matrix-scalar multiplication a linear operation?

A

Yes
1. l(A+B)= lA + lB
2. la - al??

99
Q

Transpose-Transpose of a matrix A

A

A.T.T = A

100
Q

Transpose op vs symmetric matrix

A

For a symmetric matrix A - A.T = A

101
Q

Transpose op vs skew-symmetric matrix

A

For a skew symmetric matrix A- A.T = -A

102
Q

Hermitian transpose

A

Swaps signs for complex numbers

103
Q

Matrix diagonal operation

A

Extracts the diagonal elements into a vector

104
Q

Trace of a matrix

A

Sum of the diagonal elements of a matrix

105
Q

Matrix types that diagonal and trace operations work on

A
  1. Diagonal operation - square and non-square matrix
  2. Trace operation- Only square matrices
106
Q

Is trace a linear operator

A

Yes
1. trace(A+B) = tr(A) + tr(B)
2. trace(l * A) = l * trace(A)

107
Q

What is broadcasting matrix arithmetic?

A

Addition of matrix and vector is invalid in traditional linear algebra. But via broadcasting the operation can be performed in modern machines. The row or column vectors are expanded as per the size of the matrix and then the operation is performed.

108
Q

Matrix multiplication is valid when -

A

MXN * NM = MM matrix

109
Q

5x7 * 5x2 matrix multiplication is

A

invalid

110
Q

Why vector vector dot product is scalar

A

v1, v2 = 5 x 1
v1.Tv2 = 1x5 * 51 = 1x1

111
Q

Ways to think about matrix multiplication

A
  1. Ordered collection of dot products
  2. Layered perspective
  3. Column perspective
  4. Row perspective
112
Q

What is ordered collection of dot products perspective?

A
  1. Similar to vector-vector dot product
    (pin on right column, iterate on left rows - For each iteration/row analysis - element-wise and add both)
  2. First row * first column - element-wise
    [0 1] * a
    c
    = 0*a + 1.c
  3. Second row * first column- element-wise
    * a
    [2 3] c
    = 2 * a + 3.c
  4. First row * third column
  5. Second row * third column
113
Q

What is layered perspective

A

1 left column to 1 right row - no element wise addition - forms a matrix
2nd left column to 2nd right row
and add both

  1. First column * first row - no element wise addition
    0 * [a b]
    2

= 0a 0b
2a 2b

  1. Second column * second row
    1 * [c d]
    3

= 1c d
3c 3d

0a 0b. +. 1c 1d
2a. 2b. 3c 3d

addition
1c 1d
2a+3c. 2b+3d

114
Q

What is column perspective

A
  1. Linear weighted combinations of the columns on left matrix
    (pin on right column, for each element in right column, multiply it with respective right column)
    first element of the left column * first right column +
    second element of the left column * second right column
  2. First left column * first element of the first column (scalar vector multiplication) +
    second left column * second element of the first column
  3. first left column * first element of the first column + second left column * second element of second column
115
Q

What is row perspective

A

first element of the left row * first right row +
second element of the right row * second right row

116
Q

Order of operation

A

(EVIL).T = L.T * I.T * V.T * E.T

117
Q

Matrix vector multiplication - op is

A

vector

118
Q

Matrix vector multiplication - vector decides ______

A

orientation of output vector

119
Q

Matrix vector multiplication - matrix decides ____________

A

the size of the output vector

120
Q

For a rotation matrix

A
  1. No stretching
  2. Vector maintains its length
  3. Vector rotates by some angle
121
Q

What is pure rotation matrix

A

Only rotation, no stretching

122
Q

Impure rotation matrix

A

Rotation and stretching

123
Q

What is Eigen vector and Eigen value

A

2 1. *. 1
2 3. 2

4
= 8

This can be expressed as 4 * 1
2

There is nothing special about the matrix or vector, but there is something unique about the combination of the matrix and vector.

When you can express the matrix-vector multiplication as some scalar-vector multiplication - the vector 1
2
is called Eigen vector and the scalar 4 is called the eigen value of the matrix.

124
Q

What is the fundamental eigen value equation

A

AV = scalar.v

125
Q

What are the two matrix identities

A
  1. Additive identity - A + 0 matrix = A
  2. Multiplicative identity - A * I = A
126
Q

Create symmetric matrix from square non-symmetric matrix

A

S = (A+A.T)
or
S = (A + A.T)/2

127
Q

Create symmetric matrix from non-square non-symmetric matrix

A

S = A * A.T
S = A.T * A

128
Q

Sum of two symmetric matrices is

A

Symmetric matrix

129
Q

Hadamard multiplication of symmetric matrices is

A

Symmetric matrix

130
Q

Matrix multiplication of symmetric matrices

A

Non-symmetric matrix

131
Q

How to get symmetric matrix from the multiplication of two symmetric matrices?

A

By adding constraints - a=d; e=g
a b. e f
c d f g

132
Q

Does adding constraints for getting symmetric matrix from the multiplication of two symmetric matrices work for all matrix sizes?

A

No. only works for 2X2. Test - doesn’t work for 10X10

133
Q

For diagonal matrix D, what is the result of DD, D.D (multiplication and hadamard multiplication respectively)

A

They both result in same result

134
Q

How to compute Frobenius dot product via vectorization?

A
  1. Vectorize the matrices => vectors
  2. Compute the dot product of the vectors.
135
Q

How to compute Frobenius dot product via transpose-trace?

A
  1. trace((A.T).B)
136
Q

What is the best computational way to compute the Frobenius product?

A

Via transpose-trace matrix

137
Q

What is Frobenius norm

A

Frobenius for product with itself is called Frobenius norm

138
Q

Frobenius norm is also called as

A

Euclidean norm

139
Q

Frobenius norm formula

A

norm(A) = √<A,A>F = √tr((A.T).A)

140
Q

What is P-norm formula

A

||A||p = sup ||Ax||p/||x||p;
x != 0

141
Q

What is p-norm

A
  1. P-norm gives the effect of matrix A on some vector x
  2. We care if Ax is longer or shorter than x
142
Q

What is 2-norm

A

If we replace p with 2 in p-norm, it called 2-norm

143
Q

When is ||Ax||/||x|| = 1

A

If A is a pure-rotation matrix or orthogonal matrix, it rotates x but keeps the length of the vector same.

144
Q

Schatten P-norm definition

A

Sum of all singular values of a matrix.

145
Q

What are singular values?

A
  1. Set of numbers
  2. It is a set of scalars thats associated with every matrix
146
Q

How to identify singular values?

A

Goal of SVD is to identify the singular values.

147
Q

Schatten P-norm formula

A

||A||p = ( (summation i to r) sigma i to the power p) whole power 1/p

148
Q

If p = 1,

A

Ignore 1/p and called schatten 1-norm

149
Q

What is a self-adjoint matrix?

A

A linear transformation that is represented by a matrix is said to be self-adjoint or self-adjoint operator if the following statement is true

<Av, w> = <v, Aw>

150
Q

Rules for self-adjoint matrix

A
  1. A is square matrix
  2. A is symmetric matrix
  3. v and w are of same size (m X 1)
151
Q

What is matrix asymmetry index?

A

Computes a value/index on how symmetric a matrix is

152
Q

Matrix asymmetry index formula

A

ai = ||A~|| / ||A|| => Ratio of norms

||A|| = √tr(A.A) = √tr((A.T).A)

A~ = (A-A.T)/2 (Asymmetric part of A)

153
Q

Matrix asymmetry index for symmetry matrix

A

0 since (A-A.T) = 0

154
Q

Matrix asymmetry index for asymmetric matrix

A

With A-A.t we are actually doubling the matrix and then dividing by 2. This means ||A~|| == ||A|| = > the index is 1

155
Q

Matrix symmetry index

A

1 - (||A~||/||A||)