Bird
0
0

Why might scipy.linalg.inv fail or produce inaccurate results on some matrices?

hard📝 Conceptual Q10 of 15
SciPy - Linear Algebra (scipy.linalg)
Why might scipy.linalg.inv fail or produce inaccurate results on some matrices?
ABecause the matrix contains negative numbers
BBecause the matrix is nearly singular or ill-conditioned, causing numerical instability
CBecause the matrix is too large to invert
DBecause the matrix is symmetric
Step-by-Step Solution
Solution:
  1. Step 1: Understand numerical stability in matrix inversion

    Matrices that are nearly singular or ill-conditioned have very small determinants, causing unstable inversion.
  2. Step 2: Identify cause of failure or inaccuracy

    Numerical errors arise from floating point precision limits in such cases.
  3. Final Answer:

    Because the matrix is nearly singular or ill-conditioned, causing numerical instability -> Option B
  4. Quick Check:

    Ill-conditioned matrices cause inversion errors [OK]
Quick Trick: Near-singular matrices cause unstable inverses [OK]
Common Mistakes:
MISTAKES
  • Blaming negative numbers
  • Assuming size alone causes failure
  • Confusing symmetry with error cause

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes