Conditioned

Conditioned[expr, cond]
or represents expr conditioned by the predicate cond.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples (2)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]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »