Module 6: Lesson 3


Introduction to Probability with Python

This lesson calculates probabilities and applies Bayes theorem in Python.

Objectives

By the end of this lesson, you will be be able to

  • compute the probability of an event in Python,
  • use random sampling in Python,
  • compute joint probabilities in Python,
  • compute conditional probabilities in Python, and
  • apply Bayes theorem in Python.

Time Estimate

Approximately 2 hours.

Activities

Reading: Explore basic probability concepts by using this visual website from seeing-theory.

Reading: Explore conditional probability concepts by using this visual website from seeing-theory.

Video: Watch the calculating probabilities in Python video, which will demonstrate how to compute probabilities and apply Bayes theorem in Python.

Notebook: Read and complete the student exercises in the Introduction to Probability notebook.


© 2017: Robert J. Brunner at the University of Illinois.

This notebook is released under the Creative Commons license CC BY-NC-SA 4.0. Any reproduction, adaptation, distribution, dissemination or making available of this notebook for commercial use is not allowed unless authorized in writing by the copyright holder.