Understanding the Output of the Model

Understand the conceptual output of a Bayesian network.

Understanding the output of the Bayesian network on Python using CausalNex

We have seen that creating Bayesian networks in Python is quite simple, it takes just a few lines of code! However, the most important thing is to understand the output of these networks.

A query refers to a request for computing the probability of certain outcomes or states given some known conditions or evidence. Remember that a Bayesian network is a graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG). Queries in this context are used to infer the probabilities of unknown variables based on known variables.

The baseline query

Let's take the rain model BN model. In this example, “Wet Grass” is the target node.

Get hands-on with 1300+ tech skills courses.