Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistical Data Analysis > Probability & Statistics > Conditioned (Conditioned) >
Mathematica > Mathematics and Algorithms > Statistical Data Analysis > Probability & Statistics > Conditioned (Conditioned) >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF