Live data from Hacker News

Mathematical Notation Is Awful

blackhole12.blogspot.com

71–80 of 97 posts

Re: Mathematical Notation Is Awful

#71
post #13

These are just issues that someone unfamiliar with a field would face. None of them are problems for those of us in the field. First, the expectation thing. He's using a special case, E(X), and complaining that the more general case doesn't follow the general case. It's like saying "Well the plural of mouse is mice but the plural of house isn't hice!". The general definition of expectation (for a discrete probability…

So why are years of studying math insufficient for one to be "familiar" with it?

Years of studying what, though? Calculus, most of linear algebra, discrete math are all calculation based. Math papers are proof based. If you spend years studying proof based math (analysis, algebra, topology, and so on) then you'll be familiar enough with proof based math to understand it.

It's like saying "why isn't spending years studying spelling not sufficient to understand Ulysses?"

Re: Mathematical Notation Is Awful

#72

Earlier quoted context omitted.

You are right, and the deeper source of the authers beef seems to be that he wants mathematics to be about textual rules. Now that's a fine thing in a computer language -- and there are philosophers who say mathematical truth is no more than computation. But mathematical notation is for humans to talk about things that have meanings that humans can understand. The fact is that E[X^2] is natural way of an important co…

> Now that's a fine thing in a computer language -- and there are philosophers who say mathematical truth is no more than computation. But mathematical notation is for humans to talk about things that have meanings that humans can understand. Then how come an unfamiliar piece of source code is easier to follow than a mathematics paper using unfamiliar notation? You can look up the definition of each function and lear…

> A mathematical formalism that could be interpreted in a purely mechanical way would be a huge improvement.

Look at Homotopy Type Theory:

> https://homotopytypetheory.org/

Re: Mathematical Notation Is Awful

#73
The problem here is not the notation. Mathematical notation is not perfect, and can sometimes be confusing. Let me say this in a minimally offensive manner, without being obfuscatory: the author of this piece does not understand the mathematics underpinning the notation he is using. The root cause seems to be the use of probability theory in a cookbook manner. It can hardly be surprising that confusion results.

The first example is a formula. An instance of magic, in the sense that you use it to compute, without knowing what it does. The $x_i$'s are not quantified. What are they? Are they real numbers? Matrices? Elements of some semi-group? How can you expect to understand the "formula" if the summand is not explained? At best, I can say that it is a formal sum of something. We can forget discussing convergence or it being well-defined. You can cook up arbitrarily 'nice' notation. It won't help. This notation is absolutely fine for someone who can infer that the support of the distribution of X is some denumerable set {x_i}, equipped with p.m.f. p.

A suitable definition of the expected value (as an operator) would have cleared up all the confusing with the variance and E[X^2] vs (E[X])^2. This confusion is not the notation's fault. It is the user's fault for not knowing what E[f(x)] means (for some appropriate meaning of the symbol f).

>> Only the first xixi is squared. p(xi)p(xi) isn't, because it doesn't make any sense in the first place. It should really be just PXiPXi or something, because it's a discrete value, not a function!

Functions are not algebraic expressions by which we associate one real number with another. In fact, we call p(x_i) the probability mass function. It seems to be a common flaw in many undergrad programs. Formulas and functions are never made distinct. The vast majority of functions f : R -> R do not admit an expression in a formula.

The example with the different notation for "derivatives" is a good non-example. The so-called Leibniz notation is used because it allows people to make statements with differential forms, without needing to invoke exterior algebra. If this is done correctly, statements such as "dy = f'(x)dx" can be made fully rigorous, if need be. Students are told that dy/dx is not a fraction, and yet it is used exactly as though it were. This confuses people - because they don't know what is going on. The dot-notation for derivatives is extremely useful in classical mechanics.

Notation is a clutch for succinct and meaningful writing amongst the initiated. One cannot expect to be able to use these tools without knowing what is going on, or by suspending a great deal of questions.

>> There must be other ways we can explain math without having to explain the extraordinarily dense, outdated notation that we use.

My final gripe with this post. We typically use clean and modern notation. It could be so much worse! Also, if we didn't re-use symbols, then we would run out, very quickly. Mathematics exists independently of the symbols we use to communicate it.

Re: Mathematical Notation Is Awful

#74
post #70

Earlier quoted context omitted.

> Now that's a fine thing in a computer language -- and there are philosophers who say mathematical truth is no more than computation. But mathematical notation is for humans to talk about things that have meanings that humans can understand. Then how come an unfamiliar piece of source code is easier to follow than a mathematics paper using unfamiliar notation? You can look up the definition of each function and lear…

The answer to all of your questions: computer programs are written for computers to understand, and computers aren't very smart. Mathematical papers are written for mathematicians to understand, and they tend to be a lot smarter than computers.

Machine language is also written for computers to understand, but it's not easy to read. Computer-formalized math is usually even harder to read than regular notation. I don't think computers have much to do with this.

Re: Mathematical Notation Is Awful

#75

I started doing a lot better in calculus when I started using longer notation (e.g. f = x -> x³ instead of f(x) = x³) and making sure that things "type checked". For instance, this tendency to use f(x) to refer to a function, rather than just f, was very confusing to me, because f(x) is an element of the co-domain while f is a function (typically from real to real in my undergrad classes). I had to figure this out by…

It's good to think of dy/dx as (d/dx)y. In addition, it is also possible to make some sense of dy/dx. Here's one very hand-wavy way of looking at it.

