• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Shortcuts With Chained Probabilities

    February 17th, 2021
    math  [html]
    Let's say you're considering an activity with a risk of death of one in a million. If you do it twice, is your risk two in a million?

    Technically, it's just under:

    1 - (1 - 1/1,000,000)^2 = ~2/1,000,001
    
    This is quite close! Approximating 1 - (1-p)^2 as p*2 was only off by 0.00005%.

    On the other hand, say you roll a die twice looking for a 1:

    1 - (1 - 1/6)^2 = ~31%
    
    The approximation would have given:
    1/6 * 2 = ~33%
    
    Which is off by 8%. And if we flip a coin looking for a tails:
    1/2 * 2 = 100%
    
    Which is clearly wrong since you could get heads twice in a row.

    It seems like this shortcut is better for small probabilities; why?

    If something has probability p, then the chance of it happening at least once in two independent tries is:

    1 - (1-p)^2
     = 1 - (1 - 2p + p^2)
     = 1 - 1 + 2p - p^2
     = 2p - p^2
    
    If p is very small, then p^2 is negligible, and 2p is only a very slight overestimate. As it gets larger, however, skipping it becomes more of a problem.

    This is the calculation that people do when adding micromorts: you can't die from the same thing multiple times, but your chance of death stays low enough that the inaccuracy of naively combining these probabilities is much smaller than the margin of error on our estimates.

    Comment via: facebook, lesswrong

    Recent posts on blogs I like:

    The Gift of It's Your Problem Now

    Recently a security hole in a certain open source Java library resulted in a worldwide emergency kerfuffle as, say, 40% of the possibly hundreds of millions of worldwide deployments of this library needed to be updated in a hurry. (The other 60% also …

    via apenwarr January 1, 2022

    The container throttling problem

    This is an excerpt from an internal document David Mackey and I co-authored in April 2019. The document is excerpted since much of the original doc was about comparing possible approaches to increasing efficency at Twitter, which is mostly information tha…

    via Posts on December 18, 2021

    Experiences in raising children in shared housing

    Sometimes I see posts about people’s hope to raise children in a group housing situation, and it often seems overly optimistic to me. In particular they seem to expect that there will be more shared childcare than I think should be expected. Today I talke…

    via The whole sky October 18, 2021

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact