This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Conditioned

Conditioned
or represents expr conditioned by the predicate cond.
  • can be entered as expr Esc cond Esc cond or .
  • The expression expr can correspond either to a predicate with logical values or to an object with numerical values.
  • Probability gives the conditional probability of pred given cond.
  • Expectation gives the conditional expectation of expr given cond.
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:
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]=
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:
Conditioned has lower precedence than And:
Use parentheses to obtain the intended result:
New in 8