News for hackers. Stuff that matters.
Re:The Man Who Invented Modern Probability by tikhonj on Thursday August 22, 2013 @04:39PM (#6259912)
> Kolmogorov armed a group of researchers with electromechanical calculators and charged them with the task of calculating the rhythmical structures of Russian poetry

And this is what "big data" and NLP were like before computers :).

One can only imagine what he could have done with a modern computer. (Which is particular hard to imagine because he's responsible for advances which ultimately led to these same modern computers...)

Also, as an aside, I'm very impressed by the quality of nautil.us articles. I've come a across a few randomly, and they've been uniformly high in quality, interesting and insightful.

Moreover, unlike much popular science/math reporting, the articles are not ridden with obvious errors and yet are easily followed by somebody not in the field. An impressive combination. (Not surprising for this particular article, I suppose: it was written by a professor teaching the history of mathematics at MIT.)

Re:The Man Who Invented Modern Probability by dxbydt on Thursday August 22, 2013 @05:23PM (#6260188)
>And this is what "big data" and NLP were like before computers :)

aside, I recently interviewed a candidate for a "Big Data" position. He got quite chatty about Kolmogorov & Measure Theory, so I quickly cooked up an interesting problem to relax his nerves. I opened the interview with "If the side of a cube comes from a uniform distribution between 1 and 5 inches, what's the expected volume of the cube ?" I thought he'll give me the answer in 10 seconds & we'll move on but instead he was completely stumped & just stared blankly. I asked him to use the whiteboard but he simply drew a cube and wrote a^3, a~[1,5], and then went back to staring at it. Finally after 10 minutes of pin-drop silence, my partner, a non-math guy, took over the interview & asked him some Hadoop related technology questions & he started speaking again.

Re:The Man Who Invented Modern Probability by SatvikBeri on Thursday August 22, 2013 @06:00PM (#6260385)
If the side length isn't constrained to integers, the expected volume is 39 inches cubed.

In a bit more detail: take the integral of x^3 (the volume function) from 1 to 5 and you get 5^4/4 - 1^4/4 = 624/4 = 156. Then we divide by the length of the line segment (4) to get 39.

If the side lengths have to be integers, then it's just (1 + 8 + 27 + 64 + 125)/5 = 45 inches.

Edit: corrected division mistake, thanks to dxbydt

Edit 2: and corrected a second mistake thanks to tzs.

Re:The Man Who Invented Modern Probability by tzs on Thursday August 22, 2013 @06:13PM (#6260448)
> Edit: corrected division mistake, thanks to dxbydt

Well, one of the mistakes:

> If the side lengths have to be integers, then it's just (1 + 8 + 27 + 125)/4 = 40.25 inches

If I'm not mistaken, 4 is an integer, and so should not have cruelly snubbed when you sent out invitations to your summation of the cubes of the integers from 1 to 5. Sure, 4 is not a cool integer like the others in 1 to 5...he's got a reputation as a square, but that doesn't mean he doesn't have feelings.

Re:The Man Who Invented Modern Probability by SatvikBeri on Thursday August 22, 2013 @06:21PM (#6260478)
Oy. Someone needs to revoke my math license. Thanks for the correction!
Re:The Man Who Invented Modern Probability by dxbydt on Thursday August 22, 2013 @06:38PM (#6260547)
My, my, 2 mistakes on a silly uniform distribution! You must atone for this sin. Explain what the volume would be if the side came from a normal distribution over [1,5] (ie. mean 3, sigma 2/3) Otherwise I will personally call the MAA director on my speed dial & haul your ass back to stat101 :)

But seriously, you write rather well on Quora & I'm sure the crowd would want to know what happens to the volume were you to choose a normal distribution instead of a uniform, so I hope you respond.

Re:The Man Who Invented Modern Probability by Cogito on Thursday August 22, 2013 @08:38PM (#6261022)
From [0]:

Let X be a random variable and g be any function.

If X is continuous, then the expectation of g(X) is defined as,

E[g(X)] = \int_−∞^∞ g(x)f(x) dx,

where f is the probability density function of X.

---

For us, with mean 3 and sigma 2/3, f = 3/2 e^(-9/8 (x-3)^2)/sqrt(2 π)

We need to integrate numerically; using Wolfram [1] we get an estimate of 30.8099.

If we ask for the expected value over the entire distribution we get 31.

[0] http://imai.princeton.edu/teaching/files/Expectation.pdf

[1] http://www.wolframalpha.com/input/?i=integrate+3%2F2+e%5E%28...

[2] http://www.wolframalpha.com/input/?i=expected+value+of+x%5E3...

Re:The Man Who Invented Modern Probability by drdeca on Thursday August 22, 2013 @06:08PM (#6260424)
156/4=39
Re:The Man Who Invented Modern Probability by dxbydt on Thursday August 22, 2013 @06:05PM (#6260412)
not 59, 39.
Re:The Man Who Invented Modern Probability by SatvikBeri on Thursday August 22, 2013 @06:09PM (#6260431)
Heh, failed at the simplest step. Thanks for the correction.
Re:The Man Who Invented Modern Probability by vladimirralev on Friday August 23, 2013 @01:54AM (#6261929)
He was staring at it because he was looking for a shortcut that must make the problem obvious enough to be done in 10 secs. If you don't provide context on such tasks, that's expected.
Re:The Man Who Invented Modern Probability by pseut on Friday August 23, 2013 @10:03AM (#6263651)
The shortcut's E h(X) = ∫ h(x) f(x) dx. So, math.
Re:The Man Who Invented Modern Probability by vasilipupkin on Friday August 23, 2013 @08:30AM (#6263033)
It's stories like this why I keep coming back to Hacker News
Re:The Man Who Invented Modern Probability by Chris2048 on Thursday August 22, 2013 @05:27PM (#6260215)
What's the answer?
Re:The Man Who Invented Modern Probability by relaia on Thursday August 22, 2013 @05:28PM (#6260219)
27?
Re:The Man Who Invented Modern Probability by tzs on Thursday August 22, 2013 @06:06PM (#6260415)
Nope. To see where the subtlety lies in this problem, simplify it. Change it to a discrete problem: the side can be 1, 3, or 5, each with probability 1/3. The expected value of the side length is still 3.

1/3 of the cubes have volume 1, 1/3 have volume 27, and 1/3 have volume 125. The expected value of the volume is 51. Think about why it is 51, not 27, and you'll see why it is not 27 for the continuous case.

In general, if you have a random variable X, and some function of that random variable, f(X), then it is NOT true that expected value of f(X) = f(expected value of X).

Re:The Man Who Invented Modern Probability by dropdownmenu on Thursday August 22, 2013 @10:01PM (#6261293)
27 would be correct if each side were independent random variables rather than the cube of a random variable. The way the problem is set up you are suppose to solve for E[a^3] (the third moment of the random variable) rather than (E[a])^3.
Re:The Man Who Invented Modern Probability by zeckalpha on Thursday August 22, 2013 @05:53PM (#6260353)
I'd say 45, assuming the side length is an integer.
Re:The Man Who Invented Modern Probability by lsconjugate on Thursday August 22, 2013 @05:46PM (#6260308)
39
Re:The Man Who Invented Modern Probability by solve on Thursday August 22, 2013 @06:03PM (#6260402)

    from random import random
    sum([(random()*4+1)**3 for x in xrange(1000000)])/1000000
    => ~39
Weird.
Re:The Man Who Invented Modern Probability by bluetech on Friday August 23, 2013 @03:18AM (#6262174)

  sum(random.uniform(1, 5)**3 for i in range(10000)) / 10000
Many people don't know that the random module allows to sample from many distributions directly without having to construct your own.
Re:The Man Who Invented Modern Probability by hollerith on Friday August 23, 2013 @06:39AM (#6262656)
I like the first version better because everyone knows what infix * and + do.
Re:The Man Who Invented Modern Probability by saucetenuto on Friday August 23, 2013 @08:58AM (#6263174)
I like the second version better because it taught me something I didn't know.
Re:The Man Who Invented Modern Probability by VladRussian2 on Thursday August 22, 2013 @11:32PM (#6261547)
>One can only imagine what he could have done with a modern computer.

The historical anecdote my thesis advisor was telling about origins of his (i mean founded by him) branch of the science was along the lines "Americans had computers and could get good numerical solutions, while we didn't have computers and thus were forced to work on analytical solution". Well, that analytical solution he produced happened to be a great insight into the problem space and still continues to be the key tool for the research in that area almost 60 years later.

Re:The Man Who Invented Modern Probability by James_Duval on Friday August 23, 2013 @05:01AM (#6262431)
I only know NLP as an abbreviation of the pseudoscience of neuro-linguistic programming.

What does it mean in this context? Non-linear probability?

Re:The Man Who Invented Modern Probability by stiff on Friday August 23, 2013 @05:05AM (#6262445)
Natural Language Processing.