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

  • DIY Scoreboard

    We look at a broadcast video system network that uses Python code to control a video router and check out another program that creates a scoreboard.

  • CardStock

    CardStock provides a simple development environment for building a Python graphical application.

  • ReportLab and Panda3D

    A game of bingo illustrates how to use the ReportLab toolkit and Panda3D real-time 3D engine.

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

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News