or exprcond represents expr conditioned by the predicate cond.



open allclose all

Basic Examples  (2)

Compute the probability of a conditional event:

Use NProbability to get the numerical value directly:

Compute a conditional expectation:

Use NExpectation to get the numerical value directly:

Scope  (3)

Compute a conditional expectation for a discrete distribution:

Continuous distribution:

Derived distribution:

Data distribution:

Multivariate distribution:

Use implicit time to compute a conditional probabiity for a random process:

Obtain the same result using the corresponding slice distribution:

Conditional probability for a multivariate slice of a random process using implicit times:

Obtain the same result using the corresponding multivariate slice distribution:

Properties & Relations  (4)

A conditional probability is a ratio of two probabilities:

The conditional probability is 0 if the events are mutually exclusive:

Compute the probability of an event in a TruncatedDistribution:

Obtain the same result using a conditional probability calculation:

For independent variables, a conditional probability is the same as unconditional probability:

Possible Issues  (1)

Conditioned has lower precedence than And:

Use parentheses to obtain the intended result:

Introduced in 2010