Computational researcher: Numerical Linear Algebra
Original research interview cases on conditioning, linear solvers, least squares, spectral computation, and inverse problems. Numerical assumptions and accuracy targets are supplied where needed.
These are original research interview scenarios, independent of employers, live interviews, and published question banks.
1.A least-squares design matrix has 180 rows and 12 columns, with one scalar response per row. How many coefficients are in its parameter vector?
Show answer and explanation
- 192
- 2,160
- 180
- 12
Answer: 12
Each column represents one coefficient. The response and residual each have 180 entries, while the unknown vector has 12.
2.One design column measures distance in meters and another measures the same physical quantity in micrometers. Before interpreting a large condition number, what should be examined?
Show answer and explanation
- Column scaling
- Only the observation count
- Only matrix symmetry
- Only response variance
Answer: Column scaling
Units can create very different column magnitudes. Scaling can improve numerical behavior; it does not create information or remove actual near-dependence.
3.For A=
diag(2,5), x=(3,1), and b=(6,7), define r=b−Ax. What is the Euclidean residual norm?Show answer and explanation
- 0
- 2
- 7
- 4
Answer: 2
Ax=(6,5), so r=(0,2). Its Euclidean norm is two.
4.A computed solution has a small residual for a very ill-conditioned nonsingular system. What can still be large?
Show answer and explanation
- The determinant's sign change
- The exact residual by definition
- The matrix dimension automatically
- Forward solution error
Answer: Forward solution error
A small residual measures equation satisfaction. Sensitivity of the inverse map can amplify that residual into a large solution error.
5.An algorithm is backward stable on a particular linear solve. What does that statement mean?
Show answer and explanation
- It always returns the exact original solution.
- It removes sensitivity inherent in the matrix.
- Its iteration count is bounded by ten.
- It solves a nearby input problem accurately.
Answer: It solves a nearby input problem accurately.
Backward stability concerns a small perturbation to the input. Forward accuracy also depends on the conditioning of the original problem.
6.A matrix has singular values 12 and 0.03. What is its spectral condition number?
Show answer and explanation
- 144
- 0.0025
- 12.03
- 400
Answer: 400
For a full-rank matrix, the 2-norm condition number is largest singular value divided by smallest: 12/0.03=400.
7.An experiment supplies the bound relative solution error ≤ κ × relative right-hand-side error. With κ=200 and input error 0.001, what upper bound follows?
Show answer and explanation
- 0.000005
- 0.2
- 200
- 0.002
Answer: 0.2
The supplied bound gives 200×0.001=0.2. A bound is not a prediction that every perturbation attains that error.
8.Two nearly equal large floating-point numbers are subtracted to obtain a small quantity. Which issue deserves attention?
Show answer and explanation
- Loss of all absolute accuracy necessarily
- Loss of relative accuracy
- A change in matrix rank by definition
- Guaranteed overflow
Answer: Loss of relative accuracy
Cancellation can expose earlier rounding errors relative to the small difference. It need not make every subtraction inaccurate in absolute terms.
9.A researcher solves Ax=b by first forming a dense inverse even though only one right-hand side is needed. Which alternative is generally appropriate to investigate?
Show answer and explanation
- Normalize x after inversion.
- Factor A and solve the factors.
- Round b to fewer digits first.
- Replace A by its determinant.
Answer: Factor A and solve the factors.
A factorization-based solve avoids explicitly constructing the entire inverse. Its choice still depends on matrix structure and conditioning.
10.All entries of b are multiplied by 1,000 in a nonsingular system Ax=b, while A is unchanged. What happens to the exact solution?
Show answer and explanation
- Each component increases by 1,000.
- It is multiplied by 1,000.
- It is unchanged.
- It is divided by 1,000.
Answer: It is multiplied by 1,000.
Linearity gives A(1000x)=1000b. This statement concerns exact arithmetic, not a promise about overflow in a finite representation.
11.A diagonal matrix has entries 10⁸ and 10⁻⁸. It is invertible. What does that fact alone fail to establish?
Show answer and explanation
- Existence of a unique exact solution
- A nonzero exact determinant
- Nonzero diagonal entries
- Good numerical conditioning
Answer: Good numerical conditioning
The ratio of singular values is 10¹⁶. Exact invertibility does not imply that a finite-precision solve will be insensitive to perturbations.
12.A stopping rule accepts residual norm below 10⁻⁶ for every problem, although right-hand-side norms vary from 10⁻¹² to 10⁹. What should be reconsidered?
Show answer and explanation
- Only the solver's output type
- Using one fixed iteration count instead
- Scale-aware stopping criteria
- Only the ordering of matrix rows
Answer: Scale-aware stopping criteria
An absolute residual threshold has different relative meaning at different scales. Combine suitable absolute and relative criteria with application requirements.
13.A residual is recomputed as b−Ax using the original matrix after an iterative solve. Why can this be useful?
Show answer and explanation
- To force a nonsymmetric matrix to become symmetric
- To prove the original model is physically valid
- To eliminate uncertainty in measured inputs
- To detect drift in a recursively updated residual
Answer: To detect drift in a recursively updated residual
Finite-precision recurrences can diverge from the true residual of the stored iterate. Explicit recomputation checks the actual supplied equations.
14.A 3×3 system has a zero row but a nonzero corresponding entry of b. What follows in exact arithmetic?
Show answer and explanation
- Only the zero vector solves it.
- The equations are inconsistent.
- There is exactly one solution.
- Every vector is a solution.
Answer: The equations are inconsistent.
The zero row requires 0 to equal a nonzero number. No vector satisfies that equation.
15.A rank-two 3×3 matrix has a consistent right-hand side. Without an additional constraint, what is the solution set?
Show answer and explanation
- Exactly two vectors
- Infinitely many vectors
- No vectors
- One unique vector
Answer: Infinitely many vectors
A nontrivial null space gives x+z as another solution whenever Az=0. Consistency ensures at least one solution exists.
16.A program stores a large sparse matrix densely and exhausts memory before solving. Which information is most relevant to a storage redesign?
Show answer and explanation
- Nonzero pattern and access needs
- The exact determinant's magnitude
- Only the largest eigenvalue
- Only the norm of the response
Answer: Nonzero pattern and access needs
Sparse formats store selected entries and indexing structure. Their effectiveness depends on sparsity and the operations that must be supported.
17.A matrix has 10⁶ rows and five nonzero entries per row. Ignoring index storage, how many numerical entries does sparse storage retain?
Show answer and explanation
- 5,000,000
- 1,000,005
- 200,000
- 10¹²
Answer: 5,000,000
The count is 10⁶×5. This excludes indices, row pointers, factorization fill, and other workspace.
18.An input matrix contains NaN values from an earlier preprocessing stage. What is the first defensible response to a solver failure?
Show answer and explanation
- Raise the iteration limit until the failure disappears.
- Trace and validate the nonfinite inputs.
- Assume the matrix is merely ill-conditioned.
- Treat NaNs as measured zeros without justification.
Answer: Trace and validate the nonfinite inputs.
Nonfinite data can invalidate the intended equations and solver operations. A numerical-method change does not explain or repair the upstream values.
19.Two unit systems produce differently scaled solution components. What comparison avoids mistaking a unit conversion for a scientific discrepancy?
Show answer and explanation
- Compare determinants of the two matrices only.
- Compare only raw component magnitudes.
- Require identical floating-point bit patterns.
- Compare consistent physical units.
Answer: Compare consistent physical units.
Convert quantities and tolerances consistently before comparing. Different numerical magnitudes can represent the same physical result.
20.A solver returns a condition estimate rather than an exact condition number. How should a sensitivity statement use it?
Show answer and explanation
- Replace the residual with that estimate.
- Treat it as a theorem about every output digit.
- Ignore it whenever the residual is small.
- Disclose estimation and norm assumptions.
Answer: Disclose estimation and norm assumptions.
Condition estimates are diagnostic quantities with a specified norm and estimation method. They should support qualified accuracy reasoning.
21.A square nonsingular matrix is factored once and solved against 40 right-hand sides. What can usually be reused?
Show answer and explanation
- The factors
- The first solution as every answer
- A single scalar determinant
- Only the first residual
Answer: The factors
The matrix factorization can be reused when A is unchanged. Each new right-hand side still requires the corresponding factor solves.
22.During elimination, a tiny diagonal pivot is encountered despite a much larger available entry below it. What mechanism addresses this immediate issue?
Show answer and explanation
- Row pivoting
- Discarding the right-hand side
- Column averaging
- Replacing every pivot by one
Answer: Row pivoting
A row exchange can select a larger pivot and limit harmful divisions. Pivoting is not a cure for all ill-conditioning.
23.A researcher applies Cholesky factorization to a real symmetric matrix with a negative eigenvalue. Which required premise is missing?
Show answer and explanation
- Real-valued entries
- Symmetry
- Positive definiteness
- Square shape
Answer: Positive definiteness
Standard Cholesky with a positive diagonal is designed for symmetric positive-definite matrices. Symmetry alone is insufficient.
24.For L=[[2,0],[1,3]], solve Ly=(4,7). What is y?
Show answer and explanation
- (2, 5/3)
- (4, 1)
- (2, 7/3)
- (1, 2)
Answer: (2, 5/3)
Forward substitution gives y₁=4/2=2, then y₂=(7−2)/3=5/3.
25.For U=[[4,2],[0,5]], solve Ux=(10,5). What is x?
Show answer and explanation
- (2,1)
- (2.5,1)
- (3,−1)
- (1,2)
Answer: (2,1)
Back substitution gives x₂=1 and x₁=(10−2)/4=2.
26.A full-column-rank least-squares problem is solved through AᵀA. In the 2-norm, what happens to A's condition number?
Show answer and explanation
- It is squared.
- It is square-rooted.
- It becomes the row count.
- It is always reduced to one.
Answer: It is squared.
For full column rank, singular values of AᵀA are squares of those of A. Thus κ₂(AᵀA)=κ₂(A)².
27.A nearly rank-deficient least-squares problem requires a numerical rank estimate. Which decomposition directly exposes the relevant scales?
Show answer and explanation
- A componentwise sum
- A trace calculation
- Unpivoted diagonal extraction
- Singular value decomposition
Answer: Singular value decomposition
Singular values reveal directions of weak response. The effective-rank threshold must still reflect scale, precision, and the scientific task.
28.A thin QR factorization A=QR has orthonormal columns in Q. How does the full-column-rank least-squares solution follow?
Show answer and explanation
- Set x equal to the diagonal of R.
- Set x=Qb without a triangular solve.
- Solve Qx=Rᵀb.
- Solve Rx=Qᵀb.
Answer: Solve Rx=Qᵀb.
Orthogonality reduces the minimization to a triangular problem plus an orthogonal residual component. QR avoids explicitly forming normal equations.
29.An SVD has singular values 9, 0.4, and 0.0002. A supplied relative cutoff discards values below 0.001×the largest value. What effective rank is used?
Show answer and explanation
- 3
- 0
- 2
- 1
Answer: 2
The threshold is 0.009. Nine and 0.4 exceed it; 0.0002 is discarded.
30.A minimum-norm solution is requested for a consistent underdetermined linear system. Which norm is being minimized in the usual Moore–Penrose solution?
Show answer and explanation
- The maximum absolute residual only
- The count of nonzero coefficients
- The solution's Euclidean norm
- The determinant of the augmented matrix
Answer: The solution's Euclidean norm
The pseudoinverse gives the minimum 2-norm solution among the least-squares minimizers. This is distinct from sparsity promotion.
31.A real matrix is symmetric but indefinite. Which factorization structure can be appropriate with suitable pivoting?
Show answer and explanation
- Positive-diagonal Cholesky without qualification
- LDLᵀ
- A QR factorization of b alone
- A diagonal inverse with off-diagonal entries ignored
Answer: LDLᵀ
A pivoted LDLᵀ method can represent symmetric indefinite systems, potentially using block pivots. Positive definiteness is not assumed.
32.A permutation chosen before sparse factorization reduces fill-in. What is it chiefly controlling?
Show answer and explanation
- The number of measured observations
- The exact solution's dimension
- The physical units of each equation
- Additional nonzeros in the factors
Answer: Additional nonzeros in the factors
Elimination can create nonzeros absent in A. Reordering seeks a more favorable factor sparsity pattern while preserving the equations through permutations.
33.The same sparse matrix pattern is solved repeatedly with changed numerical entries. Which phase may be reusable if the solver permits it?
Show answer and explanation
- The prior solution without checking
- Symbolic analysis
- All pivot values from the first matrix
- Every numerical factor unchanged
Answer: Symbolic analysis
Symbolic structure may be reusable with a fixed pattern. Numerical factorization generally must reflect the changed values and pivoting requirements.
34.A least-squares fit has residual vector (1,−2,2). What is its residual sum of squares?
Show answer and explanation
- 3
- 81
- 5
- 9
Answer: 9
The sum is 1²+(−2)²+2²=9. Its Euclidean residual norm is three, a different reported quantity.
35.A routine returns an empty residual-summary array for an underdetermined problem. What is a safe interpretation without further documentation?
Show answer and explanation
- It proves exact interpolation of every observation.
- It proves the input response was empty.
- It is not proof that the residual is zero.
- It proves the matrix has full column rank.
Answer: It is not proof that the residual is zero.
Residual summary conventions depend on shape, rank, and routine. Recompute b−Ax or inspect documented return semantics rather than infer a zero norm.
36.Two columns of A are exactly identical. Which coefficient feature is not uniquely identified by unregularized least squares?
Show answer and explanation
- Their sum in the fitted response
- Their individual allocation
- The number of stored observations
- The response vector's length
Answer: Their individual allocation
Changing the coefficients by (+t,−t) leaves the prediction unchanged. Additional assumptions can select an allocation but do not create data identification.
37.A large least-squares matrix is available only through products Av and Aᵀw. Which method family is worth considering?
Show answer and explanation
- Entrywise Gaussian elimination without entries
- Computing all minors before any iteration
- Dense inversion as a required first step
- Matrix-free iterative least squares
Answer: Matrix-free iterative least squares
Methods using operator products can avoid storing the full matrix. Convergence and preconditioning remain important.
38.A claimed transpose operator passes tests on dimensions but violates uᵀ(Av)=(Aᵀu)ᵀv on random vectors. What does that suggest?
Show answer and explanation
- A necessary consequence of sparsity
- An adjoint implementation error
- Proof that the exact system is inconsistent
- Proof that the matrix has repeated eigenvalues
Answer: An adjoint implementation error
The inner-product identity is a useful adjoint check up to numerical tolerance. Matching array shapes alone does not establish a correct transpose action.
39.A solve overwrites its matrix input, then a residual check uses that overwritten array as though it were A. What is the problem?
Show answer and explanation
- The residual is necessarily an upper bound on forward error.
- The check may test the factors instead of A.
- Factorization always preserves every original entry.
- Overwriting guarantees an exactly zero residual.
Answer: The check may test the factors instead of A.
In-place factorization can replace A with packed factor data. Retain the original operator or reconstruct it correctly for verification.
40.A structured solver assumes band width three, but preprocessing creates nonzeros outside that band. What should be checked?
Show answer and explanation
- Whether the first solution component is positive
- Only whether b has finite values
- Whether the stored operator still matches the equations
- Only the requested number of decimal digits
Answer: Whether the stored operator still matches the equations
Silently dropping out-of-band entries changes the mathematical system. A compatible representation or method is needed.
41.A 2×2 matrix has exact determinant one but entries near 10⁸. Can the determinant alone certify a well-conditioned solve?
Show answer and explanation
- Yes; a nonzero determinant bounds κ₂ by one.
- No; determinant one implies singularity.
- No; inspect singular-value scales.
- Yes; every determinant-one matrix is orthogonal.
Answer: No; inspect singular-value scales.
Determinants combine singular values multiplicatively and do not reveal their ratio. Large reciprocal singular scales can coexist with determinant one.
42.Conjugate gradient is selected for a real nonsymmetric matrix because its diagonal entries are positive. What should be reconsidered?
Show answer and explanation
- Whether the matrix has more rows than columns
- The precision used to print the residual
- Only the choice of initial vector
- The solver's symmetry and definiteness assumptions
Answer: The solver's symmetry and definiteness assumptions
Positive diagonal entries do not establish the symmetric positive-definite structure required by standard CG theory.
43.For a real SPD system, what is the role of a suitable preconditioner?
Show answer and explanation
- Remove the need to test residuals.
- Improve the transformed problem's convergence properties.
- Make every iterate the exact solution.
- Change the scientific right-hand side intentionally.
Answer: Improve the transformed problem's convergence properties.
Preconditioning changes how the system is solved while preserving the intended solution when applied consistently. Its setup and application costs also matter.
44.A fixed-point linear iteration has error update eₖ₊₁=Teₖ and spectral radius 0.7. In exact arithmetic, what does that imply?
Show answer and explanation
- Error reduction by exactly 30% in every norm at every step
- Asymptotic convergence from every initial error
- An exact solution after seven iterations
- Divergence because T is not the identity
Answer: Asymptotic convergence from every initial error
Spectral radius below one ensures Tᵏ tends to zero in finite dimensions. Transient behavior and norm-by-norm rates can differ.
45.An iterative solver reports a small preconditioned residual, while the original residual remains unacceptable. What should determine equation satisfaction?
Show answer and explanation
- The number of preconditioner applications
- The original residual in relevant units
- Only the last update's sign
- Only the preconditioned residual's printed digits
Answer: The original residual in relevant units
Different residual metrics need not have the same scale. Assess the original problem and its scientific accuracy requirements.
46.A solver restarts GMRES with a very small subspace to reduce memory. Which tradeoff should be examined?
Show answer and explanation
- An exact rank reduction of the original matrix
- A change from nonsymmetric to SPD equations
- Guaranteed fewer iterations versus larger storage
- Lost convergence information versus storage
Answer: Lost convergence information versus storage
Restarting discards parts of the Krylov history. This may save memory while slowing or stalling convergence.
47.A matrix-vector product costs O(n), while explicitly forming the dense matrix costs O(n²) storage. Which design fits repeated Krylov products?
Show answer and explanation
- A sorted list of eigenvalues alone
- A determinant-only interface
- An operator interface
- A stored dense inverse as a prerequisite
Answer: An operator interface
Krylov methods can work with the action of A. The interface must still implement the intended operator and any required adjoint or preconditioner.
48.A nonlinear solve uses an inner linear tolerance far below the current outer error at every early iteration. What should be evaluated?
Show answer and explanation
- A guarantee of fewer outer iterations
- Automatic removal of model error
- Unnecessary inner-solve work
- A proof of quadratic convergence globally
Answer: Unnecessary inner-solve work
Inexact Newton strategies can avoid oversolving early linear systems. Inner accuracy should be coordinated with outer progress and convergence conditions.
49.An iterative residual history falls, then stagnates near a precision-dependent floor. Which investigation is most relevant?
Show answer and explanation
- Only whether the matrix file was compressed
- An assumption that all equations are now exact
- Rounding, conditioning, and attainable accuracy
- A guarantee that twice as many iterations removes the floor
Answer: Rounding, conditioning, and attainable accuracy
Finite precision and sensitivity can limit attainable residuals and solution accuracy. More iterations may not overcome that limit.
50.An iterative method converges rapidly without a preconditioner on one small grid. What evidence is still needed for a scaling claim?
Show answer and explanation
- Only another identical solve
- Only the final small-grid residual
- Behavior as grid size grows
- A smaller tolerance on that one grid
Answer: Behavior as grid size grows
Mesh-dependent conditioning can change convergence rates. Performance at a single small size does not establish scalable behavior.
51.A diagonal preconditioner uses the reciprocal of every diagonal entry, but one entry is zero. What must implementation handle?
Show answer and explanation
- Only an extra matrix transpose
- A different residual-vector length
- Automatic replacement of zero by a measured value
- The undefined reciprocal
Answer: The undefined reciprocal
The requested diagonal inverse does not exist at that entry. A justified alternative or explicit failure is needed; silent substitution changes the method.
52.A preconditioner costs 60 seconds to build and saves one second per solve. Ignoring all other costs, after how many solves is total time first strictly lower?
Show answer and explanation
- 30
- 1
- 61
- 60
Answer: 61
At 60 solves the setup cost is exactly recovered. Strict savings begin at 61 under the supplied linear cost model.
53.A solver terminates because it reached its iteration limit, despite missing its residual tolerance. What should the result report?
Show answer and explanation
- Failure of the underlying mathematical model necessarily
- Nonconvergence under that stopping criterion
- A proof that no exact solution exists
- Successful convergence because an output vector exists
Answer: Nonconvergence under that stopping criterion
An approximate vector can exist without meeting the requested accuracy. Report status, residual, and relevant limits rather than relabeling the stop as success.
54.A sparse direct solver is fast per solve but its factors exceed memory at a larger size. What resource was missed in planning?
Show answer and explanation
- Factor fill and workspace
- Only solution-vector storage
- Only input matrix nonzeros
- The right-hand-side norm
Answer: Factor fill and workspace
Sparse input does not guarantee equally sparse factors. Symbolic estimates and representative memory measurements help assess feasibility.
55.A preconditioner changes between Krylov iterations. What must method selection account for?
Show answer and explanation
- A mandatory change in the exact solution
- Variable preconditioning
- Only the first preconditioned vector
- A guarantee ordinary fixed-preconditioner recurrences still apply
Answer: Variable preconditioning
Some Krylov formulations rely on a fixed preconditioning operator. A flexible method or a justified compatible recurrence is needed when it varies.
56.For a real SPD matrix, pᵀAp is computed as negative in a CG implementation. What should be investigated first?
Show answer and explanation
- Only the number of stored rows
- Whether negative curvature is required by SPD theory
- The operator, assumptions, and arithmetic
- A proof the residual must already be zero
Answer: The operator, assumptions, and arithmetic
Positive definiteness requires positive curvature for nonzero p in exact arithmetic. A negative value calls the premise or implementation into question.
57.An approximate solve is used inside an optimization routine, but its tolerance ignores gradient accuracy needs. What can suffer?
Show answer and explanation
- Only serialization of the final vector
- The exact definition of a norm
- Only the count of matrix columns
- The outer algorithm's decisions
Answer: The outer algorithm's decisions
Inaccurate inner quantities can corrupt gradients or search directions. Tolerances should support the accuracy required by the outer task.
58.Residual components for two physical equations have incompatible units. What makes a combined stopping norm interpretable?
Show answer and explanation
- Summing raw values regardless of units
- Selecting the equation with the largest numeric entry only
- Deleting the smaller-magnitude equation
- A justified nondimensionalization or weighting
Answer: A justified nondimensionalization or weighting
Scaling should express meaningful error tolerances or units. Otherwise one equation may dominate merely because of its numerical unit convention.
59.A researcher compares solvers only by iteration count, but each iteration performs different work. Which comparison is more informative?
Show answer and explanation
- The smallest iteration number alone
- Time and resources to a comparable accuracy
- Only the number of callback messages
- The order in which methods were launched
Answer: Time and resources to a comparable accuracy
Iterations are not interchangeable units of cost. Include setup, operator applications, memory, and a common meaningful accuracy target.
60.A matrix-free routine silently changes its output depending on previous calls. What risk arises for a Krylov method expecting fixed A?
Show answer and explanation
- The matrix is necessarily diagonal.
- Only the measured setup time changes.
- The assumed linear operator may not be fixed.
- Every Krylov method becomes exact in one step.
Answer: The assumed linear operator may not be fixed.
Stateful or nonlinear products can violate the mathematical operator assumed by the iteration. Test repeatability and linearity within relevant tolerances.
61.A multigrid smoother reduces rapidly oscillating error but leaves smooth error. What is the coarse grid intended to address?
Show answer and explanation
- Error represented effectively at a coarser scale
- Only the error already eliminated by smoothing
- Only the error with the shortest fine-grid wavelength
- A replacement for every boundary condition
Answer: Error represented effectively at a coarser scale
Coarse-grid correction targets components that relaxation may reduce slowly. Transfer operators and boundary treatment must be consistent.
62.Power iteration is applied to
diag(5,2)with a starting vector having nonzero first component. What eigenvalue magnitude governs its asymptotic direction?Show answer and explanation
- 7
- 10
- 2
- 5
Answer: 5
The component along the eigenvector for magnitude five grows relative to the magnitude-two component, assuming normalization and exact arithmetic.
63.Power iteration starts exactly orthogonal to the dominant eigenvector of a real symmetric matrix. What limitation can occur in exact arithmetic?
Show answer and explanation
- It cannot acquire that component.
- It makes the matrix nonsymmetric.
- It always converges to the dominant vector anyway.
- It changes the dominant eigenvalue.
Answer: It cannot acquire that component.
The invariant subspace generated from the initial vector lacks the missing eigendirection. Rounding may perturb this, but it is not a justification for the exact claim.
64.A real symmetric eigenproblem returns v with norm one. Which residual checks the claimed eigenpair (λ,v)?
Show answer and explanation
- A−λI without applying it to v
- vᵀv−λ
- Av−λv
- AᵀA−I
Answer: Av−λv
The eigenpair equation is Av=λv. Normalizing v makes its residual magnitude easier to interpret but does not establish accuracy by itself.
65.Two unit eigenvectors from separate runs differ only by sign. What follows about their represented one-dimensional eigenspace?
Show answer and explanation
- The eigenspace has doubled dimension.
- The eigenvalues must have opposite signs.
- It is the same.
- One vector must be wrong.
Answer: It is the same.
v and −v span the same line. Sign-invariant comparisons avoid reporting a false disagreement.
66.A repeated eigenvalue has a two-dimensional eigenspace. Why might individual returned eigenvectors differ across stable implementations?
Show answer and explanation
- Only one basis can be orthogonal.
- Every component must agree bitwise.
- The eigenvalue must be complex.
- Different bases can span the same space.
Answer: Different bases can span the same space.
Basis vectors within a degenerate eigenspace are not uniquely determined. Compare subspaces and residuals rather than individual coordinates alone.
67.For A=
diag(3,−1)and v=(1,0), what is the Rayleigh quotient vᵀAv/(vᵀv)?Show answer and explanation
- −1
- 2
- 3
- 9
Answer: 3
Av=(3,0), the numerator is three, and the denominator is one.
68.A symmetric matrix's smallest singular value is tiny, but its largest eigenvalue is moderate. What concern remains for solving Ax=b?
Show answer and explanation
- A mandatory zero residual for every x
- Sensitivity near a null direction
- Guaranteed exact inversion
- Automatic full relative accuracy
Answer: Sensitivity near a null direction
The largest eigenvalue alone does not control inverse sensitivity. A small singular value indicates weak response along some direction.
69.An SVD truncation retains only the three largest singular values of a rank-eight matrix. What rank does the resulting approximation have if those three are nonzero?
Show answer and explanation
- 5
- 3
- 8
- 24
Answer: 3
Three retained nonzero singular components produce a rank-three approximation. Truncation changes the represented operator.
70.For a real symmetric matrix, numerical eigenvectors for distinct eigenvalues should satisfy what exact-theory relationship?
Show answer and explanation
- Orthogonality
- A sum of zero eigenvalues
- Equal componentwise signs
- Equal Euclidean entries
Answer: Orthogonality
Symmetry gives orthogonality of eigenspaces for distinct eigenvalues. Finite-precision algorithms should maintain this approximately.
71.An eigenpair has a small residual in a highly nonnormal matrix. What deserves caution?
Show answer and explanation
- Whether the vector has any components
- Whether the residual equation is defined
- Interpreting that as a small eigenvalue error universally
- The existence of complex arithmetic itself
Answer: Interpreting that as a small eigenvalue error universally
Nonnormal spectral sensitivity can be large. Residual size alone does not give a universal sharp eigenvalue-error guarantee without additional structure.
72.An inverse iteration uses A−σI with σ close to a target eigenvalue. What numerical issue accompanies the desired selectivity?
Show answer and explanation
- An exact zero shifted residual before solving
- A reduced original matrix dimension
- An ill-conditioned shifted solve
- A guaranteed diagonal shifted matrix
Answer: An ill-conditioned shifted solve
A nearby shift amplifies the desired spectral component but makes the shifted system nearly singular. Solve reliability matters.
73.A principal component loading vector changes sign, with its score vector also negated. What happens to their outer-product reconstruction?
Show answer and explanation
- It is unchanged.
- It is negated.
- Its entries become absolute values.
- Its rank doubles.
Answer: It is unchanged.
Multiplying both factors by −1 cancels in their product. Sign choices in a component representation need not alter the reconstruction.
74.A centered data matrix has singular values 6 and 2. What fraction of the sum of squared singular values comes from the first component?
Show answer and explanation
- 80%
- 90%
- 60%
- 75%
Answer: 90%
The fraction is 6²/(6²+2²)=36/40=0.9. Singular values themselves, rather than their squares, give a different ratio.
75.PCA on unscaled mixed-unit features is dominated by one high-variance feature. Which decision should be made scientifically?
Show answer and explanation
- Always interpret raw variance as feature importance
- Always delete the dominant feature
- Whether the intended metric calls for standardization
- Multiply every observation by the same scalar to fix relative units
Answer: Whether the intended metric calls for standardization
Feature scaling changes the geometry and meaning of PCA. Choose it according to the task rather than treat either scaling choice as universally correct.
76.A randomized low-rank approximation is accurate on one random draw. What strengthens confidence in its reported quality?
Show answer and explanation
- Residual checks and appropriate repeated or bounded assessment
- Only a larger oversampling count without measuring error
- Only repeatability with identical random draws
- A claim that randomization guarantees exact rank recovery
Answer: Residual checks and appropriate repeated or bounded assessment
Assess approximation error relative to the application. Randomization alone does not establish a particular accuracy for a given realization.
77.A matrix is square and sparse. Does that alone justify treating all eigenvalues as real?
Show answer and explanation
- No; symmetry or other structure matters.
- Yes; square shape forces a real spectrum.
- Yes; sparsity forces real eigenvalues.
- No; sparse matrices never have real eigenvalues.
Answer: No; symmetry or other structure matters.
Real nonsymmetric matrices can have complex conjugate eigenvalues. Storage sparsity does not determine spectral reality.
78.A low-rank covariance approximation matches the largest modes but misses a scientifically important rare direction. What should evaluation include?
Show answer and explanation
- Only the largest singular value
- Only total retained variance
- Error in task-relevant directions
- The approximation's smaller file size alone
Answer: Error in task-relevant directions
A global variance metric may hide errors in small but consequential directions. Evaluate the quantities relevant to the scientific use.
79.A Lanczos run produces apparent duplicate Ritz values after many steps. What finite-precision issue merits investigation?
Show answer and explanation
- Loss of basis orthogonality
- Automatic disappearance of the true eigenvalues
- Only a repeated output label
- A proof the matrix has changed shape
Answer: Loss of basis orthogonality
Loss of orthogonality can produce spurious repeated approximations. Appropriate checks or reorthogonalization can be needed.
80.A reported spectral gap is smaller than the estimated numerical uncertainty in the eigenvalues. What interpretation is warranted?
Show answer and explanation
- The gap is proved exactly zero.
- The computation proves two distinct physical states.
- The claimed gap is not numerically resolved.
- The eigenvectors must be identical.
Answer: The claimed gap is not numerically resolved.
Distinguishing a small gap requires accuracy sufficient to separate it from numerical error. Unresolved does not mean exactly absent.
81.For orthogonal Q in real arithmetic, how does multiplying a vector by Q affect its Euclidean norm?
Show answer and explanation
- It replaces the norm by the trace.
- It preserves the norm.
- It scales by the matrix dimension.
- It squares the norm.
Answer: It preserves the norm.
QᵀQ=I gives norm(Qx)²=xᵀQᵀQx=xᵀx. This explains the numerical usefulness of orthogonal transformations.
82.A noisy inverse problem fits observations almost perfectly but yields oscillatory, unstable coefficients. Which strategy directly addresses this tradeoff?
Show answer and explanation
- Regularization
- Replacing the observation noise estimate by zero
- Demanding an even smaller training residual only
- Increasing displayed decimal places
Answer: Regularization
Regularization trades data fit against prior structure or complexity. It changes the estimator and should be justified and assessed.
83.Ridge regression minimizes
norm(Ax−b)²+λnorm(x)² with λ>0. For A=I and b=(6,−3), what is x when λ=2?Show answer and explanation
- (2,−1)
- (3,−1.5)
- (6,−3)
- (12,−6)
Answer: (2,−1)
The normal equations are (I+2I)x=b, giving x=b/3. The penalty shrinks the coefficients.
84.An inverse problem has a direction z with Az=0. What can observations b identify about moving x along z without extra assumptions?
Show answer and explanation
- Nothing through those measurements
- The unique correct displacement
- The sign of the displacement always
- The displacement's exact variance automatically
Answer: Nothing through those measurements
x and x+tz have identical predictions. A regularizer can select among them, but that selection is not information supplied by the measurements.
85.A regularization parameter is selected using the same noisy data on which final predictive performance is reported. What should be examined?
Show answer and explanation
- Selection bias in the reported evaluation
- Only whether the matrix was square
- Only the residual's output precision
- A proof that regularization failed
Answer: Selection bias in the reported evaluation
Tuning and evaluation on the same observations can overstate performance. A suitable validation design should reflect the intended use and dependence structure.
86.Weighted least squares assigns inverse-variance weights. Observation variances are 1 and 4. What relative weights follow?
Show answer and explanation
- 1 and 0.25
- 0.5 and 0.25
- 1 and 2
- 1 and 4
Answer: 1 and 0.25
Inverse-variance weights are 1/1 and 1/4. In a whitened residual formulation, square roots of these weights multiply residuals.
87.Errors have known non-diagonal covariance Σ. What does generalized least squares need to account for?
Show answer and explanation
- Only the number of nonzero responses
- An assumption all measurements are independent
- Correlations as well as marginal scales
- Only the diagonal of A
Answer: Correlations as well as marginal scales
The quadratic residual form uses Σ⁻¹ when appropriate and nonsingular. Ignoring correlation changes the error model and uncertainty calculation.
88.A whitened residual is defined as L⁻¹(b−Ax), with Σ=LLᵀ. What is its squared Euclidean norm equal to?
Show answer and explanation
- rᵀLr
- rᵀΣ⁻¹r
- rᵀΣr
- The determinant of Σ
Answer: rᵀΣ⁻¹r
With r=b−Ax, norm(L⁻¹r)²=rᵀL⁻ᵀL⁻¹r=rᵀΣ⁻¹r. Factor solves can apply this without explicitly forming Σ⁻¹.
89.A covariance matrix is theoretically positive semidefinite but estimated eigenvalues include a materially negative value. What should be checked?
Show answer and explanation
- Only whether the diagonal sum is positive
- A guarantee negative variances are physically valid
- Accepting it whenever every marginal variance is positive
- Estimation and numerical consistency
Answer: Estimation and numerical consistency
Positive diagonal entries or trace do not ensure positive semidefiniteness. Investigate construction, estimation, precision, and any proposed repair.
90.Two parameters have nearly collinear sensitivity columns. What can happen even with many observations?
Show answer and explanation
- Poor separate parameter identification
- Guaranteed low uncertainty for both parameters
- Automatic removal of measurement noise
- Exactly independent parameter estimates
Answer: Poor separate parameter identification
Many observations do not necessarily distinguish nearly equivalent parameter effects. Experimental design or defensible constraints may be needed.
91.A linearized uncertainty estimate treats a strongly nonlinear inverse model as linear over a broad uncertainty range. What should be assessed?
Show answer and explanation
- Whether the Jacobian is stored densely
- A guarantee all posterior shapes are Gaussian
- Validity of that local approximation
- Only the number of output digits
Answer: Validity of that local approximation
Local covariance approximations can miss curvature, asymmetry, or multiple modes. Check whether the approximation is adequate for the intended uncertainty claim.
92.A finite-difference Jacobian changes drastically when the perturbation becomes extremely small. Which competing numerical effects matter?
Show answer and explanation
- Truncation and rounding
- Only the sign of the parameter
- The count of recorded observations alone
- Only exact matrix rank
Answer: Truncation and rounding
Smaller finite-difference steps reduce truncation error only until rounding, cancellation, or solver noise dominates.
93.A complex-step derivative is proposed for code that takes absolute values and branches on sign. What premise requires scrutiny?
Show answer and explanation
- Only the final derivative's unit
- Only whether memory is contiguous
- A guarantee every real function is holomorphic
- Compatibility with the complex extension
Answer: Compatibility with the complex extension
Complex-step reasoning depends on an appropriate analytic extension and implementation. Nonanalytic operations or branching can invalidate a naive use.
94.A sensitivity coefficient is reported per meter, but a parameter is later represented in centimeters. What must happen?
Show answer and explanation
- Leave the derivative's numeric value unchanged always.
- Transform the derivative consistently with units.
- Square it to compensate for scaling.
- Set it to zero because units changed.
Answer: Transform the derivative consistently with units.
A derivative changes under reparameterization by the chain rule. Numerical sensitivity statements need a consistent parameterization and unit convention.
95.A model imposes x₁+x₂=1, but an unconstrained least-squares solver returns coefficients summing to 1.4. What is missing?
Show answer and explanation
- A mandatory switch to integer arithmetic
- Only a smaller matrix printout
- Proof that the observations are all wrong
- Enforcement of the stated constraint
Answer: Enforcement of the stated constraint
An unconstrained fit need not obey the scientific constraint. Use a method or parameterization that represents it and assess feasibility.
96.An NNLS problem requires nonnegative coefficients. An unconstrained minimum has one negative coefficient. Which response respects the problem?
Show answer and explanation
- Negate all observations.
- Clip the coefficient and assume optimality.
- Solve the constrained optimization problem.
- Declare the system unsolvable without checking.
Answer: Solve the constrained optimization problem.
Clipping a coupled unconstrained solution need not produce the constrained optimum. The objective and feasible set must be handled together.
97.A regularized inverse fit becomes stable as λ increases, but its predicted signal is systematically flattened. What tradeoff is visible?
Show answer and explanation
- Bias versus sensitivity reduction
- A change in observation count
- Elimination of all uncertainty
- A proof of exact recovery
Answer: Bias versus sensitivity reduction
Stronger regularization can reduce variability and amplification while introducing bias. Stability alone does not certify scientific adequacy.
98.A parameter fit is uniquely selected by a penalty despite a rank-deficient data matrix. What should a report distinguish?
Show answer and explanation
- Only the optimizer’s final objective value
- Only whether the penalized Hessian is nonsingular
- Only whether one data-fitting vector can be computed
- Data information from regularization assumptions
Answer: Data information from regularization assumptions
Uniqueness of the penalized solution can come from added assumptions. It should not be presented as identification by observations alone.
99.A research claim depends on x₁, but evaluation reports only the full residual norm. What additional quantity is useful?
Show answer and explanation
- Error or sensitivity in x₁ itself
- Only the norm of b
- Only the largest entry in A
- Only whether a global residual threshold was met
Answer: Error or sensitivity in x₁ itself
The relevant output can be sensitive even when the global residual is small. Assess the quantity on which the scientific conclusion depends.
100.A=
diag(1,10⁻⁶), b=(1,10⁻⁶), and a computed vector is x̃=(1,0). What pair describes its 2-norm residual and absolute solution error?Show answer and explanation
- 10⁻⁶ and 1
- 10⁻⁶ and 0
- 1 and 10⁻⁶
- 1 and 1
Answer: 10⁻⁶ and 1
The exact solution is (1,1). The residual is (0,10⁻⁶), but the solution error is (0,−1). This is a concrete example of residual and forward error differing.
101.A measurement equation is x₁+x₂=4 with no other data. A minimum-norm algorithm returns (2,2). Which claim is supported?
Show answer and explanation
- Every other coefficient pair has a nonzero residual.
- The data establish that both physical effects are identical.
- The observations uniquely identify both coefficients as two.
- The algorithm selected the smallest-norm data-fitting pair.
Answer: The algorithm selected the smallest-norm data-fitting pair.
All pairs (t,4−t) fit exactly. Minimizing t²+(4−t)² selects t=2, but that extra selection rule does not create separate data identification.