3.1 Matrices and vectors

Matrix: Rectangular array of numbers. (A B C)

Dimension of matrix : number of rows x number of columns

Matrix Elements (entires of matrix) : AijA_{ij}

Vector: An n x 1 matrix. (a, b, c)

1- indexed vs 0- indexed :

y=\left\lbrack\matrix{y_1\y_2\y_3\y_4}\right\rbrack vs y=\left\lbrack\matrix{y_0\y_1\y_2\y_3}\right\rbrack
又是一段CSDN显示不出来的公式…

Machine Learning Andrew Ng -3. Linear Algebra review

we use 1- indexed

3.2 Addition and scalar multiplication(标量乘法)

3.3 Matrix-vector multiplication

House sizes : \matrix{2104 \ 1416\1532\852} \quad \quad h_{\theta}(x)=-40+0.25x
matrix : \left\lbrack\matrix{1 & 2104\1 & 1416\1&1532\1&852}\right\rbrack \times \left\lbrack\matrix{-40\0.25}\right\rbrack =
依旧显示不出来

Machine Learning Andrew Ng -3. Linear Algebra review

3.4 Matrix-matrix multiplication

House sizes : \matrix{2104 \ 1416\1532\852}

Machine Learning Andrew Ng -3. Linear Algebra review

  1. hθ(x)=40+0.25x\quad h_{\theta}(x)=-40+0.25x
  2. hθ(x)=200+0.1x\quad h_{\theta}(x)=200+0.1x
  3. hθ(x)=150+0.4x\quad h_{\theta}(x)=-150+0.4x

matrix : \left\lbrack\matrix{1 & 2104\1 & 1416\1&1532\1&852}\right\rbrack \times \left\lbrack\matrix{-40&200&-150\0.25&0.1&0.4}\right\rbrack =

Machine Learning Andrew Ng -3. Linear Algebra review

3.5 Matrix multiplication properties

A×BB×AA\times B \neq B \times A

A×B×C=A×(B×C)=(A×B)×CA \times B \times C=A \times (B \times C)=(A \times B) \times C

Identity Matrix: In×nI_{n\times n}

3.6 Inverse and transpose(逆和转置)

Matrices that don’t have an inverse are “singular” (奇异) or “degenerate” (退化)

相关文章:

  • 2021-11-29
  • 2021-07-03
  • 2021-12-21
  • 2022-12-23
  • 2021-07-21
  • 2021-07-19
  • 2021-06-28
  • 2021-05-11
猜你喜欢
  • 2021-08-04
  • 2021-11-12
  • 2021-10-08
  • 2021-09-12
  • 2021-06-07
  • 2022-01-06
  • 2021-11-20
相关资源
相似解决方案