Linear Algebra and Probability Review for Machine Learning and Data Science, Lecture notes of Mathematical Methods

Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods Machine learning ensemble methods

Typology: Lecture notes

2020/2021

Uploaded on 02/24/2023

yasmin-jwabreh
yasmin-jwabreh ๐Ÿ‡ต๐Ÿ‡ธ

5 documents

1 / 36

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ENCS5341
Machine Learning and Data Science
Linear Algebra and Probability Review
Yaz an Ab u F arh a -Birzeit University
Slides are based on Stanford CS229 course
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Linear Algebra and Probability Review for Machine Learning and Data Science and more Lecture notes Mathematical Methods in PDF only on Docsity!

ENCS

Machine Learning and Data Science

Linear Algebra and Probability Review

Yazan Abu Farha - Birzeit University Slides are based on Stanford CS229 course

Linear Algebra

The Identity Matrix

  • The identity matrix, denoted ๐ผ โˆˆ โ„ !ร—! , is a square matrix with ones on the diagonal and zeros everywhere else. That is, ๐ผ'( = -
  • It has the property that for all ๐ด โˆˆ โ„ $ร—! , ๐ด๐ผ = ๐ด
  • Ex: ๐ผ# =

Diagonal matrices

  • A diagonal matrix is a matrix where all non-diagonal elements are 0. This is typically denoted ๐ท = ๐‘‘๐‘–๐‘Ž๐‘”(๐‘‘", ๐‘‘#, โ€ฆ , ๐‘‘!), with ๐ท'( = -
  • For example the identity matrix ๐ผ = ๐‘‘๐‘–๐‘Ž๐‘” ( 1 , 1 , โ€ฆ , 1 )

Matrix-Vector Product

  • If we write A by rows, then we can express Ax as,

Matrix-Vector Product

  • If we write A by columns, then we have: y is a linear combination of the columns of A.

Matrix-Vector Product

  • It is also possible to multiply on the left by a row vector.
    • expressing A in terms of rows we have y T is a linear combination of the rows of A.

Matrix-Matrix Multiplication (different views)

  1. As a set of vector-vector products (dot product)
  2. As a sum of outer products

Matrix-Matrix Multiplication (properties)

  • Associative: (AB)C = A(BC).
  • Distributive: A(B + C) = AB + AC.
  • In general, not commutative; that is, it can be the case that AB โ‰  BA. (For example, if ๐ด โˆˆ โ„ $ร—! and B โˆˆ โ„ !ร—* , the matrix product BA does not even exist if m and q are not equal!)

The Transpose

  • The transpose of a matrix results from โ€œflippingโ€ the rows and columns. Given a matrix ๐ด โˆˆ โ„ $ร—! , its transpose, written ๐ด & โˆˆ โ„ !ร—$ , is the n ร— m matrix whose entries are given by
  • The following properties of transposes are easily verified:

Examples of Norms

The Inverse of a Square Matrix

Probability Theory

Definitions, Axioms, and Corollaries