emth211 exam

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/318

encourage image

There's no tags or description

Looks like no tags are added yet.

319 Terms

1
New cards
What is the goal of least squares?
To find the vector of coefficients that minimises the length of the residual vector squared
2
New cards
How is the residual component ri defined for a linear fit?
yi minus the quantity c0 plus c1 times xi
3
New cards
What makes a linear system overdetermined?
Having more rows than columns meaning more equations than unknowns
4
New cards
In the matrix equation Ac is approximately y what does matrix A contain for a linear fit?
A column of ones and a column of x values
5
New cards
Which NumPy function finds the least squares solution?
np.linalg.lstsq
6
New cards
How do you modify matrix A to fit a quadratic relationship?
Add a third column containing the x values squared
7
New cards
Why does Ax equals b usually have no exact solution in an overdetermined system?
Because vector b is unlikely to be in the column space of A
8
New cards
What equation guarantees a least squares solution x hat?
A times x hat equals the projection of b onto the column space of A
9
New cards
How is the residual vector r defined algebraically?
b minus A times x hat
10
New cards
In terms of projections what is the residual vector r equivalent to?
The perpendicular component of b relative to the column space of A
11
New cards
What condition guarantees a unique least squares solution?
The nullity of matrix A must be exactly zero
12
New cards
What are the normal equations for an overdetermined system A x approximately b?
A transpose A x hat equals A transpose b
13
New cards
How is the norm of a vector defined in a general inner product space?
The square root of the inner product of the vector with itself
14
New cards
How is the distance between vectors u and v defined in an inner product space?
The norm of the vector u minus v
15
New cards
When are two vectors considered orthogonal in an inner product space?
When their inner product equals zero
16
New cards
What does the Pythagorean Theorem state for an inner product space?
The squared norm of u plus v equals the squared norm of u plus the squared norm of v if and only if u and v are orthogonal
17
New cards
How is the Gram-Schmidt process adapted for general inner product spaces?
By replacing the standard dot product with the general inner product
18
New cards
How do you compute the orthogonal projection of vector x onto a subspace W with an orthogonal basis?
Take the sum of the inner product of x and each basis vector divided by the inner product of that basis vector with itself multiplied by that basis vector
19
New cards
How is the orthogonal component of a vector x relative to a subspace W calculated?
The original vector x minus the orthogonal projection of x onto W
20
New cards

What mathematically defines the best approximation of a vector v in a subspace W? (for v not in W)

It is the vector in W whose distance to v is strictly less than the distance from v to any other vector in W

21
New cards
According to the Best Approximation Theorem what specific vector provides the best approximation to a vector v in a finite dimensional subspace W?
The orthogonal projection of v onto W
22
New cards
What happens when a matrix A multiplies one of its eigenvectors x?
It simply scales the vector x by a factor called the eigenvalue
23
New cards
How can you efficiently compute a matrix A to a high power times an eigenvector x?
By calculating the eigenvalue to that same power times the vector x
24
New cards

Why is it useful to represent an arbitrary vector in a basis of eigenvectors? And what conditions are required to use this representation?

It makes computing matrix powers much simpler because each eigenvector component only gets scaled by its eigenvalue (this works as a full basis only when the matrix has enough linearly independent eigenvectors; only when diagonalisable)

