Skip to Content

Probabilistic

Open Node Contextual Menu > Edit, then select Probability Distribution > Tabular in the Node Editor.

Current Tabular controls

Whereas the arcs connecting nodes make up the qualitative part of a Bayesian network by defining direct probabilistic dependencies, conditional probability distributions constitute the quantitative part, i.e., the type and strength of the probabilistic relationships. Such distributions are most commonly represented in the form of Conditional Probability Tables (CPTs), which allow representing every possible discrete conditional probability distribution.

Conditional Probability Table

Within the Probability Distribution tab of the Node Editor, the Tabular tab reveals the Conditional Probability Table (CPT) of the selected node.

Reading and interpreting the CPT is straightforward. We illustrate it with the familiar Visit Asia network.

  • The left part of the CPT shows all the combinations of the states of the parent nodes, TbOrCa\mathit{TbOrCa} and Bronchitis\mathit{Bronchitis}. So, in this example, we have two parent nodes.
    • Of course, the left part only exists if the node in question has at least one parent node.
    • Without parent nodes, there would only be an (unconditional) Probability Table.
  • The right part of the CPT shows the probability distribution of the child node, Dyspnea\mathit{Dyspnea}, conditional on the states of the parent nodes. To represent a valid distribution, the sum of the probabilities in a row must be equal to 100%. In the first row, TbOrCa\mathit{TbOrCa} is True\mathrm{True} and Bronchitis\mathit{Bronchitis} is Yes\mathrm{Yes}. For Dyspnea\mathit{Dyspnea}, the probability of Yes\mathrm{Yes} is 90% and the probability of No\mathrm{No} is 10%. The last row gives a 10% probability of Yes\mathrm{Yes} for Dyspnea\mathit{Dyspnea} when TbOrCa\mathit{TbOrCa} is False\mathrm{False} and Bronchitis\mathit{Bronchitis} is No\mathrm{No}.
Loading SVG...

Editing the conditional probability table

Since CPTs represent all interactions between the parents, their size grows exponentially with the number of parents and, thus, editing the table manually can be challenging. As a result, learning CPTs from data is the preferable approach provided that data is available.

However, in the context of constructing Bayesian networks from expert knowledge, editing the CPTs directly becomes necessary.

Basic editing

The Node Editor provides a number of editing features that can help manage even large tables efficiently:

  • Probability-table entries are percentages. Enter 90 for a probability of 0.9.
  • You can paste probabilities into the CPT from external applications, such as spreadsheets.
  • You can copy the CPT from the Node Editor and paste it into external applications in various formats, e.g., plain text, HTML, bitmap image, or a vector image format.
  • You can move the columns of the parent node, so the table arrangement matches the way you think about the domain.
  • You can select individual cells by clicking on them, or you can select multiple cells by clicking on column or row headers.
  • Use Shift+click to select a contiguous range from the active cell.
  • Use Ctrl+click (Windows) or Cmd+click (macOS) to add or remove an individual cell from the selection.
  • Entering a value while cells are selected applies the entered value to all selected cells.
Table editing actions

Complete

The examples below use a Discrete Node N1\mathit{N1} with states Low\mathrm{Low}, Medium\mathrm{Medium} and High\mathrm{High} in Modeling Mode. After entering the input, close the Node Editor with OK and reopen it to clear the current cell selection. With no cells selected, all three cells are in scope.

Complete distributes the remaining probability equally among blank cells. With 50% already assigned to Low\mathrm{Low}, the two blanks receive 25% each.

Loading SVG...
Loading SVG...

If the existing entries exceed 100%, Complete sets blank cells to 0%; that row still needs correction to total 100%. If the row is filled and its sum is below 100%, Complete normalizes the relative weights.

Normalize

For a filled row, Normalize preserves the relative weights and makes the row sum to 100%. Weights of 1, 2 and 3 become approximately 16.667%, 33.333% and 50%:

Loading SVG...
Loading SVG...

For the incomplete input 1%, 2% and a blank, Normalize fills the blank with 97%:

Loading SVG...
Loading SVG...

Randomize

With no cells selected, clicking Randomize generates a random distribution for the whole probability row. In the verified three-state example, the probabilities for Low\mathrm{Low}, Medium\mathrm{Medium} and High\mathrm{High} are approximately 6.257%, 37.731% and 56.012%. The full-precision probabilities sum to 100%; subsequent runs can produce different distributions. Randomize can be useful for prototyping and testing.

Loading SVG...

Assess

Compared to the previous functions, Complete, Normalize, and Randomize, the Assess function plays a very different role.

In fact, unless you have Experts defined in the context of using the Bayesia Expert Knowledge Elicitation Environment (BEKEE), the Assess button will not be visible on this tab. We show it here for the sake of completeness, but defer a detailed discussion to the BEKEE User Manual.

Assess with an expert-enabled network

Select a probability cell to enable Assess. Clicking it opens Assessment Editor.