Exercise: Create and Train a Bayesian Network

Apply what you’ve learned about creating and training a Bayesian network in the coding exercises in this lesson.

Let's remember that Pieter had a positive test for a very rare disease that affects about 0.1% of the population. The test can correctly identify 99% of people who have the disease and only incorrectly identify 1% of people who don't have the disease.

Tasks

  1. Simulate the data.

  2. Train the Bayesian network.

  3. Show the query of the baseline.

Playground

Get hands-on with 1300+ tech skills courses.