Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mathematics of Machine Learning

You're reading from   Mathematics of Machine Learning Master linear algebra, calculus, and probability for machine learning

Arrow left icon
Product type Paperback
Published in May 2025
Publisher Packt
ISBN-13 9781837027873
Length 730 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Tivadar Danka Tivadar Danka
Author Profile Icon Tivadar Danka
Tivadar Danka
Arrow right icon
View More author details
Toc

Table of Contents (36) Chapters Close

Introduction Part 1: Linear Algebra FREE CHAPTER
1 Vectors and Vector Spaces 2 The Geometric Structure of Vector Spaces 3 Linear Algebra in Practice 4 Linear Transformations 5 Matrices and Equations 6 Eigenvalues and Eigenvectors 7 Matrix Factorizations 8 Matrices and Graphs References
Part 2: Calculus
9 Functions 10 Numbers, Sequences, and Series 11 Topology, Limits, and Continuity 12 Differentiation 13 Optimization 14 Integration References
Part 3: Multivariable Calculus
15 Multivariable Functions 16 Derivatives and Gradients 17 Optimization in Multiple Variables References
Part 4: Probability Theory
18 What is Probability? 19 Random Variables and Distributions 20 The Expected Value References
Part 5: Appendix
Other Books You May Enjoy
Index
Appendix A It’s Just Logic 1. Appendix B The Structure of Mathematics 2. Appendix C Basics of Set Theory 3. Appendix D Complex Numbers

5.2 The LU decomposition

In the previous chapter, I promised that you’d never have to solve a linear equation by hand. As it turns out, this task is perfectly suitable for computers. In this chapter, we will dive deep into the art of solving linear equations, developing the tools from scratch.

We start by describing the process of Gaussian elimination in terms of matrices. Why would we even do that? Because matrix multiplication can be performed extremely fast in modern computers. Expressing any algorithm in terms of matrices is a sure way to accelerate.

At the start, our linear equation Ax = b is given by the coefficient matrix

 ⌊ ⌋ a11 a12 ... a1n || || | a21 a22 ... a2n| A = || ... ... ... ... || ∈ ℝn×n, || || |⌈ an1 an2 ... ann|⌉

and at the end of the elimination process, A is transformed into the form

 ⌊ ⌋ | a11 a12 a13 ... a1n | || 0 a(1) a (1) ... a(1)|| (n−1) | 22 23(2) 2(n2)| A = || 0 0 a 33 ... a3n || . || ... ... ... ... ... || ⌈ ⌉ 0 0 0 ... a(nnn−1)

A(n1) is upper diagonal; that is, all elements below its diagonal are 0.

Gaussian elimination performs this task one step at a time, focusing on consecutive columns. After the first elimination step, this is turned into the equation (5.1.1), described by the coefficient...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mathematics of Machine Learning
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon