MathGroup Archive 2002

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

Search the Archive

Re: Quantile function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35360] Re: Quantile function
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Tue, 9 Jul 2002 06:50:24 -0400 (EDT)
  • References: <200207080716.DAA19730@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Mathematica displays only a few digits (usually 6) as the result of a
numerical calculation. The precision is *not* what appears in your display.
One possibility is to ask for NumberForm:

In[1]:=
<< "Statistics`"
In[2]:=
gdist = GammaDistribution[3, 1]
Out[2]=
GammaDistribution[3, 1]

In[3]:=
Table[NumberForm[Quantile[gdist, 0.8], j], {j, 2, 16}]
Out[3]=
{4.3, 4.28, 4.279, 4.279, 4.27903, 4.27903, 4.2790299,

  4.27902986, 4.27902986, 4.2790298601, 4.27902986013,

  4.279029860125, 4.2790298601253, 4.27902986012533,

  4.279029860125333}

Here you have 15 decimals. Asking for more would be too much, I think. The
result is stored internally with as much precision as possible.

Tomas Garza
Mexico City


----- Original Message -----
From: "Abdullah Oblongata" <a at a.a>
To: mathgroup at smc.vnet.net
Subject: [mg35360]  Quantile function


> When using the quantile function:
>
> In[7]:=
> Quantile[dist, 0.8]
>
> Out[7]=
> 0.841621
>
> can anyone tell me how to get more accuracy?
>
> Thanks
>
>
>



  • Prev by Date: Re: Plotting problem
  • Next by Date: Re: Plotting problem
  • Previous by thread: Quantile function
  • Next by thread: RE: Quantile function