“This is the 21st day of my participation in the First Challenge 2022. For details: First Challenge 2022.”
@TOC
preface
Hello! Friend!!! ଘ(੭, ᵕ)੭ Nickname: Haihong Name: program monkey | C++ player | Student profile: Because of C language, I got acquainted with programming, and then transferred to the computer major, and had the honor to win some state awards, provincial awards… Has been confirmed. Currently learning C++/Linux/Python learning experience: solid foundation + more notes + more code + more thinking + learn English! Machine learning small white stage article only as their own learning notes for the establishment of knowledge system and review know why!
The articles
Matrix theory for Machine Learning (1) : Sets and Mappings
Matrix Theory for Machine Learning (2) : Definitions and Properties of linear Spaces
Matrix theory (3) : Bases and coordinates of linear Spaces
Matrix theory for Machine Learning (4) : Basis transformation and coordinate transformation
Matrix theory for Machine Learning (5) : Linear subspaces
Matrix theory (6) : Intersection and sum of subspaces
2.1 Euclidean space
2.1.1 Euclidean space definition
Definition 2.1
Let VVV be a linear space over the real number field RRR. If any two vectors α,β\alpha,\betaα,β in VVV correspond to a unique and definite real number according to a certain rule, they are written as (α,β)(\alpha,\beta)(α,β), And (α,β)(\alpha,\beta)(α,β) satisfies:
- For any alpha, beta, ∈ V \ alpha, beta \ V in alpha, beta ∈ V, a (alpha, beta) = (beta, alpha) (, alpha, and beta) = (, beta, and alpha) (alpha, beta) = (beta, alpha)
- For any α,β,γ∈V\alpha,\beta,\gamma\in Vα,β,γ∈V, Have (alpha + beta, gamma) = (alpha and gamma) + (beta, gamma) (, alpha + \ beta, and gamma) = (, alpha, and gamma) + (, beta, and gamma) (alpha + beta, gamma) = (alpha and gamma) + (beta, gamma)
- For arbitrary k ∈ R, alpha, beta, ∈ vitamin k \ in R, \ alpha, beta \ in vitamin k ∈ R, alpha, beta ∈ V, (k alpha, beta) = k (alpha, beta) (k \ alpha, beta) = k (, alpha, and beta) (k alpha, beta) = k (alpha, beta)
- For any alpha, alpha and alpha in V ∈ V ∈ V, a (alpha, alpha) or 0 (, alpha, and alpha) \ geq0 (alpha, alpha) or 0, if and only if the alpha = 0 \ alpha = 0 alpha = 0, (alpha, alpha) = 0 (, alpha, and alpha) = 0 (alpha, alpha) = 0
Say (alpha, beta) (, alpha, and beta) (alpha, beta) is a vector of alpha \ alpha alpha and beta \ beta beta inner product
The real linear space VVV that defines the inner product is called Euclidean space, or Euclidean space for short
Example 1
In NNN dimensional vector space RnR^nRn, for any vector α=(a1, A2… , an), beta = (b1, b2,… ,bn)\alpha=(a_1,a_2,… ,a_n),\beta=(b_1,b_2,… , b_n) alpha = (a1, a2,… , an), beta = (b1, b2,… , BN) Definition rules:
Try to show that RnR^nRn on the inner product (α,β)(\alpha,\beta)(α,β) into a Euclidean space
prove
Let α,β∈Rn\alpha,\beta\in R^nα,β∈Rn, where α=(a1, A2… , an), beta = (b1, b2,… ,bn)\alpha=(a_1,a_2,… ,a_n),\beta=(b_1,b_2,… , b_n) alpha = (a1, a2,… , an), beta = (b1, b2,… ,bn)
According to the definition of the law:
get
To set a gamma ∈ Rn, gamma = (c1, c2,… ,cn)\gamma\in R^n,\gamma=(c_1,c_2,… And c_n) gamma ∈ Rn, gamma = (c1, c2,… , cn), there is
Set k ∈ fairly Rk \ in fairly Rk ∈ R, there is
For any α∈Rn\alpha\in R^nα∈Rn
easy
If and only if α=0\alpha=0α=0, i.e. a1=a2=…. =an=0a_1=a_2=…. =a_n=0a1=a2=…. = the an = 0, (alpha, alpha) = 0 (, alpha, and alpha) = 0 (alpha, alpha) = 0
To sum up, RnR^nRn is a Euclidean space with respect to the inner product (α,β)(\alpha,\beta)(α,β)
Example 2
Rn in NNN dimension x nR ^ {n * n} Rn * n, for any vector A = (aij) n * n, B = (bij) n * nA = (a_ {ij}) _ {n * n}, B = (b_ {ij}) _ {n * n} A = (aij) n * n, B = (bij) n * n, defined rules
There are
Supplement knowledge
Tr(A)Tr(A)Tr(A) : The trace of the matrix A
Let A=(aijA=(a_{ij}A=(aij) be an NNN square matrix (that is, A matrix of N × NN ×nn×n), and the sum of the diagonal elements of AAA is called the trace of AAA
Write it as trA or Tr(A)trA or Tr(A)trA or Tr(A), i.e
Because,
prove
You can get
Note: (alpha, beta) 2 or less (alpha, alpha, beta, beta) ⇒ (alpha, beta) or less (alpha, alpha, beta, beta) (, alpha, and beta) ^ 2 \ leq (), alpha, and alpha, beta, and beta) , quad, Rightarrow, quad (, alpha, and beta) \ leq \ SQRT {(), alpha, and alpha, beta, and beta)} (alpha, beta) 2 (alpha, alpha) or less (beta, beta) ⇒ (alpha, beta) (alpha, alpha) or less (beta, beta)
Proposition 2
prove
The alpha = (alpha – beta) + beta \ alpha = (\ alpha – \ beta) + \ beta alpha = (alpha – beta) + beta, get it
namely
Transposition to
prove
Proposition 3
If α\alphaα is orthogonal to β\betaβ, Is ∣ alpha + beta ∣ 2 + 2 = ∣ alpha ∣ ∣ beta ∣ \ lvert \ \ beta alpha + 2 \ rvert ^ 2 = \ lvert \ alpha \ rvert ^ 2 + \ lvert \ beta \ rvert ∣ alpha ^ 2 + 2 = ∣ alpha beta ∣ ∣ ∣ beta ∣ 2 + 2
prove
Because alpha \ alpha alpha and beta \ beta beta orthogonal, so (alpha, beta) = 0 (, alpha, and beta) = 0 (alpha, beta) = 0, too
namely
conclusion
Description:
- Refer to matrix Theory in your textbook
- With the book concept explanation combined with some of their own understanding and thinking
The essay is just a study note, recording a process from 0 to 1
Hope to have a little help to you, if there is a mistake welcome small partners correct