MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Numerical vaule of multinormal distribution


Pratim Vakish wrote:
> I have a basic question.
> I want toobtain the numerical value of the cumulative normal probability distribution function at some points.
> I have the following code to do this :
>  
> Off[General::spell1];
> Needs["Statistics`MultinormalDistribution`"];
> r = {{0.8, 0.1}, {0.1, 0.2}};
> ndist = MultinormalDistribution[{1, 0.4}, r];
> CDF[ndist, {-1, 1}]
> 
> 
> The output I obtain is:
> 
> CDF[MultinormalDistribution[{1, 0.4}, {{0.8, 0.1}, {0.1, 0.2}}], {-1, 1}]
> 
> I would like to have the numerical value of this expression. 
> How could I do?

Try with a fresh kernel or a new session:

In[1]:=
Needs["Statistics`MultinormalDistribution`"];
r = {{0.8, 0.1}, {0.1, 0.2}};
ndist = MultinormalDistribution[{1, 0.4}, r];
CDF[ndist, {-1, 1}]

Out[4]=
0.0124156

I suspect that in you case the definition of MultinormalDistribution is 
shadowed by some other definitions or previous works. See "Contexts and 
Packages" in [1] and also "Shadowing Conflicts" in [2].

HTH,
Jean-Marc

1.   http://documents.wolfram.com/mathematica/book/section-2.7.9

2. 
http://documents.wolfram.com/mathematica/Add-onsLinks/WorkingWithAdd-ons/UsingAdd-ons.html


  • Prev by Date: Re: Plotting a function -
  • Next by Date: Re: Numerical vaule of multinormal distribution
  • Previous by thread: Re: Numerical vaule of multinormal distribution
  • Next by thread: Re: Numerical vaule of multinormal distribution