Đại học Kinh tế Quốc dân – National Economics UniversityMICRO4ASIA
🏆 Arena
Sign inSign up
MICRO4ASIAThe six micro-credentials

Courses are delivered on the Limio learning platform. Limio

← Mathematical Foundations for Data Science

You are viewing a public preview

Sign in to save your progress, do assignments, join discussions and get feedback.

Sign in
Part I — Linear Algebra

Topic 2 · Matrix Operations and Inverse Matrices

Print / Save as PDF
Lecture video — Topic 2: Matrix Operations and Inverse Matrices

Special matrices, addition, scalar multiplication, matrix product, transpose, inverse and Gauss-Jordan.

Flashcards · Matrix operations and inverses

9 words
WordMeaningExample
  • Shape of a product

    (m × k)(k × n) = m × n. Inner dimensions must agree; the result has the outer dimensions.

    2×3 times 3×4 gives 2×4; the product in the other order is undefined.

  • Entry of a product

    (AB)ᵢⱼ = Σₚ aᵢₚ bₚⱼ: row i of A times column j of B.

  • AB versus BA

    Matrix multiplication is not commutative: in general AB ≠ BA. It is associative and distributes over addition.

  • Ax as a combination of columns

    Ax = x₁a₁ + … + xₙaₙ. Ax = b asks whether b is a weighted combination of the columns of A.

  • Transpose

    (Aᵀ)ᵢⱼ = aⱼᵢ: rows become columns, m × n becomes n × m. (AB)ᵀ = BᵀAᵀ; (A + B)ᵀ = Aᵀ + Bᵀ; (cA)ᵀ = cAᵀ.

  • Invertible matrix

    Square A with A⁻¹ such that AA⁻¹ = A⁻¹A = I. The inverse, if it exists, is unique. A matrix without an inverse is singular.

  • 2 × 2 inverse

    For [[a, b], [c, d]]: A⁻¹ = 1/(ad − bc) · [[d, −b], [−c, a]], provided ad − bc ≠ 0.

  • Gauss–Jordan inversion

    Row-reduce [A | I]. If the left block becomes I, the right block is A⁻¹; a zero row in the left block means A is singular.

  • Inverse laws

    (AB)⁻¹ = B⁻¹A⁻¹, (Aᵀ)⁻¹ = (A⁻¹)ᵀ, (A⁻¹)⁻¹ = A, (cA)⁻¹ = c⁻¹A⁻¹ for c ≠ 0.

    There is no rule for (A + B)⁻¹.

Practice in Python

Work through Section 2 of Lab 1 (Linear Algebra with NumPy, MFDS_Lab1_Linear_Algebra.ipynb), attached to the Part I materials lesson at the start of this part.