SlideShare a Scribd company logo
Mathematics for Machine Learning: Linear Algebra
Formula Sheet
Vector operations
r + s = s + r
2r = r + r
r 2
=
i
r2
i
- dot or inner product:
r.s =
i
risi
commutative r.s = s.r
distributive r.(s + t) = r.s + r.t
associative r.(as) = a(r.s)
r.r = r 2
r.s = r s cos θ
- scalar and vector projection:
scalar projection:
r.s
r
vector projection:
r.s
r.r
r
Basis
A basis is a set of n vectors that:
(i) are not linear combinations of each other
(ii) span the space
The space is then n-dimensional.
Matrices
Ar = r
a b
c d
e
f
=
ae + bf
ce + df
A(nr) = n(Ar) = nr
A(r + s) = Ar + As
Identity: I =
1 0
0 1
clockwise rotation by θ:
cos θ sin θ
− sin θ cos θ
determinant of 2x2 matrix: det
a b
c d
= ad − bc
inverse of 2x2 matrix:
a b
c d
−1
=
1
ad − bc
d −b
−c a
- summation convention for multiplying matrices a and b:
abik =
j
aijbjk
Change of basis
Change from an original basis to a new, primed basis.
The columns of the transformation matrix B are the new
basis vectors in the original coordinate system. So
Br = r
where r is the vector in the B-basis, and r is the vector
in the original basis. Or;
r = B−1
r
If a matrix A is orthonormal (all the columns are of unit
size and orthogonal to eachother) then:
AT
= A−1
Gram-Schmidt process for constructing an
orthonormal basis
Start with n linearly independent basis vectors v =
{v1, v2, ..., vn}. Then
e1 =
v1
||v1||
u2 = v2 − (v2.e1)e1 so e2 =
u2
||u2||
... and so on for u3 being the remnant part of v3 not
composed of the preceding e-vectors, etc. ...
Transformation in a Plane or other object
First transform into the basis referred to the reflection
plane, or whichever; E−1
.
Then do the reflection or other transformation, in the
plane of the object TE.
Then transform back into the original basis E.
So our transformed vector r = ETEE−1
r.
Eigenstuff
To investigate the characteristics of the n by n matrix A,
you are looking for solutions the the equation,
Ax = λx
where λ is a scalar eigenvalue. Eigenvalues will satisfy
the following condition
(A − λI)x = 0
where I is an n by n dimensional identity matrix
- PageRank
To find the dominant eigenvector of link matrix L, the
Power Method can be iteratively applied, starting from a
uniform initial vector r.
ri+1
= Lri
A damping factor, d, can be implement to stabilize this
method as follows.
ri+1
= dLri
+
1 − d
n
Ad

More Related Content

What's hot (16)

Vision and Mission statements
Vision and Mission statementsVision and Mission statements
Vision and Mission statements
Saugata Palit
 
Pepsi Inventory Management, Distribution Channels and Warehousing
Pepsi Inventory Management, Distribution Channels and WarehousingPepsi Inventory Management, Distribution Channels and Warehousing
Pepsi Inventory Management, Distribution Channels and Warehousing
aliarshad10
 
Different types of cargo
Different types of cargoDifferent types of cargo
Different types of cargo
Universidad Maritima del Caribe
 
Introduction To Yard Management System
Introduction To Yard Management SystemIntroduction To Yard Management System
Introduction To Yard Management System
AIMS institute of higher education
 
Financial Projection PowerPoint Presentation Slides
Financial Projection PowerPoint Presentation Slides Financial Projection PowerPoint Presentation Slides
Financial Projection PowerPoint Presentation Slides
SlideTeam
 
Amazon's Organizational structure
Amazon's Organizational structureAmazon's Organizational structure
Amazon's Organizational structure
RuquiyaFathima
 
Walmart's Supply Chain
Walmart's Supply Chain Walmart's Supply Chain
Walmart's Supply Chain
Sunitha N
 
ZARA Information Systems
ZARA Information SystemsZARA Information Systems
ZARA Information Systems
Harmish Sampat
 
Introductio to logistics
Introductio to logisticsIntroductio to logistics
Introductio to logistics
Madu Obiora
 
Cfs & icd
Cfs & icd Cfs & icd
Cfs & icd
yusuf patel
 
Supply chain management of amazon
Supply chain management  of amazonSupply chain management  of amazon
Supply chain management of amazon
RaunaqSingh28
 
Rise and Fall of Peppertap
Rise and Fall of PeppertapRise and Fall of Peppertap
Rise and Fall of Peppertap
Mayank Gupta
 
