Calculating Probability

Even-Toed Ungulates Stand Back in Amazement

So, even if you tend to faint at the sight of a formula, using the numerical process with a few helper scripts will lead to correct probability calculations for statistical problems that are hard to grasp with intuition alone. If you're interested, you can find more advanced resources (albeit in Python and not Perl) [3] [5] and explore the fascinating world of discrete probability distributions.

Mike Schilli

Mike Schilli works as a software engineer with Yahoo! in Sunnyvale, California. He can be contacted at Mike's homepage can be found at


  1. Monty Hall problem:
  2. Bayes' theorem:
  3. Downey, Allen B. Think Bayes. O'Reilly, 2013
  4. Listings for this article:
  5. "Probabilistic Programming & Bayesian Methods for Hackers" by Cameron Davidson-Pilon:

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • recordMyDesktop

    A training video of a new application can really reduce the learning curve. The recordMyDesktop program is at an early stage of development but already stable enough for everyday use. We'll show you how to use the program to capture custom procedures in a desktop video.

  • Support System

    Contrary to popular belief, free software does offer support. Depending on the distro, this support can be found in a wide range of documentation formats. Here's what to expect from a sampling of distros.

  • Visual Aid

    Wekan lets self-organzing teams manage a project's workflow by tracking task ownership and progress visually.

  • Python match

    Exploring the new Python match statement, Python's implementation of switch/case.

  • Perl: Retouching Photos

    In many cases, whole series of digital images need the same kind of modifications, which forces the photo-grapher to repeat the same steps time and time again in GIMP. Have you ever considered retouching in Perl?

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95