r/AskComputerScience • u/[deleted] • Apr 06 '23
Linear Algebra book for Machine Learning

Hello,
I wrote a conversational style book on linear algebra with humor, visualisations, numerical example, and real-life applications.
The book is structured more like a story than a traditional textbook, meaning that every new concept that is introduced is a consequence of knowledge already acquired in this document.
It starts with the definition of a vector and from there it goes all the way to the principal component analysis and the single value decomposition. Between these concepts you will learn about:
vectors spaces, basis, span, linear combinations, and change of basis
the dot product
the outer product
linear transformations
matrix and vector multiplication
the determinant
the inverse of a matrix
system of linear equations
eigen vectors and eigen values
eigen decomposition
The aim is to drift a bit from the rigid structure of a mathematics book and make it accessible to anyone as the only thing you need to know is the Pythagorean theorem, in fact, just in case you don't know or remember it here it is:

There! Now you are ready to start reading !!!
The Kindle version is on sale on amazon :
https://www.amazon.com/dp/B0BZWN26WJ
And here is a discount code for the pdf version on my website - 59JG2BWM
Check a sample here
https://drive.google.com/file/d/1xzK9HtT2gGh8RvMlvnkALu8eSbmgjFeD/view
I also have a youtube channel where I will be posting videos of the book's content
https://www.youtube.com/@MLdepot
Thanks
Jorge
4
u/filch-argus Apr 06 '23
I think it might be great for high schoolers to get the big picture after some 3Blue1Brown videos. Nice work.
2
2
u/onemanandhishat Apr 06 '23
This is an interesting idea, I'll check it out. I teach AI and computing courses as part of the core curriculum at my university. The courses have no prerequisites and are open to students from any discipline, so it's an interesting challenge to try and see how much technical depth I can convey without losing people, so I'm always looking for more user-friendly resources. I feel a lot of books in the tech space either make everything too abstract and simplified, or are quite technical and assume a lot of prior maths knowledge.
2
2
u/gradual_alzheimers Apr 07 '23 edited Apr 07 '23
any paper back version available?
EDIT: Never mind I see amazon has it
1
Apr 07 '23
Yeah Amazon has it, thank you for you support. If you can leave a review or let us know what you think here !
1
u/LazyHater Apr 08 '23 edited Apr 08 '23
Awesome intro book for teenagers. are you planning on doing anything like this for generic optimization? Netwton's method, secant method, etc? Obviously calculus would be before Newton's method, and is required for gradient descent.
Planning on doing one for group theory too? Since you know you're optimizing towards a representation of a derived symmetry group in the data after all.
Edit: not just teenagers!
2
Apr 08 '23 edited Apr 08 '23
I’m working on the second volume, calculus and optimisation. The books are for anybody that wishes to learn all the mathematics for machine learning algorithms. So optimisation methods like the ones you mentioned will be on the second volume. Thanks for the support !!
1
u/LazyHater Apr 08 '23
No problem, nice work. I really like that it's mathy enough but not too mathy if that makes sense haha. Nice optimization there!
2
Apr 08 '23
It does, I wanted to make it so people can believe that mathematics is available to everyone. Hopefully after that book they will go on to more advanced stuff.
4
u/BokoMoko Apr 06 '23
Can you please post one chapter just for us to take a taste?