Alibaba group
Alibaba groupAlibaba group
Alibaba group
anncheng1118
 
Warehouse Optimisation
Warehouse OptimisationWarehouse Optimisation
Warehouse Optimisation
R V Srinivas Rao Chartered FCIPS, PMP, CISCM
 
Overview Logistics Operations in FMCG
Overview Logistics Operations in FMCGOverview Logistics Operations in FMCG
Overview Logistics Operations in FMCG
Syawalianto Rahmaputro
 
Peppertap - A MIS Perspective
Peppertap - A MIS PerspectivePeppertap - A MIS Perspective
Peppertap - A MIS Perspective
arav93
 
Vision and Mission statements
Vision and Mission statementsVision and Mission statements
Vision and Mission statements
Saugata Palit
 
Pepsi Inventory Management, Distribution Channels and Warehousing
Pepsi Inventory Management, Distribution Channels and WarehousingPepsi Inventory Management, Distribution Channels and Warehousing
Pepsi Inventory Management, Distribution Channels and Warehousing
aliarshad10
 
Financial Projection PowerPoint Presentation Slides
Financial Projection PowerPoint Presentation Slides Financial Projection PowerPoint Presentation Slides
Financial Projection PowerPoint Presentation Slides
SlideTeam
 
Amazon's Organizational structure
Amazon's Organizational structureAmazon's Organizational structure
Amazon's Organizational structure
RuquiyaFathima
 
Walmart's Supply Chain
Walmart's Supply Chain Walmart's Supply Chain
Walmart's Supply Chain
Sunitha N
 
ZARA Information Systems
ZARA Information SystemsZARA Information Systems
ZARA Information Systems
Harmish Sampat
 
Introductio to logistics
Introductio to logisticsIntroductio to logistics
Introductio to logistics
Madu Obiora
 
Supply chain management of amazon
Supply chain management  of amazonSupply chain management  of amazon
Supply chain management of amazon
RaunaqSingh28
 
Rise and Fall of Peppertap
Rise and Fall of PeppertapRise and Fall of Peppertap
Rise and Fall of Peppertap
Mayank Gupta
 
Peppertap - A MIS Perspective
Peppertap - A MIS PerspectivePeppertap - A MIS Perspective
Peppertap - A MIS Perspective
arav93
 

Similar to Maths4ml linearalgebra-formula (20)

TN 112_Lecture_6_22nd_Jan_2025 (1).pptx g
TN 112_Lecture_6_22nd_Jan_2025 (1).pptx gTN 112_Lecture_6_22nd_Jan_2025 (1).pptx g
TN 112_Lecture_6_22nd_Jan_2025 (1).pptx g
o422187
 
Lecture-2 Vector Spaces-24 (1) linear algebra.pptx
Lecture-2 Vector Spaces-24 (1) linear algebra.pptxLecture-2 Vector Spaces-24 (1) linear algebra.pptx
Lecture-2 Vector Spaces-24 (1) linear algebra.pptx
FaisalAhmed617466
 
Notes on eigenvalues
Notes on eigenvaluesNotes on eigenvalues
Notes on eigenvalues
AmanSaeed11
 
Vector space
Vector spaceVector space
Vector space
Mehedi Hasan Raju
 
matlab functions
 matlab functions  matlab functions
matlab functions
DINESH DEVIREDDY
 
Ravina773728o38363382836,230000603029.pptx
Ravina773728o38363382836,230000603029.pptxRavina773728o38363382836,230000603029.pptx
Ravina773728o38363382836,230000603029.pptx
sheetaljangra222
 
ALA Solution.pdf
ALA Solution.pdfALA Solution.pdf
ALA Solution.pdf
RkAA4
 
5.vector geometry Further Mathematics Zimbabwe Zimsec Cambridge
5.vector geometry   Further Mathematics Zimbabwe Zimsec Cambridge5.vector geometry   Further Mathematics Zimbabwe Zimsec Cambridge
5.vector geometry Further Mathematics Zimbabwe Zimsec Cambridge
alproelearning
 
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
Ceni Babaoglu, PhD
 
Computer Network Homework Help
Computer Network Homework HelpComputer Network Homework Help
Computer Network Homework Help
Computer Network Assignment Help
 
Linear_Algebra_final.pdf
Linear_Algebra_final.pdfLinear_Algebra_final.pdf
Linear_Algebra_final.pdf
RohitAnand125
 
Lecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdfLecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdf
entesarkareem1
 
Vector spaces
Vector spacesVector spaces
Vector spaces
Quasar Chunawala
 
Solution set 3
Solution set 3Solution set 3
Solution set 3
慧环 赵
 
15.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy4
15.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy415.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy4
15.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy4
SujalGupta60
 
Yassin balja algebra
Yassin balja algebraYassin balja algebra
Yassin balja algebra
Yassin Balja
 
lec7.ppt
lec7.pptlec7.ppt
lec7.ppt
Rai Saheb Bhanwar Singh College Nasrullaganj
 
Calculus Homework Help
Calculus Homework HelpCalculus Homework Help
Calculus Homework Help
Maths Assignment Help
 
Brute force
Brute forceBrute force
Brute force
Sadakathullah Appa College
 
Application Of vector Integration and all
Application Of vector Integration and allApplication Of vector Integration and all
Application Of vector Integration and all
MalikUmarKhakh
 
TN 112_Lecture_6_22nd_Jan_2025 (1).pptx g
TN 112_Lecture_6_22nd_Jan_2025 (1).pptx gTN 112_Lecture_6_22nd_Jan_2025 (1).pptx g
TN 112_Lecture_6_22nd_Jan_2025 (1).pptx g
o422187
 
Lecture-2 Vector Spaces-24 (1) linear algebra.pptx
Lecture-2 Vector Spaces-24 (1) linear algebra.pptxLecture-2 Vector Spaces-24 (1) linear algebra.pptx
Lecture-2 Vector Spaces-24 (1) linear algebra.pptx
FaisalAhmed617466
 
Notes on eigenvalues
Notes on eigenvaluesNotes on eigenvalues
Notes on eigenvalues
AmanSaeed11
 
Ravina773728o38363382836,230000603029.pptx
Ravina773728o38363382836,230000603029.pptxRavina773728o38363382836,230000603029.pptx
Ravina773728o38363382836,230000603029.pptx
sheetaljangra222
 
ALA Solution.pdf
ALA Solution.pdfALA Solution.pdf
ALA Solution.pdf
RkAA4
 
5.vector geometry Further Mathematics Zimbabwe Zimsec Cambridge
5.vector geometry   Further Mathematics Zimbabwe Zimsec Cambridge5.vector geometry   Further Mathematics Zimbabwe Zimsec Cambridge
5.vector geometry Further Mathematics Zimbabwe Zimsec Cambridge
alproelearning
 
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
3. Linear Algebra for Machine Learning: Factorization and Linear Transformations
Ceni Babaoglu, PhD
 
Linear_Algebra_final.pdf
Linear_Algebra_final.pdfLinear_Algebra_final.pdf
Linear_Algebra_final.pdf
RohitAnand125
 
Lecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdfLecture2 (vectors and tensors).pdf
Lecture2 (vectors and tensors).pdf
entesarkareem1
 
Solution set 3
Solution set 3Solution set 3
Solution set 3
慧环 赵
 
15.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy4
15.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy415.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy4
15.SVD.pdfy$Ou 0y4 oy4j oy4joyj opy4jpoy4jpoy4jpoy4
SujalGupta60
 
Yassin balja algebra
Yassin balja algebraYassin balja algebra
Yassin balja algebra
Yassin Balja
 
Application Of vector Integration and all
Application Of vector Integration and allApplication Of vector Integration and all
Application Of vector Integration and all
MalikUmarKhakh
 
Ad

More from Nishant Upadhyay (15)

Multivariate calculus
Multivariate calculusMultivariate calculus
Multivariate calculus
Nishant Upadhyay
 
Multivariate calculus
Multivariate calculusMultivariate calculus
Multivariate calculus
Nishant Upadhyay
 
Matrices1
Matrices1Matrices1
Matrices1
Nishant Upadhyay
 
Vectors2
Vectors2Vectors2
Vectors2
Nishant Upadhyay
 
Mathematics for machine learning calculus formulasheet
Mathematics for machine learning calculus formulasheetMathematics for machine learning calculus formulasheet
Mathematics for machine learning calculus formulasheet
Nishant Upadhyay
 
Pandas pythonfordatascience
Pandas pythonfordatasciencePandas pythonfordatascience
Pandas pythonfordatascience
Nishant Upadhyay
 
Numpy python cheat_sheet
Numpy python cheat_sheetNumpy python cheat_sheet
Numpy python cheat_sheet
Nishant Upadhyay
 
