Conditioned

Conditioned[expr,cond]

or exprcond represents expr conditioned by the predicate cond.

Details

  • exprcond can be entered as expr cond cond or expr[Conditioned]cond.
  • The expression expr can correspond either to a predicate with logical values or to an object with numerical values.
  • Probability[predcond,] gives the conditional probability of pred given cond.
  • Expectation[exprcond,] gives the conditional expectation of expr given cond.
  • Conditioned can be used in functions such as Probability, NProbability, Expectation, and NExpectation.

Examples

open allclose all

Basic Examples  (2)

Compute the probability of a conditional event:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Use NProbability to get the numerical value directly:

In[3]:=
Click for copyable input
Out[3]=

Compute a conditional expectation:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Use NExpectation to get the numerical value directly:

In[3]:=
Click for copyable input
Out[3]=

Scope  (3)

Properties & Relations  (4)

Possible Issues  (1)

See Also

Probability  NProbability  Expectation  NExpectation

Introduced in 2010
(8.0)