Skip to Content

Discrete Probability Distributions

Open Node Contextual Menu > Edit, then select Probability Distribution > Formula in the Node Editor. Choose Discrete Probability Distributions in the function catalog.

NoisyOr(s, leak, c1, p1, cn, pn)

  • Description: This function represents a noisy OR in which the effect of the parents (the causes ci) on the symptom s can be inhibited. pi represents the probability that the cause i acts on the symptom (the inhibition probability is then 1−pi1 - p_i). It is also possible to define a leak probability for the set of causes that are not directly modeled.

  • Number of parameters: an even number, at least 4

  • Parameter type: boolean, numerical, boolean, numerical, …, boolean, numerical

  • Result type: real

Example

The conditional probability table below corresponds to NoisyOr(?N3?, 0.1, ?N1?, 0.8, ?N2?, 0.6):

N1N2N3 = FalseN3 = True
FalseFalse(1−0.1)(1 - 0.1)0.1
FalseTrue(1−0.1)×(1−0.6)(1 - 0.1) \times (1 - 0.6)0.64
TrueFalse(1−0.1)×(1−0.8)(1 - 0.1) \times (1 - 0.8)0.82
TrueTrue(1−0.1)×(1−0.8)×(1−0.6)(1 - 0.1) \times (1 - 0.8) \times (1 - 0.6)0.928

NoisyAnd(s, leak, c1, p1, cn, pn)

  • Description: This function represents a noisy AND, i.e., the noisy OR negation.

  • Number of parameters: an even number, at least 4

  • Parameter type: boolean, numerical, boolean, numerical, …, boolean, numerical

  • Result type: real

Example

The conditional probability table below corresponds to NoisyAnd(?N3?, 0.1, ?N1?, 0.8, ?N2?, 0.6):

N1N2N3 = FalseN3 = True
FalseFalse0.928(1−0.1)×(1−0.6)×(1−0.8)(1 - 0.1) \times (1 - 0.6) \times (1 - 0.8)
FalseTrue0.82(1−0.1)×(1−0.8)(1 - 0.1) \times (1 - 0.8)
TrueFalse0.64(1−0.1)×(1−0.6)(1 - 0.1) \times (1 - 0.6)
TrueTrue0.1(1−0.1)(1 - 0.1)

The Monitor examples below use a numerical node with integer states from 0 to 20. BayesiaLab normalizes the formula values over these states. For distributions with probability mass above 20, the displayed probabilities and moments therefore describe the distribution restricted to this range.

Binomial(k, n, p)

  • Description: Probability of obtaining exactly k occurrences of the same event of probability p among n independent experiments.

  • Number of parameters: 3

  • Parameter type: integer, integer, numerical

  • Result type: real

Example

The probability distribution below corresponds to Binomial(?N1?, 20, 0.3):

Loading SVG...

NegBinomial(k, n, p)

  • Description: Probability of observing k failures before obtaining n successes in independent experiments, each with success probability p.

  • Number of parameters: 3

  • Parameter type: integer, integer, numerical

  • Result type: real

Example

The probability distribution below corresponds to NegBinomial(?N1?, 4, 0.3):

Loading SVG...

Geometric(k, p)

  • Description: Probability of observing k failures before the first success in independent experiments, each with success probability p.

  • Number of parameters: 2

  • Parameter type: integer, numerical

  • Result type: real

Example

The probability distribution below corresponds to Geometric(?N1?, 0.3):

Loading SVG...

Hypergeometric(k, n, m, N)

  • Description: Probability of obtaining k winning objects when choosing n objects among N, where m are winning objects.

  • Number of parameters: 4

  • Parameter type: integer, integer, integer, integer

  • Result type: real

Example

The probability distribution below corresponds to Hypergeometric(?N1?, 5, 5, 20):

Loading SVG...

Poisson(k, l)

  • Description: Probability of obtaining k observations of an event in a large number of independent experiments when the mean is l.

  • Number of parameters: 2

  • Parameter type: integer, real

  • Result type: real

Example

The probability distribution below corresponds to Poisson(?N1?, 18.5):

Loading SVG...

DiscUniform(k, a, b)

  • Description: Probability of an integer outcome k drawn uniformly from the integers in the inclusive interval [a,b][a, b]. Each integer in the interval has probability 1b−a+1\frac{1}{b-a+1}, and outcomes outside the interval have probability zero.

  • Number of parameters: 3

  • Parameter type: integer, integer, integer

  • Result type: real

Example

The probability distribution below corresponds to DiscUniform(?N1?, 3, 8). The six integer outcomes from 3 through 8 each have probability approximately 16.67 percent. Their mean is 5.5.

Loading SVG...