75 points · by sebg · 2y ago · 59 comments
I know there are Google engineers here, possibly search. Do you guys not also feel it? I mean you dogfood, right? I know it is a hard problem but boy has it become harder to use, especially in the last 6 months.
I wish it had a yes/no prompt that you could click and when you click no it would refresh with the results you wanted, and possibly use those answers to update whatever algorithm does the suggestions.
I don't need a different variation of the same result, I need a different result. While the former can be certainly useful, it is absurd to think this is all there is.
If you ever search anything with any bit of nuance, you'll have experienced this. I'll give an example: try searching "out of distribution" and try to find a result that is not about ML based OOD detection. They do exist and you'll find some better queries, but that result still dominates (and frankly, they are poor results).
For our example query `statistics out of distribution -"machine learning"` has a top result of mathworks on neural networks and all results on the front page work. "statistics" is ignored before variations of "Machine learning." Top few results for `statistics out of distribution -"machine learning" -"deep learning" -"artificial intelligence" -"neural network"` returns to me an ICLR paper who's title that ends in "Deep Neural Networks" and many results are still ML based...
How do I tell Google (or any engine) that I want to exclude results!?
And before someone says GPT/Claude or some other LLM, the problem persists. Yes, I've paid. Yes, for the most advanced models. Derailing these tools from the wrong track is difficult. Even harder the longer the conversation goes (i.e. if you don't recognize you're headed in the wrong direction). The nuance matters.
https://www.math.brown.edu/streil/index.html redirects to https://sites.google.com/a/brown.edu/sergei-treil-homepage/h...
But OP's link, https://www.math.brown.edu/streil/papers/LADW/LADW.html does not redirect. So it seems like a problem that the site owner can fix.
> "Linear Algebra Done Wrong site:sites.google.com" finds the page you linked.
I think you have the wrong framing. It isn't that you can't create a p̶r̶o̶m̶p̶t̶ query that yields the correct result, it is the ability to do this without knowing the answer a priori.As in, if you didn't know a second newer version existed, would you find it? Certainly the new version should prioritize the older version.
FWIW, my query "Linear Algebra Done Wrong" yields the newer version (2017), but I've just interpreted OP's point as being illustrative and helpful to readers (and it looks like the link now does point towards the new version. Possibly this made my query work)
Does he ever answer this question? It's posed at the start of the book, but then immediately ignored.
Sheldon's book is more suitable for a second course in linear algebra. It's an excellent book, that my more advanced students have enjoyed.
Sheldon, however, approaches the subject with some rigid dogma: Determinants are evil. His view is they're not practical to compute at scale. It can be good to learn theory with one's determinant hand tied behind one's back, just as it can be good to learn "constructive" mathematics, but this should not be one's only approach.
I used to attend an academic sponsor's day at the math institute MSRI (now SLMath). Afternoons reached to keep us busy. One year Sheldon's wife demonstrated some academic teaching software, and my group was tasked to solve a linear algebra problem that Sheldon had provided. Unaware that everyone was watching us on the big screen, I solved it instantly, using determinants. I still don't understand Sheldon's longer solution.
His view is that they are presented as an arbitrary piece of magic that people really don't understand. And, exactly because they don't really understand the determinant, they wind up not properly understanding fundamental concepts in linear algebra. Such as Jordan normal form.
If your goal is actually to properly understand linear algebra, he's absolutely right. If your goal is to use linear algebra for a wide variety of practical purposes, though, determinants are often essential.
When I hear, for example, ‘upper triangular matrix’ I have to translate it in my head into something like ‘matrix representing a linear operator that preserves the standard flag’ in order to actually feel like I understand it.
Of course, I’m not a programmer or an engineer of any kind, so I have the luxury of not needing the computational efficiency.
Or, if you're using exact arithmetic (e.g. cryptography), you should use something like the Bareiss algorithm - Gaussian elimination is only polynomial if you use floats: https://en.m.wikipedia.org/wiki/Bareiss_algorithm
The Leibniz formula is totally impractical for calculating determinants, but it is sometimes useful in proofs due to its symmetric form.
I guess if you just throw a definition of the determinant at people and leave it at that, I can understand that it doesn't make sense. But that's not how I was introduced to the concept (I learned about abstract vector spaces and transformations and how they are represented by matrices - and only then about determinants and their properties and different ways of computing them). That's why Axler's critique rings somewhat hollow to me - maybe it's different if you learn about linear algebra mostly in an engineering context as opposed to pure maths.
For theoretical purposes, determinants are important because they constitute a homomorphism between the general linear group and the multiplicative group of the underlying field, and the kernel of this homomorphism is the special linear group. This leads to some very short and elegant proofs.
Linear Algebra Done Wrong [pdf] - https://news.ycombinator.com/item?id=999494 - Dec 2009 (12 comments)
The second half of LinAlg was a bunch of stuff about Eigenthis and Eigenthat, with no particular explanation as to what you'd use it for or why you would care. I pass the class with an A and was even recommended by the instructor to be work as a tutor for other students, but 23 years later I couldn't tell you the use of any of that stuff.
T-matrices, though - I've used that stuff my whole career, working in medical imaging and related fields. I still couldn't tell you what an Eigenvalue or Eigenvector is useful for, as I never had any reason to apply that stuff.
It's not particularly abstract if you can explain why and how this stuff is used - and I know it's heavily used in many fields - just not those that I've worked in.
Say for example you rotate something in 3D. The rotation axis remains unchanged. That's an eigenvector. Or say you mirror something in 3D, then all the lines lying in the mirror plane remain unchanged (all eigenvectors with eigenvalue 1), and the line orthogonal to the mirror plane remains unchanged - or rather, flipped, so it's an eigenvector with eigenvalue -1.
I've actually stopped asking questions about Cayley-Hamilton and Jordan form (both covered in year 1 of any decent BS math course in Europe) when I used to do inteviews for trading/quant positions because so many people failed.
It’s mostly because, as Axler explicitly tries to address, linear algebra is a subject that can be viewed through at least two different lenses: the intuitive, (possibly higher-dimensional) geometric lens, or the algorithmic and numerical lens. Of course they are equivalent, but almost every course in linear algebra teaches the second and barely even touches on the first. It’s like learning Euclid’s algorithm before you’ve learnt to count. No wonder everyone’s so confused.
I'm not sure that linear algebra is an elementary topic, if the word "elementary" is as in math of elementary school. That said, I don't think there's much confusion about linear algebra either. It's more likely that linear algebra is substantially more abstract than high-school algebra, so many students have a hard time deeply understanding it, just like many students already bail out on high-school math. When I was a TA in college, I also observed that many students were not prepared for the fact that college-level math is fundamentally different from high-school ones. College-level maths has far less time for students to grasp the concepts through sheer brute-force practice. College-level maths requires students to focus on intuitive understanding of they key concepts so the students won't get bogged down by hundreds and hundreds of concepts or corollaries or theorems. Of course, high-school maths requires intuitive understanding too, but because high-school maths is so simple that many students get the intuition naturally so they are not aware of how important such intuitive understanding is.
This book used to help my students build intuitions: https://www.amazon.com/Algebra-Through-Geometry-Undergraduat.... It starts with 2D geometry to teach linear algebra, and then moves to 3D, and then 4D. The author also chooses to use calculations and constructions to prove most of the theorems instead of more abstract or algebraic approach.
Unfortunately this has been the debate for thousands of years. One of Euclid's students asked him what practical use geometry had. In response, Euclid instructed a servant to give the student a coin, saying, "He must make gain out of what he learns."
Legend aside, I'm actually surprised to see, many times actually, that people on HN criticized the "absence of practical examples". If we compare the textbooks written in the US and those in China or Europe, there's a sharp contrast. The textbooks from the US are thick, full of discussion of motivations and practical examples across multiple domains (Thomas' Calculus, for instance). In contrast, Chinese and European textbooks are terse and much thinner. They focus on proofs and derivations and have only sparse examples.
Personally, maths itself is practical enough. I'd even venture to say that those who can naturally progress to college-level maths should be able appreciate high-school maths for its own sake.
A lot of the stuff you learn initially, about systems of equations and how they relate to the matrix inverse, are very interesting because it's clear how this can be applied.
But as you move forward into vector bases and change of coordinates there's a very long dry spell that you sort of have to slog through until much later when you start to see how it is actually useful. I'm not sure how to fix this -- maybe take a step back from the symbolic and do some numeric computations because that's where they start becoming useful again.
I get that 2^32 simultaneous equations may be a straightforward linear algebra problem but I am now going deep to understand the exact mechanism to solve this.
The product of eigenvalues definition is also somewhat intuitive to me ("How much does the matrix scale vectors in each direction? Now multiply those numbers together."), but it's harder to motivate the fact that adding rows together doesn't change the determinant, which is kind of important to actually computing the determinant.
Apart from "argument by year number", what's actually wrong with the book?
In some ways I like the idea of replacing traditional indexing with something more like the Einstein summation notation, and moving away from the arbitrary feeling that you get around how matrix multiplication is structured, and provide an immediate route into tensor theory.
But so many things that are very important in linear algebra, like matrix inverses, are awkward to express in this notation.
2. What are examples of better terminology, notation, or pedagogy that are improvements over this book? (Doesn't need to be total, could retain the same terminology and notation but just have better pedagogy for example)
However, I'll give you that interactive texts (or texts with supplemental interactive material) are often better for some things (and some parts of linear algebra) than a plain dead tree format.
Every lecture was so eye opening. I couldn't believe that linear algebra could be taught in such a context with such a variety of application domains.
The lectures are all available online with the assignments : https://ee263.stanford.edu/archive/
[1] https://www.amazon.com/Data-Driven-Science-Engineering-Learn...