Machine Learning Lecture Note 001 -- Linear Algebra Review

Matrices and Vectors

  • Matrices

2-dimensional arrays

Dimension = num row * num col

A_{ij} refers to the element in the ith row and jth column of matrix A

  • Vectors

1-dimenstional arrays with one column and many rows

A vector with 'n' rows is referred to as an 'n'-dimensional vector, or R^{n}

Dimension = num of rows

V_{i} refers to the element in the ith row of the vector.

 

Matrix addition

  • 相同dimensions可加,不同dimensions不可加

  • 相加时把对应matrix的A_{ij} 元素相加即可

 

Scalar multiplication

  • Multiply the scalar to each and every element in the matrix -- n \cdot A_{ij} 

 

Matrix-Matrix Multiplication

  • m x n multiplied by n x o matrix = m x o.
  • e.g. a 3 x 2 matrix times a 2 x 2 matrix resulted in a 3 x 2 matrix.

矩阵相乘性质:

  • 交换律不成立 A X B != B X A

  • 结合律成立 (A X B) X C = A X (B X C)

 

Identity Matrix

  • 对角线都是1

  • 性质:

For any matrix A (m x n), there exist identity matrix I (n x n) that satisfies –

A X I = I X A = A

 

Matrix Inverse

If matrix A is a square matrix (m x m), and it has an inverse (not ‘singular’ or ‘degenerated’), then

A x A^{-1}= A^{-1} x A = I

 

Singular/ degenerated matrix

Matrix that does not have an inverse

 

Matrix Transpose

行列交换,e.g. A is 3 x 2, then A^{T} is 2 x 3

 is the same as 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值