Jump to content

Conditional probability table

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Loraof (talk | contribs) at 21:05, 15 May 2018 (top: wording and wikilink). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In statistics, the conditional probability table (CPT) is defined for a set of discrete and mutually dependent random variables to demonstrate conditional probability of a single variable with respect to the others. For example, assume there are three random variables where each has states. Then, the conditional probability table of provides the conditional probability values for for each of the K possible values of the variable and for each possible combination of values of This table has cells. In general, for variables with states, the CPT for any one of them has size [1]

With only two variables and two states, a CPT can be put into matrix form. For example, the values of with only two possible values for each variable, create a 2×2 matrix. This matrix is a stochastic matrix since the rows sum to 1; i.e. for all i.

References

  1. ^ Murphy, KP (2012). Machine learning: a probabilistic perspective. The MIT Press.