Lesson 12 of 60
pythonLinear Algebra Basics with NumPy
30 minutes
Course progress20%
Linear Algebra Basics
Linear algebra is at the heart of many data‑science algorithms (e.g., PCA, regression).
Why it matters
- Vectors represent features.
- Matrices represent data tables or transformations.
Performing basic operations
import numpy as np
# Dot product (vector)
v = np.array([, , ])
w = np.array([, , ])
(, np.dot(v, w))
A = np.array([[, ], [, ]])
B = np.array([[, ], [, ]])
C = A @ B
(, C)