Live data from Hacker News

Mathematical Notation Is Awful

blackhole12.blogspot.com

11–20 of 97 posts

Re: Mathematical Notation Is Awful

#11
post #6

Domain-specific languages, notation, and vocabulary exist for many disciplines. They are for the benefit of experienced practitioners and allow them to express common concepts and ideas in a precise and concise fashion to those who have been also been trained in the art. Sometimes jargon, abbreviations, and cryptic notation exist to artificially make it harder for outsiders to understand what's going on, but the exam…

> Most humans are capable of using context to distinguish usage. Operator overloading in programming languages and in mathematics can be useful sometimes.

No doubt about it! But the difference as I see it, and what the OP is complaining about, is that in domain specific programming languages it's always possible to find a definition for the notation (an overloaded operator is defined somewhere, and so on); whereas in mathematics the only real definition is in the head of a mathematician.

I have to agree with the OP, that sucks. :(

Re: Mathematical Notation Is Awful

#12
>Two, wikipedia refers to E(X) and E(Y) as the means, not the expected value. This gets even more confusing because, at the beginning of the Wikipedia article, it used brackets (E[X]), and now it's using parenthesis (E(X)). Is that the same value? Is it something completely different? Calling it the mean would be confusing because the average of a given data set isn't necessarily the same as finding what the average expected value of a probability distribution is, which is why we call it the expected value. But naturally, I quickly discovered that yes, the mean and the average and the expected value are all exactly the same thing! Also, I still don't know why Wikipedia suddenly switched to E(X) instead of E[X] because it stills means the exact same goddamn thing.

IIRC, the mean is the particular case of the expected value where the transformation function is the identity function.

The general expression of the expected value, where f(x) is the probability density function and g(x) is the transformation function, is:

E[g(X)] = \int{g(x) * f(x) * dx}

Let g be the identity function (g(x) = x), then E[g(X)] is the mean.

For example, let's say that you bet on a throw of dice such than you win 2$ if the result is odd, lose 3$ if the result is 2, and win or lose nothing otherwise. Here, the event X is the throw of dice: you have 6 possible outcomes. Your transformation function is the gain you get for each outcome, therefore g(x) is defined by:

1 -> +2

2 -> -3

3 -> +2

4 -> 0

5 -> +2

6 -> 0

Then, the expected value E[g(X)] can be calculated by summing all the g(x) multiplied by the probability p(x) for all x (all outcomes).

The first point of the article, in my opinion, is more about statistics than math in general, and I believe people find it weird because of the confusion between X and x, the former being a random variable associated with a distribution function, the ater being a value in the domain of X.

The second point of the article is just ease of notation. The derivative of a function doesn't exist; a derivative is always made with respect to a variable (df/dx), but if a function has only one variable, then the derivative of the function is defined as the derivative of the function with respect to the one and only variable and we don't need to write this only variable (f'(x)).

You could always write the variables of a function (df(x, y, z)\dy instead of df/dy), but that's just a waste of time, specially when you have to write it for every line of the demonstration.

Re: Mathematical Notation Is Awful

#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) is

E(f(x)) = sum f(x_i)* p(x_i)

If you start with this general definition, both E(X) and E(X^2) are perfectly natural. The author's error of starting with the special case in no way implies an issue with notation.

And how is the fact that Wikipedia is inconsistent between E(X) and E[X] in any way mathematical notation's fault? If you read a novel that starts using ' for quotes and switches to ", that's an issue with the novel (assuming its not stylistic) and not an issue with the typography in general.

Re: Mathematical Notation Is Awful

#14
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+"?

the problems I had were mostly with good names. So names that are 1. already used in everyday life AND 2. really fit the concept.

These words have definitions in my head that I use often and now math uses them differently.

Like 'Menge' (german for Set) which has 'almost' the same definition in math and everyday use.

I like the physics approach more, gluons, quarks, protons, etc. these are all words that never had any definition in my life in the first place

Re: Mathematical Notation Is Awful

#15
I remember being so outraged when i was first introduced to derivative in high school... Seeing that they didn't use the same notation nor exact same definition in my physics class and maths class, in the same year, that was making me absolutely furious...

Re: Mathematical Notation Is Awful

#16

Leibniz's notation is useful for the chain rule and change of variables for parametric based equations

Leibniz notation is very interesting as it is not technically correct but it is still is used in lots of maths today. Recommended: http://math.stackexchange.com/questions/21199/is-frac-textrm...

Re: Mathematical Notation Is Awful

#17
One interesting observation that popped into my mind when I read the OP: Mathematicians don't write mathematical notation in papers/books by hand anymore, they use a far more verbose language called LATEX.

Wouldn't it be great if every time you saw a mathematical formula there was a little widget to push that would show you the "source code" in LATEX++, and LATEX++ was like LATEX but made up of stringently defined mathematical operations (like '\element_wise_multiplication' instead of '\plus_sign_with_circle_around_it')? :D

Re: Mathematical Notation Is Awful

#18
This a thousand times. I boycott math notation. My most memorable math moments are:

- giving a talk on notation in high school (I was not tasked to do this, I decided to do it on my own) because I was FREAKED OUT by how we were using tons of symbols nobody had ever explained or defined

- converting all Math I encountered in University to Common Lisp programs to get rid of the shit notation

- bursting into crazy laughter when after five algebra lectures the prof notices that the students parse his notation differently than he does

Give it names, use S-Expressions.

Re: Mathematical Notation Is Awful

#19
post #6

Domain-specific languages, notation, and vocabulary exist for many disciplines. They are for the benefit of experienced practitioners and allow them to express common concepts and ideas in a precise and concise fashion to those who have been also been trained in the art. Sometimes jargon, abbreviations, and cryptic notation exist to artificially make it harder for outsiders to understand what's going on, but the exam…

The problem is that while it's easy as an expert to distinguish usage using context, it can make things needlessly hard on students who are learning new concepts, because whenever they're faced with something they don't understand they have to worry about whether they don't understand the concept or whether they don't understand the terminology. For example, sin^2(x) is often used as a shorthand for sin(x)^2 when really it should mean sin(sin(x)). Or in basic combinatorics, n and k and s can mean pretty much whatever the author wants it to mean, which is a pity when you could just standardize on something.

Re: Mathematical Notation Is Awful

#20

One interesting observation that popped into my mind when I read the OP: Mathematicians don't write mathematical notation in papers/books by hand anymore, they use a far more verbose language called LATEX. Wouldn't it be great if every time you saw a mathematical formula there was a little widget to push that would show you the "source code" in LATEX++, and LATEX++ was like LATEX but made up of stringently defined ma…

It's good practice anyway in LaTeX to define your own aliases and use them for semantic information. Like in one of my recent projects, I define:

    \newcommand{\disjointunion}{\sqcup}
Post reply on HN