0
0
SciPydata~5 mins

Eigenvalues and eigenvectors (eig) in SciPy - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is an eigenvalue in the context of a matrix?
An eigenvalue is a special number that shows how much a matrix stretches or shrinks a vector when multiplied by it. It tells us the factor by which the vector changes length.
Click to reveal answer
beginner
What is an eigenvector?
An eigenvector is a vector that does not change direction when a matrix multiplies it. It may get longer or shorter, but it points the same way.
Click to reveal answer
beginner
How do you compute eigenvalues and eigenvectors using scipy?
You use the function scipy.linalg.eig(matrix). It returns two arrays: one for eigenvalues and one for eigenvectors.
Click to reveal answer
intermediate
Why are eigenvalues and eigenvectors important in data science?
They help us understand data patterns, reduce data size, and find directions of maximum variance, like in Principal Component Analysis (PCA).
Click to reveal answer
intermediate
What does it mean if an eigenvalue is zero?
A zero eigenvalue means the matrix squashes some vectors completely to zero, showing that the matrix is not invertible and loses some information.
Click to reveal answer
Which function in scipy computes eigenvalues and eigenvectors?
Ascipy.linalg.solve
Bscipy.linalg.inv
Cscipy.linalg.det
Dscipy.linalg.eig
What does an eigenvector do when multiplied by its matrix?
AChanges length but not direction
BRemains unchanged
CChanges both length and direction
DChanges direction but not length
If a matrix has an eigenvalue of zero, what does it imply?
AThe matrix is diagonal
BThe matrix is invertible
CThe matrix is singular (not invertible)
DThe matrix is identity
Which of these is a use of eigenvalues and eigenvectors in data science?
ASorting data alphabetically
BReducing data dimensions with PCA
CCalculating averages
DCounting missing values
What do the outputs of scipy.linalg.eig represent?
AEigenvalues and eigenvectors
BMatrix inverse and determinant
CMatrix rank and trace
DSingular values and vectors
Explain in your own words what eigenvalues and eigenvectors are and why they matter.
Think about how a matrix changes vectors and what stays the same.
You got /3 concepts.
    Describe how you would use scipy to find eigenvalues and eigenvectors of a matrix.
    Focus on the function name and what it returns.
    You got /3 concepts.