A-1 = 1/det(A)*Ct
C 是A的 余子式矩阵
克莱默法则
Ax=b
x=A-1b = > 1/det(A)*Ct*b
计算量超级大
行列式的值相当于某个物体的体积
detA = volume of a box
先从一个单位立方体开始 => det(cube) = 1
然后不同方向stretch. 或者变形之类的。可以看看其他的tutorial.
Monday, August 28, 2017
Sunday, August 27, 2017
linear algebra lecture 18 & 19 08/27/2017
lecture 18
行列式 det A |A|
性质:
1.
det I = 1
det singular matrix = 0
2.
exchange rows reverse the sign of det.
det Permutation matrix = -1/ 1 根据单位矩阵来的
|a b
c d | = ad-bc
3.
|ta tb
c d| = t |a b; c d|
4. if two rows are equal, the det is 0.
5. subtract l*row i from row k. det doesn't change (消元的感觉)
6. row of 0s => det A = 0
7.三角矩阵的det 是对角线的乘积
8. det A = 0 if when A is singular
9.
det AB = detA*det B
det A-1 = 1/det A
det A2 = (det A)2
det 2A= 2^n*det A
(like a volume)
10. |At| = |A|
|Ut*Lt| = |LU|
=>|Ut|*|Lt| = |L|*|U|
lecture 19
det A = sum (A1aA2b...Anw)
如果 a,b...w可以通过偶数次变换成为1,2,。。。n 那就是正数,
余子式:行列式中指定一个数,去掉所在行和所在列的剩余矩阵是其中一个余子式
cofactor
行列式 det A |A|
性质:
1.
det I = 1
det singular matrix = 0
2.
exchange rows reverse the sign of det.
det Permutation matrix = -1/ 1 根据单位矩阵来的
|a b
c d | = ad-bc
3.
|ta tb
c d| = t |a b; c d|
4. if two rows are equal, the det is 0.
5. subtract l*row i from row k. det doesn't change (消元的感觉)
6. row of 0s => det A = 0
7.三角矩阵的det 是对角线的乘积
8. det A = 0 if when A is singular
9.
det AB = detA*det B
det A-1 = 1/det A
det A2 = (det A)2
det 2A= 2^n*det A
(like a volume)
10. |At| = |A|
|Ut*Lt| = |LU|
=>|Ut|*|Lt| = |L|*|U|
lecture 19
det A = sum (A1aA2b...Anw)
如果 a,b...w可以通过偶数次变换成为1,2,。。。n 那就是正数,
余子式:行列式中指定一个数,去掉所在行和所在列的剩余矩阵是其中一个余子式
cofactor
Wednesday, August 23, 2017
linear algebra 08/23/2017 lecture 17
标准正交Q为什么好
QTQ = [q1t;q2t...]*[q1,12...]= [1,0...] 单元矩阵
projection matrix
P = Q(QtQ)-1Qt = QQt (=1 if Q is square)
gram-schmidt 正交化
QTQ = [q1t;q2t...]*[q1,12...]= [1,0...] 单元矩阵
projection matrix
P = Q(QtQ)-1Qt = QQt (=1 if Q is square)
gram-schmidt 正交化
Tuesday, August 22, 2017
Monday, August 21, 2017
linear algebra lecture 14 & 15 08/21/2017
lecture 14:
正交:
row space and null space 正交 orthogonal 因为A*x = 0
column space and null space of At 正交
Xt*y=0
subspace S is orthogonal to subspace T means that every vector in S is orthogonal to every vector in T.
Ax = b 可能没有solution
=> 变成这个更好 AtAx = Atb (best solution in this situation)
AtA不一定永远可逆
N(AtA) = N(A)
rank (AtA) = R(A)
AtA is invertible exactly if A has independent columns.
lecture 15:projections and least square
求b在a上面的投影p: (a,b是个向量)
正交 aT(b-xa) = 0
x = aTb/aTa
projection p = ax
p = a*aT/(aT*a) 是projection matrix
性质1:rank是1 因为是一行*一列得到的
性质2:Pt = P
性质3: P2 = P
Why project?
Because Ax = b may not have solution
solve Ax = p instead. p is the projection of b onto the column space. (等式右边是column space 的话肯定会有解)
AT(b-Ax_hat) = 0
=>ATAx = ATb
x = (ATA)-1ATb
p = A(ATA)-1ATb
projection matrix P = A(ATA)-1AT (不能再简化了,因为A不一定可逆,可能吧不是square matrix)
least square fitting by a line:
正交:
row space and null space 正交 orthogonal 因为A*x = 0
column space and null space of At 正交
Xt*y=0
subspace S is orthogonal to subspace T means that every vector in S is orthogonal to every vector in T.
Ax = b 可能没有solution
=> 变成这个更好 AtAx = Atb (best solution in this situation)
AtA不一定永远可逆
N(AtA) = N(A)
rank (AtA) = R(A)
AtA is invertible exactly if A has independent columns.
lecture 15:projections and least square
求b在a上面的投影p: (a,b是个向量)
正交 aT(b-xa) = 0
x = aTb/aTa
projection p = ax
p = a*aT/(aT*a) 是projection matrix
性质1:rank是1 因为是一行*一列得到的
性质2:Pt = P
性质3: P2 = P
Why project?
Because Ax = b may not have solution
solve Ax = p instead. p is the projection of b onto the column space. (等式右边是column space 的话肯定会有解)
AT(b-Ax_hat) = 0
=>ATAx = ATb
x = (ATA)-1ATb
p = A(ATA)-1ATb
projection matrix P = A(ATA)-1AT (不能再简化了,因为A不一定可逆,可能吧不是square matrix)
least square fitting by a line:
Friday, August 18, 2017
linear algebra 08/18/2017 lecture 12
lecture 12:
graph:
node - edge graph A (column 是 node; row 是edge)
现在看A的 null space
Euler's formula:
#nodes-#edges+#loops = 1
lecture 13:
u,v,w in Rt 构成一个 5*3 u rank = 3
N(u) = n-r = 0 只有零向量
r = m or r = n (full rank matrix )
graph:
node - edge graph A (column 是 node; row 是edge)
现在看A的 null space
Euler's formula:
#nodes-#edges+#loops = 1
lecture 13:
u,v,w in Rt 构成一个 5*3 u rank = 3
N(u) = n-r = 0 只有零向量
r = m or r = n (full rank matrix )
Thursday, August 17, 2017
linear algebra 08/17/2017 lecture 11
symmetric & upper triangular matrix = diagonal matrix. dimension = 3 in 3*3 matrix
Sum: symmetric or upper triangular matrix : take anything in S and anything in U. 不是并集,是相加。 所以可以得到all matrix. dimension (S+U) = 9 in 3*3 matrix
dim(S) +dim(U) = dim(S&U) + dim(S+U)
rank 1 matrix
example : A is 2*3 matrix
rank 1 matrix 像积木,eg. 一个rank 4 的matrix可以分解成4个rank 1 matrix的相乘
subset of rank 1 matrix can't form a sub space (两个rank 1 matrix相加可能得到一个rank 2 matrix)
In R4, V = [v1,v2,v3,v4], S is all v in R4 to make v1+v2+v3+v4 = 0
=>Av = 0 A = [1,1,1,1]
S 是A的null space. RA = 1 => S = R(N(A)) = n-r = 4-1 = 3
三个特殊解找出来即可
graph {nodes,edges}
Sum: symmetric or upper triangular matrix : take anything in S and anything in U. 不是并集,是相加。 所以可以得到all matrix. dimension (S+U) = 9 in 3*3 matrix
dim(S) +dim(U) = dim(S&U) + dim(S+U)
rank 1 matrix
example : A is 2*3 matrix
rank 1 matrix 像积木,eg. 一个rank 4 的matrix可以分解成4个rank 1 matrix的相乘
subset of rank 1 matrix can't form a sub space (两个rank 1 matrix相加可能得到一个rank 2 matrix)
In R4, V = [v1,v2,v3,v4], S is all v in R4 to make v1+v2+v3+v4 = 0
=>Av = 0 A = [1,1,1,1]
S 是A的null space. RA = 1 => S = R(N(A)) = n-r = 4-1 = 3
三个特殊解找出来即可
graph {nodes,edges}
Subscribe to:
Posts (Atom)