Sqlcheetsheet
SqlcheetsheetSqlcheetsheet
Sqlcheetsheet
Nishant Upadhyay
 
Sql cheat-sheet
Sql cheat-sheetSql cheat-sheet
Sql cheat-sheet
Nishant Upadhyay
 
My sql installationguide_windows
My sql installationguide_windowsMy sql installationguide_windows
My sql installationguide_windows
Nishant Upadhyay
 
Company handout
Company handoutCompany handout
Company handout
Nishant Upadhyay
 
Python bokeh cheat_sheet
Python bokeh cheat_sheet Python bokeh cheat_sheet
Python bokeh cheat_sheet
Nishant Upadhyay
 
Foliumcheatsheet
FoliumcheatsheetFoliumcheatsheet
Foliumcheatsheet
Nishant Upadhyay
 
Python matplotlib cheat_sheet
Python matplotlib cheat_sheetPython matplotlib cheat_sheet
Python matplotlib cheat_sheet
Nishant Upadhyay
 
Python seaborn cheat_sheet
Python seaborn cheat_sheetPython seaborn cheat_sheet
Python seaborn cheat_sheet
Nishant Upadhyay
 
Ad

Recently uploaded (20)

Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
Stack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptxStack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptx
binduraniha86
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptxPerencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
PareaRusan
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
Stack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptxStack_and_Queue_Presentation_Final (1).pptx
Stack_and_Queue_Presentation_Final (1).pptx
binduraniha86
 
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
Molecular methods diagnostic and monitoring of infection  -  Repaired.pptxMolecular methods diagnostic and monitoring of infection  -  Repaired.pptx
Molecular methods diagnostic and monitoring of infection - Repaired.pptx
7tzn7x5kky
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Data Analytics Overview and its applications
Data Analytics Overview and its applicationsData Analytics Overview and its applications
Data Analytics Overview and its applications
JanmejayaMishra7
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptxPerencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
PareaRusan
 
Classification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptxClassification_in_Machinee_Learning.pptx
Classification_in_Machinee_Learning.pptx
wencyjorda88
 

Maths4ml linearalgebra-formula

  • 1. Mathematics for Machine Learning: Linear Algebra Formula Sheet Vector operations r + s = s + r 2r = r + r r 2 = i r2 i - dot or inner product: r.s = i risi commutative r.s = s.r distributive r.(s + t) = r.s + r.t associative r.(as) = a(r.s) r.r = r 2 r.s = r s cos θ - scalar and vector projection: scalar projection: r.s r vector projection: r.s r.r r Basis A basis is a set of n vectors that: (i) are not linear combinations of each other (ii) span the space The space is then n-dimensional. Matrices Ar = r a b c d e f = ae + bf ce + df A(nr) = n(Ar) = nr A(r + s) = Ar + As Identity: I = 1 0 0 1 clockwise rotation by θ: cos θ sin θ − sin θ cos θ determinant of 2x2 matrix: det a b c d = ad − bc inverse of 2x2 matrix: a b c d −1 = 1 ad − bc d −b −c a - summation convention for multiplying matrices a and b: abik = j aijbjk Change of basis Change from an original basis to a new, primed basis. The columns of the transformation matrix B are the new basis vectors in the original coordinate system. So Br = r where r is the vector in the B-basis, and r is the vector in the original basis. Or; r = B−1 r If a matrix A is orthonormal (all the columns are of unit size and orthogonal to eachother) then: AT = A−1 Gram-Schmidt process for constructing an orthonormal basis Start with n linearly independent basis vectors v = {v1, v2, ..., vn}. Then e1 = v1 ||v1|| u2 = v2 − (v2.e1)e1 so e2 = u2 ||u2|| ... and so on for u3 being the remnant part of v3 not composed of the preceding e-vectors, etc. ... Transformation in a Plane or other object First transform into the basis referred to the reflection plane, or whichever; E−1 . Then do the reflection or other transformation, in the plane of the object TE. Then transform back into the original basis E. So our transformed vector r = ETEE−1 r. Eigenstuff To investigate the characteristics of the n by n matrix A, you are looking for solutions the the equation, Ax = λx where λ is a scalar eigenvalue. Eigenvalues will satisfy the following condition (A − λI)x = 0 where I is an n by n dimensional identity matrix - PageRank To find the dominant eigenvector of link matrix L, the Power Method can be iteratively applied, starting from a uniform initial vector r. ri+1 = Lri A damping factor, d, can be implement to stabilize this method as follows. ri+1 = dLri + 1 − d n