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 mailto:mschilli@perlmeister.com. Mike's homepage can be found at http://perlmeister.com.

Infos

  1. Monty Hall problem: http://en.wikipedia.org/wiki/Monty_Hall_problem
  2. Bayes' theorem: http://en.wikipedia.org/wiki/Bayes%27_theorem
  3. Downey, Allen B. Think Bayes. O'Reilly, 2013
  4. Listings for this article: ftp://ftp.linux-magazin.com/pub/listings/magazine/165
  5. "Probabilistic Programming & Bayesian Methods for Hackers" by Cameron Davidson-Pilon: http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/

Buy this article as PDF

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

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
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.

  • 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?

  • Python generators simulate gambling

    Can 10 heads in a row really occur in a coin toss? Or, can the lucky numbers in the lottery be 1, 2, 3, 4, 5, 6? We investigate the law of large numbers.

  • Security Lessons: Admin Automation

    Combining Puppet, Foreman, Pulp, Candlepin, and Katello lets you deploy software and servers automatically and securely.

  • Exclusive Klaus Knopper Interview

    Klaus Knopper still has big ideas for the little distro that has spawned many derivatives and changed the way we think of live Linux. I asked Klaus about the past, present, and future of Knoppix.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95

News