|
Thanks Peter. Thanks Bruno.
I really appreciate your help.
Regards,
dhaskantha
Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com> wrote in message <ihk1n8$bqc$1@fred.mathworks.com>...
> On 1/21/2011 8:57 PM, dhaskantha wrote:
> > I would like to know how to find the inverse cumulative distribution
> > function for the inverse Gaussian(Wald Distribution). Is there any built
> > in function to do this?
>
> There are two things you might do, assuming you have access to the
> Statistics Toolbox (which it seems you do):
>
> 1) (as you say) create a probability distribution using
> ProbDistUnivParam, and use its
>
> >> p = ProbDistUnivParam('inversegaussian',[1 1])
> p =
> inversegaussian distribution
> mu = 1
> lambda = 1
> >> icdf(p,.5)
> ans =
> 0.67584
>
> 2) Use the icdf function (the doc on this is not clear on this, I've
> made a note to fix that)
>
> >> icdf('inversegaussian',.5,1,1)
> ans =
> 0.67584
>
> Hope this helps.
|