|
SOLUTIONS
|
Mathematica
>
Data Manipulation
>
Statistical Data Analysis
>
Probability & Statistics
>
Conditioned (
)
BUILT-IN MATHEMATICA SYMBOL
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[pred
cond, ...] gives the conditional probability of pred given cond. - Expectation[expr
cond, ...] 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]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
Use NProbability to get the numerical value directly:
| In[3]:= |
| Out[3]= |
Compute a conditional expectation:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
Use NExpectation to get the numerical value directly:
| In[3]:= |
| Out[3]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

