Probability Computations

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

In[83]:=

a = 1 ;

b = 4 ;

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

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

P(1 ≤ X ≤ 4) = 0.164277

Use the CDF to compute probability.

In[87]:=

Off[General :: spell1]

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

On[General :: spell1]

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

P(1 ≤ X ≤ 4) = 0.164277


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