Chapter 7 Computational Linear Algebra Flashcards

(18 cards)

1
Q

What is the computational cost of the standard matrix multiplication algorithm?

A

O(n^3), where n is the matrix dimension.

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

What does the product ŷ = Xb represent in linear regression?

A

The predicted outputs for a dataset X given the linear weights b.

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

How does the cost of adding matrices compare to multiplying them?

A

Addition is O(n^2), while multiplication is O(n^3) using the schoolbook method.

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

What is Strassen’s algorithm and its complexity?

A

A divide-and-conquer matrix multiplication algorithm with complexity O(n^2.81).

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

How many matrix multiplications does Strassen’s algorithm use?

A

Seven multiplications per recursive step.

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

Why is computing A⁻¹b to solve Ax = b a bad idea?

A

It is computationally inefficient and numerically unstable.

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

What is LU decomposition?

A

Decomposing matrix A into the product of a lower triangular matrix L and an upper triangular matrix U (A = LU).

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

What is the total computational cost of solving Ax = b using LU decomposition?

A

O(n^3) for LU decomposition and O(n^2) for forward and back substitution.

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

Why is LU decomposition without pivoting potentially unstable?

A

Small pivot values can lead to large errors due to division instability.

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

What does the ‘P’ in LUP decomposition stand for?

A

Permutation, used to improve numerical stability by row swapping.

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

What is machine epsilon?

A

The smallest number that, when added to 1 in floating point, gives a result different from 1.

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

What is a well-conditioned problem?

A

A problem where small changes in input cause small changes in output.

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

What defines a numerically stable algorithm?

A

It approximately solves a nearby problem when applied to (A, b).

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

What are eigenvectors and eigenvalues?

A

Vectors e such that Ae = λe, where λ is a scalar (eigenvalue).

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

Why are eigenvalues important in data science?

A

They enable dimensionality reduction by identifying dominant directions in data.

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

What is the power method used for?

A

Finding the dominant eigenvector of a matrix.

17
Q

When does the power method converge to an eigenvector?

A

When applied repeatedly to a vector under a matrix with a unique largest eigenvalue.

18
Q

What does the equilibrium distribution π of a Markov chain satisfy?

A

Pπ = π, where P is the transition matrix.