Probability Computations

Use the PDF to compute probability, where a and b are the lower and upper bounds of the interval of interest.

In[84]:=

a = 10 ;

b = 14 ;

PDFProb = ∫_a^b f[x] x ;

Print["P(", a, " ≤ X ≤ ", b, ") = ", N[PDFProb]]

P(10 ≤ X ≤ 14) = 0.4

Use the CDF to compute probability.

In[15]:=

Off[General :: spell1]

CDFProb = F[b] - F[a] ;

On[General :: spell1]

Print["P(", a, " ≤ X ≤ ", b, ") = ", N[CDFProb]]

P(10 ≤ X ≤ 14) = 0.4


Created by Mathematica  (July 20, 2006) Valid XHTML 1.1!