News for hackers. Stuff that matters.
Re:An Illustrated Introduction to Linear Algebra by xwowsersx on Tuesday October 07, 2025 @01:57PM (#45506453)
This is great. I really appreciate visual explanations and the way you build up the motivation. I'm using a few resources to learn linear algebra right now, including "The No Bullshit Guide to Linear Algebra", which has been pretty decent so far. Does anyone have other recommendations? I've found a lot of books to be too dense or academic for what I need. My goal is to develop a practical, working understanding I can apply directly.
Re:An Illustrated Introduction to Linear Algebra by dawnofdusk on Tuesday October 07, 2025 @02:25PM (#45506830)
>My goal is to develop a practical, working understanding I can apply directly.

Apply directly... to what? IMO it is weird to learn theory (like linear algebra) expressly for practical reasons: surely one could just pick up a book on those practical applications and learn the theory along the way? And if in this process, you end up really needing the theory then certainly there is no substitute for learning the theory no matter how dense it is.

For example, linear algebra is very important to learning quantum mechanics. But if someone wanted to learn linear algebra for this reason they should read quantum mechanics textbooks, not linear algebra textbooks.

Re:An Illustrated Introduction to Linear Algebra by xwowsersx on Tuesday October 07, 2025 @02:40PM (#45507016)
You're totally right. I left out the important context. I'm learning linear algebra mainly for applied use in ML/AI. I don't want to skip the theory entirely, but I've found that approaching it from the perspective of how it's actually used in models (embeddings, transformations, optimization, etc.) helps me with motivation and retaining.

So I'm looking for resources that bridge the gap, not purely computational "cookbook" type resources but also not proof-heavy textbooks. Ideally something that builds intuition for the structures and operations that show up all over ML.

Re:An Illustrated Introduction to Linear Algebra by blackbear_ on Tuesday October 07, 2025 @03:59PM (#45508066)
Strang's Linear algebra and learning from data is extremely practical and focused on ML

https://math.mit.edu/~gs/learningfromdata/

Although if your goal is to learn ML you should probably focus on that first and foremost, then after a while you will see which concepts from linear algebra keep appearing (for example, singular value decomposition, positive definite matrices, etc) and work your way back from there

Re:An Illustrated Introduction to Linear Algebra by imtringued on Tuesday October 07, 2025 @04:56PM (#45508755)
Since you're associating ML with singular value decomposition, do you know if it is possible to factor the matrices of neural networks for fast inverse jacobian products? If this is possible, then optimizing through a neural network becomes roughly as cheap as doing half a dozen forward passes.
Re:An Illustrated Introduction to Linear Algebra by blackbear_ on Tuesday October 07, 2025 @06:32PM (#45509762)
Not sure I am following; typical neural network training via stochastic gradient descent does not require Jacobian inversion.

Less popular techniques like normalizing flows do need that but instead of SVD they directly design transformations that are easier to invert.

Re:An Illustrated Introduction to Linear Algebra by imtringued on Wednesday October 08, 2025 @06:48AM (#45514598)
The idea is that you already have a trained model of the dynamics of a physical process and want to include it inside your quadratic programming based optimizer. The standard method is to linearize the problem by materializing the Jacobian. Then the Jacobian is inserted into the QP.

QPs are solved by finding the roots (aka zeroes) of the KKT conditions, basically finding points where the derivative is zero. This is done by solving a linear system of equations Ax=b. Warm starting QP solvers try to factorize the matrices in the QP formulation through LU decomposition or any other method. This works well if you have a linear model, but it doesn't if the model changes, because your factorization becomes obsolete.

Re:An Illustrated Introduction to Linear Algebra by xwowsersx on Tuesday October 07, 2025 @06:26PM (#45509720)
Thanks. I have a copy of Strang and have been going through it intermittently. I am primarily focused on ML itself and that's been where I'm spending most of my time. I'm hoping to simultaneously improve my mathematical maturity.

I hadn't known about Learning from Data. Thank you for the link!

Re:An Illustrated Introduction to Linear Algebra by egonschiele on Tuesday October 07, 2025 @02:55PM (#45507232)
> My goal is to develop a practical, working understanding I can apply directly

Same, and I think ML is a perfect use case for this. I also have a series for that coming.

Re:An Illustrated Introduction to Linear Algebra by i_don_t_know on Wednesday October 08, 2025 @04:18AM (#45513475)
I’ve really enjoyed this book:

Introduction to Applied Linear Algebra – Vectors, Matrices, and Least Squares

https://web.stanford.edu/~boyd/vmls/

Re:An Illustrated Introduction to Linear Algebra by xwowsersx on Sunday October 12, 2025 @03:42PM (#45561184)
Thanks for the suggestion.
Re:An Illustrated Introduction to Linear Algebra by xwowsersx on Monday October 13, 2025 @03:01PM (#45572078)
Started this over the weekend. It's truly excellent. Thanks so much for the recommendation.
Re:An Illustrated Introduction to Linear Algebra by barrenko on Wednesday October 08, 2025 @05:16AM (#45513927)
Ok, boy, I'm also reviewing LinAlg textbooks as we speak. Coming in with a similar interest for ML / AI.

I've done math on KA academy up to linear algebra, with other resources / textbooks / et al. depending on the topic.

People will recommend 3B1B, Strang (MIT OCW Lin Alg lessons). For me the 3B1B is too "intuitionist" for a first serious pass, and Strang can be wonderful but then go off on a tangent during a lecture that I can't follow, it's a staple resource that I use alongside others.

LADR4e is also nice but I can't follow the proofs there sadly (yet). There is also 'Linear Algebra done wrong', as well as the Hefferon book, which all end up being proof-y quite quickly. They seem like they'll be good for a second / third pass at a linear algebra.

Side note - for a second or a third pass in LA it seems there is such a thing as 'abstract linear algebra' as a subject and the texbooks there don't seem that much harder to follow than the "basic" linear algebra ones designated for a second pass.

I've gotten off to the most of a start with ROB101 textbook (https://github.com/michiganrobotics/rob101/blob/main/Fall%20...), up until linear dependence / independence, along the MIT Strang lectures. ROB101 is nice as it deals with the coding aspect of it all, and I can follow in my head as I am used to the coding aspect of ML / AI.

I also have a couple obscure eastern european math texbook(s) for practice assignments.

Most lately I have been reviewing this course / book - https://www.math.ucdavis.edu/~linear/ (which has cool notes at https://www.math.ucdavis.edu/~linear/old), and getting a lot of mileage from https://math.berkeley.edu/~arash/54/notes/.

Re:An Illustrated Introduction to Linear Algebra by egonschiele on Wednesday October 08, 2025 @11:37AM (#45517354)
That's quite the list! How does this one compare? Anything you think is missing?
Re:An Illustrated Introduction to Linear Algebra by barrenko on Thursday October 09, 2025 @02:09AM (#45524108)
https://www.math.ucdavis.edu/~linear/ (authors David Cherney, Tom Denton, Rohit Thomas and Andrew Waldron) - reminds me of category theory articles, so good.
Re:An Illustrated Introduction to Linear Algebra by xwowsersx on Thursday October 09, 2025 @07:47PM (#45534185)
Thank you very much I'll check out these resources. ROB101 looks really great.

I love the 3B1B videos, but I've noticed my attention tends to drift when watching videos. I've learned that I absorb information best through text. For me, videos work well as a supplement, but not as the main way to learn.

Thanks again.

Re:An Illustrated Introduction to Linear Algebra by rramadass on Thursday October 09, 2025 @03:49AM (#45524772)
Suggestions for books/articles from a couple of my previous comments;

https://news.ycombinator.com/item?id=45110857

https://news.ycombinator.com/item?id=45088830

The OP's article though simple, still does not really explain things intuitively. The key is to understand the concept of a Vector from multiple perspectives/coordinate systems and map the operations on vectors to movements/calculations in the coordinate space (i.e. 2D/3D/n-space). Only then will Vector Spaces/Matrices/etc. become intelligible and we can begin to look at Physical problems naturally in terms of vectors/vector calculus.

The following are helpful here;

1) About Vectors by Banesh Hoffmann.

2) A History of Vector Analysis: The Evolution of the Idea of a Vectorial System by Michael Crowe.