Hi Monks,

I needed to count median as well as 25th and 75th percentile (though I can work without them) for a large dataset. For this I decided to use the Statistics::Descriptive.

I have dataset with ~30million numbers, but decided to use first 5m to limit the memory use (if someone has less memory using module, let me know) and I know that the variation between numbers is not that large so it should give me large enough set to work from. However I encountered a small problem. It doesn't return value for 25th percentile or 1st quartile. Has anyone encountered this before, should I go report this as bug?

I'm using Statistics::Descriptive 3.0100 (just hot off CPAN) and perl v5.10.0 (kubuntu 9.10).

In reply to Using Statistics::Descriptive for percentiles by Hena

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.