Re:Google: What We're Driving At
by code_duck on Saturday October 09, 2010 @11:47PM
(#1776512)
I'm not a statistician, but something about that doesn't sound right to me.
[ Parent
| on HN ]
>>> p = 1.2e6/7e9 # Probability of dying in any one year
>>> scipy.exp(log(1-p)*70) # Probability of NOT dying 70 years in a row
0.98807069644395429
>>> 1-_
0.011929303556045712
There might be some roundoff error in the exponentiation. I am too lazy to check.Out of interest, why do you prefer the second line to
(1-p)**70
? Is there some kind of improved numerical stability?Great, thanks for the clarification.