Calculate CDF

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have large set of data.

I want to plot CDF for that I want to calculate cdf (cumulative
distribution function).

on CPAN I found one module Math::CDF.

but not sure how to use it.

there is function called pnorm($x). but what is $x? how can I get
value of $x.

is there anyother method to calculate CDF.

Re: Calculate CDF wrote:
Quoted text here. Click to load it

Three minutes before you posted this question, you asked the same
question at comp.lang.perl.misc. Multi-posting is considered bad manners.

Gunnar Hjalmarsson

Re: Calculate CDF

Quoted text here. Click to load it

5 MB?  5 GB?  5 TB?  5 PB?

Quoted text here. Click to load it

$x is the deviate.  Math::CDF works on theoretical distributions, not
empirical ones.

Quoted text here. Click to load it

Sort your data, then "cumulate" it.  If you already know the bins you want
to use, you can bin it without sorting.


-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.

Site Timeline