Linear System : Set of Equations
- A system of linear equations (or a linear system) is a collection of one or more linear equations involving the same variables
Linear System Example
- Suppose we have ((Feature A, B, C), y) dataset
Feature A | Feature B | Feature C | label |
---|
2 | 2 | 1 | 6 |
3 | 1 | 0 | 14 |
1 | 3 | 1 | 18 |
- What we have to do is just solving the linear system below
2x1+2x2+1x3=6
3x1+1x2+0x3=14
1x1+3x2+1x3=18
- The essential information of a linear system can be written compactly using a matrix like below
Ax=b
where A=⎣⎢⎡231213101⎦⎥⎤, x=⎣⎢⎡x1x2x3⎦⎥⎤, b=⎣⎢⎡61418⎦⎥⎤
From Multiple Equations to Single Matrix Equation
2x1+2x2+1x3=6
3x1+1x2+0x3=14
1x1+3x2+1x3=18
⎣⎢⎡231213101⎦⎥⎤⎣⎢⎡x1x2x3⎦⎥⎤=⎣⎢⎡61418⎦⎥⎤
Identity Matrix
-
Definition : an identity matrix is a square matrix whose diagonal entries are all 1's, and other entries are zeros
- e.g. I3=⎣⎢⎡100010001⎦⎥⎤
-
Identity matrix In preserves any vector x∈Rn after multiplying x by In
- ∀x∈Rn, Inx=x