# Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# NProbability

NProbability[pred,xdist]
gives the numerical probability for an event that satisfies the predicate pred under the assumption that x follows the probability distribution dist.

NProbability[pred,{x1,x2,}dist]
gives the numerical probability that an event satisfies pred under the assumption that follows the multivariate distribution dist.

NProbability[pred,{x1dist1,x2dist2,}]
gives the numerical probability that an event satisfies pred under the assumption that , , are independent and follow the distributions , , .

NProbability[pred1pred2,]
gives the numerical conditional probability of given .

## Details and OptionsDetails and Options

• can be entered as x EscdistEsc dist or .
• can be entered as EsccondEsc or .
• NProbability works like Probability except numerical summation and integration methods are used.
• For a continuous distribution dist, the probability of pred is given by where is the probability density function of dist and the integral is taken over the domain of dist.
• For a discrete distribution dist, the probability of pred is given by where is the probability density function of dist and the summation is taken over the domain of dist.
• NProbability[pred,{x1dist1,x2dist2}] corresponds to NExpectation[NProbability[pred,x2dist2],x1dist1] so that the last variable is summed or integrated first.
• N[Probability[]] calls NProbability for probabilities that cannot be done symbolically.
• The following options can be given:
•  AccuracyGoal ∞ digits of absolute accuracy sought PrecisionGoal Automatic digits of precision sought WorkingPrecision MachinePrecision the precision used in internal computations Method Automatic what method to use

## ExamplesExamplesopen allclose all

### Basic Examples  (3)Basic Examples  (3)

Compute the probability of a simple event:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=
 In[5]:=
 Out[5]=

Compute the probability of a nonlinear and logical combination of inequalities:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=
 In[4]:=
 Out[4]=

Compute a conditional probability:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=