25
New cards
What is the equation determinant of A minus lambda times the identity matrix equals zero called?
The characteristic equation for matrix A
26
New cards
After finding the eigenvalues how do you calculate the corresponding eigenvectors?
By solving the linear system A minus lambda times the identity matrix times v equals the zero vector for each eigenvalue
27
New cards
If v is an eigenvector of A with eigenvalue lambda what is a solution to the differential equation system y prime equals A y?
The vector z equals e to the power of lambda t times v
28
New cards
What is the characteristic polynomial of an n by n matrix A?
A polynomial of degree n defined as the determinant of A minus lambda times the identity matrix
29
New cards
What do the roots of the characteristic polynomial represent?
The eigenvalues of the matrix A
30
New cards
What is the trace of a matrix?
The sum of its diagonal elements
31
New cards
What are the coordinates of a vector relative to a basis
The coefficients used to express the vector as a linear combination of the basis vectors
32
New cards
What does numpy.linalg.eig return
A vector of eigenvalues and a matrix whose columns are the corresponding eigenvectors
33
New cards
How are eigenvectors returned by NumPy usually scaled
They are normalised to have unit 2 norm
34
New cards
Why can NumPy return a tiny nonzero value when the exact answer is zero
Numerical calculations are subject to rounding error
35
New cards
What is true about eigenvectors associated with distinct eigenvalues
They are linearly independent
36
New cards
What is the algebraic multiplicity of an eigenvalue
The number of times its factor is repeated in the characteristic polynomial
37
New cards
What is the geometric multiplicity of an eigenvalue
The dimension of its eigenspace
38
New cards
How can geometric multiplicity be found using row reduction
Count the free parameters in the eigenvector system
39
New cards
How are geometric and algebraic multiplicity related
Geometric multiplicity is at least 1 and no greater than algebraic multiplicity
40
New cards
What is a defective matrix
A matrix with an eigenvalue whose geometric multiplicity is less than its algebraic multiplicity
41
New cards
Does a repeated eigenvalue always make a matrix defective
No because its geometric multiplicity can equal its algebraic multiplicity
42
New cards
What is the eigenspace associated with an eigenvalue
The solution space of A minus lambda I times v equals zero
43
New cards
Is every vector in an eigenspace an eigenvector
No because the zero vector belongs to the eigenspace but is not an eigenvector
44
New cards
How can the eigenvalues of a triangular matrix be found
They are the entries on the main diagonal
45
New cards
Can eigenvalues of a real matrix be complex
Yes some roots of the characteristic polynomial may be complex
46
New cards
What does the matrix P contain in a diagonalisation
P has the eigenvectors of A as its columns
47
New cards
What does the matrix D contain in a diagonalisation
D has the eigenvalues matching the columns of P on its diagonal
48
New cards
What relationship connects A with P and D in a diagonalisation
A equals P D P inverse
49
New cards
What must be true of P for diagonalisation to work
P must be invertible
50
New cards
Does the order of eigenvalues in D matter
No as long as each eigenvalue stays matched with its eigenvector column in P
51
New cards
When is a matrix diagonalisable
When it has enough linearly independent eigenvectors to form a basis
52
New cards
Can a real matrix require complex matrices P and D for diagonalisation
Yes
53
New cards
How do complex eigenvalues occur for a real matrix
They occur in complex conjugate pairs
54
New cards
How are eigenvectors related for conjugate eigenvalues of a real matrix
The corresponding eigenvectors can be chosen as complex conjugates
55
New cards
What change of variables decouples the system y prime equals A y when A is diagonalisable
Use z equals P inverse y
56
New cards
What system results after changing to eigenvector coordinates
z prime equals D z
57
New cards
What does it mean for a system of ODEs to be decoupled
Each component equation can be solved independently
58
New cards
What is the solution form for one decoupled component
z i equals c i times e to the power lambda i t
59
New cards
How can the initial coefficient vector c be found
Solve P c equals y at time zero
60
New cards
Why is solving P c equals y at time zero preferred over computing P inverse explicitly
It avoids unnecessary computation of the inverse
61
New cards
What does e to the power D t look like when D is diagonal
It is diagonal with e to the power lambda i t on each diagonal entry
62
New cards
How is the original ODE solution recovered from the decoupled variables
Multiply the decoupled solution by P
63
New cards
If A is invertible how does an eigenvalue change for A inverse
lambda becomes one divided by lambda with the same eigenvector
64
New cards
When is zero an eigenvalue of A
Exactly when A is singular
65
New cards
If p is the characteristic polynomial of A what matrix does p of A equal
The zero matrix
66
New cards
Does the Cayley Hamilton Theorem only apply to diagonalizable matrices
No it also applies to defective matrices
67
New cards
How is the matrix exponential defined
By the Taylor series I plus At plus one half A squared t squared and continuing
68
New cards
If A is diagonalizable how is its matrix exponential computed
Use P times exponential of Dt times P inverse
69
New cards
What identity allows powers of a diagonalizable matrix to be simplified
A to the kth power equals P times D to the kth power times P inverse
70
New cards
Can matrix exponentials still be computed when A is defective
Yes methods such as scipy.linalg.expm do not require diagonalization
71
New cards
How are the characteristic polynomials of A and A transpose related
They are identical
72
New cards
Must A and A transpose have the same eigenvectors
No their eigenvectors can differ
73
New cards
When comparing fits to the same data using the same residual definition what does a smaller squared residual norm mean?
A better fit according to that least squares objective
74
New cards
When does the reduced QR equation R times x hat equals Q transpose times b give a unique least squares solution?
When A has full column rank and Q has orthonormal columns with A equals Q R
75
New cards
How are all least squares solutions related when A has a nonzero null space?
Every solution equals one least squares solution plus an arbitrary vector in the null space of A
76
New cards
For full column rank A how does forming the normal equations affect its two norm condition number?
The condition number of A transpose A is the square of the condition number of A
77
New cards
What design matrix is used for a degree n polynomial fit in the monomial basis?
A Vandermonde matrix with columns of ones and x values and successive powers up to x to the power n
78
New cards
Why can a monomial Vandermonde matrix cause trouble in polynomial fitting?
It can be badly conditioned especially for high degree fits or poorly scaled x values
79
New cards
How can y equals a times e to the power b x be linearised using real logarithms?
For positive a and positive y fit ln y equals ln a plus b x and recover a by exponentiating the intercept
80
New cards
How can y equals a times x to the power k be linearised using real logarithms?
For positive a and positive x and positive y fit ln y equals ln a plus k times ln x
81
New cards
What does linear least squares fitting of a circle minimise?
Squared residuals of the expanded algebraic circle equation rather than squared radial distances to the circle
82
New cards
What are the four requirements for a real inner product?
Symmetry and additivity and scalar homogeneity and positive definiteness meaning the self inner product is nonnegative and is zero exactly for the zero vector
83
New cards
When is a weighted coordinate dot product an inner product on all of Rn?
When every coordinate weight is strictly positive
84
New cards
What does a Taylor polynomial prioritise when approximating a smooth function?
Matching derivatives at its expansion point to give local accuracy near that point
85
New cards
What error does projection onto a polynomial subspace minimise when the inner product is the integral of f times g?
The integral of the squared error across the interval rather than the error at each individual point
86
New cards
For an eigenvalue lambda why must A minus lambda times I be singular?
Its null space must contain a nonzero eigenvector
87
New cards
How is the determinant related to eigenvalues when some are repeated?
It is their product with every eigenvalue counted according to its algebraic multiplicity
88
New cards
How is the trace related to eigenvalues when some are repeated?
It is their sum with every eigenvalue counted according to its algebraic multiplicity
89
New cards
If a real n by n matrix has n distinct eigenvalues when do their eigenvectors form a basis for Rn?
When all the eigenvalues are real otherwise the eigenvectors form a basis for complex n dimensional space
90
New cards
How can a proposed diagonalisation be checked without finding P inverse?
Check that P is invertible and D is diagonal and A P equals P D
91
New cards
If A times v equals lambda times v what happens when a polynomial q is applied to A?
The same nonzero vector v is an eigenvector of q of A with eigenvalue q of lambda
92
New cards
How does Cayley Hamilton reduce a high matrix power?
Use the characteristic equation to replace powers of degree n and above by combinations of lower powers
93
New cards
How can Cayley Hamilton be used to find the inverse of an invertible matrix?
Multiply its characteristic equation by A inverse and isolate A inverse using the nonzero constant coefficient
94
New cards
For constant A what solves y prime equals A y with y at zero equal to y0?
The matrix exponential of A times t multiplied by y0
95
New cards
If A equals P D P inverse how can A transpose be diagonalised?

Use P inverse transpose as the eigenvector matrix and the same diagonal matrix D with P transpose at the end

96
New cards
How can you check a least squares candidate without knowing the exact solution?
Verify that A transpose times the residual is zero
97
New cards
When is a least squares residual zero?
Exactly when the original system is consistent and the fitted vector equals b
98
New cards
Why is a polynomial fit still a linear least squares problem?
It is linear in the unknown coefficients even when it is nonlinear in the input variable
99
New cards
When is a straight line least squares fit unique?
When the x values are not all identical so the columns of ones and x values are independent
100
New cards
How do you recover a circle from x squared plus y squared equals c0 plus c1 x plus c2 y?
Its centre is c1 divided by two and c2 divided by two and its radius is the square root of c0 plus one quarter c1 squared plus one quarter c2 squared