Skip to Content

Conditional Probability Tables

Whereas the arcs connecting the nodes constitute the qualitative part of the network by indicating the direct probabilistic dependencies, conditional probability distributions represent the quantitative part (type and strength of the probabilistic relationships). The most commonly used representation models to describe these distributions are the conditional probability tables.

Loading SVG...
Click to Zoom
Loading SVG...

The left columns show combinations of the parent states. The right columns show the child’s probability distribution for each combination. Each completed probability row must sum to 100%.

When a node has parents, you can change their order by dragging the parent headers. The table reorganizes accordingly.

If the network has a database and the states of the node are not modified, a tooltip displays, for each probability, the number of corresponding cases in the database (taking into account the smoothing factor, if any) and the represented percentage of the database.

Example

In the first row, TbOrCa\mathit{TbOrCa}=True\mathrm{True} and Bronchitis\mathit{Bronchitis}=Yes\mathrm{Yes}. The probability of Dyspnea\mathit{Dyspnea}=Yes\mathrm{Yes} is 90%, and the probability of No\mathrm{No} is 10%.

In the last row, TbOrCa\mathit{TbOrCa}=False\mathrm{False} and Bronchitis\mathit{Bronchitis}=No\mathrm{No}. The probability of Dyspnea\mathit{Dyspnea}=Yes\mathrm{Yes} is 10%.

Nodes without parents

A node without parents has one unconditional probability row. Here, VisitAsia\mathit{VisitAsia} has a probability of 1% for Yes\mathrm{Yes} and 99% for No\mathrm{No}.

Loading SVG...

Table Editing

The main problem with conditional probability tables is the exponential growth of the number of lines with respect to the number of parents. Acquiring their data can quickly become a tedious task. When databases exist, they can be filled automatically (learning of the parameters). It is also possible to use equations to describe probability distributions more concisely.

Probability entry can also be alleviated by using cut-and-paste facilities inside the same table, between different tables, or with external applications.

Click a cell or a row/column header to select it. Use Ctrl+click (Windows) or Cmd+click (macOS) to add or remove individual cells, rows or columns from the selection. Use Shift+click to select a contiguous range from the active cell or header. Entering a value while multiple cells are selected applies it to those cells.

Probabilities can be copied and pasted to other tables or to external applications.

Complete

Complete distributes the remaining probability equally among the blank cells in scope. In this one-row example, no cells are selected. The input contains 50% for Low\mathrm{Low} and two blanks:

Loading SVG...

Clicking Complete fills the blanks with 25% each:

Loading SVG...

If all cells are filled and the row sum is below 100%, Complete normalizes their relative weights. If the existing entries exceed 100%, it sets blank cells to 0%; the row still needs to be adjusted or normalized to total 100%.

Normalize

Probabilities are reduced or augmented in such a way that the relative weight of each remains unchanged. If there is at least a blank cell and the residual is positive, this operation corresponds to the Complete operation.

Randomize

All the cells of the Conditional Probability Table, or just the selected cells, are randomly filled.

Assessment

When experts are associated with the network, the Assess button is displayed and is activated when a cell is selected. The border of the cells with assessments becomes green and the icon displayed in the cell indicates how important the disagreement between the experts is for this cell.

For worked examples, see the Tabular editor.