Let ε be something very small, and define the difference operator d so that (df)(x) = f(x + ε) - f(x). Usually we don't want to handle the functions dx and dy by themselves, because they are so small, and their exact values depend on ε. But when we divide dy by dx we get something that is no longer ε-sized, and doesn't (in a limit sense) depend on the value of ε.

And why think way? When I learned the chain rule dy/dx = dy/du * du/dx I was told that even though the du's appear to cancel out, this is just abuse of notation and basically a meaningless coincidence. I understand that the teachers just wanted students to be careful; they don't want people "simplifying" dx/dy to x/y. However, I was never really satisfied with this explanation. I finally realized that by thinking about it using the difference operator above, it is not a meaningless coincidence: the du's actually do, in a sense, cancel out.

Re: Mathematical Notation Is Awful

#76
post #34

I think the fundamental source of confusion might be due to not understanding the concept of a random variable. In his example, X is a random variable; the expectation E[X] is an functional applied to its probability mass function. Given this, it should not be surprising if it seems to behave differently to "any other function, in math". If you understand this, I think the notation is natural: We have a random variab…

You are right, and the deeper source of the authers beef seems to be that he wants mathematics to be about textual rules. Now that's a fine thing in a computer language -- and there are philosophers who say mathematical truth is no more than computation. But mathematical notation is for humans to talk about things that have meanings that humans can understand. The fact is that E[X^2] is natural way of an important co…

> he wants mathematics to be about textual rules

that is a princial problem with his blog post.

In a way he is also kind of right - although I don't agree with his conclusion. E[X^2] is not the most precise notation. I have occasionally seen notations like E_X[X^2] to avoid confusion and clearly state "the expected value for X^2 with respect to the distribution of X" or something like that. I remember multiple times were imprecise notation has kept me from understanding statistical methods, while I would say that I am reasonably familiar with the field.

Another problem: Different "schools" use different notations, which are then mixed arbitrarily. This is a major problem for example on Wikipedia, where articles use different notation and sometimes switch notations within the article.

Re: Mathematical Notation Is Awful

#77
post #61
post #59

Earlier quoted context omitted.

Reading a "simple" research paper requires a different approach compared to reading a newspaper or a blog. I hope the following explanation helps. The notation actually helps to keep things simple. I think of it as a kind of metalinguistic programming [1] where a notation is introduced which then makes the important parts easier to understand. I am not mathematically inclined but I have to read papers containing math…

> The second time I have a pen and a highlighter where I actually label the mathematical symbols with arrows and words (using the textual descriptions). Gee, it's almost as if we should be writing the words out instead of writing one letter variable names. Funny how programmers found this to be good practice and mathematicians still write with a notation that's purposefully unreadable.

> Gee, it's almost as if we should be writing the words out instead of writing one letter variable names

That's how things were way back in the day, and it was terrible.

Re: Mathematical Notation Is Awful

#78
post #8
post #5

Earlier quoted context omitted.

You should learn what the concepts mean instead of judging the names associated to them. We call something a Ring to avoid saying "a set with two operations which behave in a certain way [...]" every time we refer to it.

"We call something a Ring to avoid saying" Why a "Ring" and not an "asda2+"?

From wiki: """[edit] The term "Zahlring" (number ring) was coined by David Hilbert in 1892 and published in 1897.[9] In 19th century German, the word "Ring" could mean "association", which is still used today in English in a limited sense (e.g., spy ring),[10] so if that were the etymology then it would be similar to the way "group" entered mathematics by being a non-technical word for "collection of related things". According to Harvey Cohn, Hilbert used the term for a ring that had the property of "circling directly back" to an element of itself.[11"""

Re: Mathematical Notation Is Awful

#79
post #13

These are just issues that someone unfamiliar with a field would face. None of them are problems for those of us in the field. First, the expectation thing. He's using a special case, E(X), and complaining that the more general case doesn't follow the general case. It's like saying "Well the plural of mouse is mice but the plural of house isn't hice!". The general definition of expectation (for a discrete probability…

This sounds so much like something the greybeards used to say in the 80s: "If it was hard to write, it should be hard to understand"

Basically, it's not the fault of our systems; it's the user's fault. Once he learns the arcane incantations, he'll understand why our way is the better way.

Computer UX has finally progressed beyond this arrogance. Why not math?

Re: Mathematical Notation Is Awful

#80

Earlier quoted context omitted.

You are right, and the deeper source of the authers beef seems to be that he wants mathematics to be about textual rules. Now that's a fine thing in a computer language -- and there are philosophers who say mathematical truth is no more than computation. But mathematical notation is for humans to talk about things that have meanings that humans can understand. The fact is that E[X^2] is natural way of an important co…

> Now that's a fine thing in a computer language -- and there are philosophers who say mathematical truth is no more than computation. But mathematical notation is for humans to talk about things that have meanings that humans can understand. Then how come an unfamiliar piece of source code is easier to follow than a mathematics paper using unfamiliar notation? You can look up the definition of each function and lear…

Indeed, looks like scientific literature in general and mathematical literature in particular are stuck in the past century. As much as I enjoy reading printed materials, I often think that using a modern computer-based approach to presenting them could prove a lot superior. And no, PDF would not cut it, even with the possibility of hyperlinking. In my view, PDF is like the idea of the horseless carriage, or, rather, of a carriage pulled by a mechanical horse - a new technology stuck in the past. Looks like the modern web browser platform, on the other hand, could provide a reasonable base on which one could build an extremely powerful "IDE" for creating and interacting with mathematical expositions.
Post reply on HN