comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Box-Whisker plots in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Box-Whisker plots in IDL [message #55391 is a reply to message #55390] Mon, 20 August 2007 16:04 Go to previous messageGo to previous message
jschwab@gmail.com is currently offline  jschwab@gmail.com
Messages: 30
Registered: December 2006
Member
Pardon me if I'm mistaken, but I think these "quartiles with
histogram" examples, including the one that's in JD's histogram
tutorial are fundamentally incorrect.

You are assuming "Equal bin widths" ==> "Equal #'s in each bin" !

When HISTOGRAM splits a data list into N bins, it does so such that
the *width* of the bins are equal. In no way does it somehow create a
situation in which the *number of points* in each bin is equal (which
is what would be required to find quartiles in such a manner).

The given examples have only "worked" because you're either dealing
with uniform distributions (in which case equal bin widths do imply
equal numbers in each bin) or because the example data happens to be
roughly uniform.

If you want to convince yourself, try one of those codes with
data = randomu(seed, 1000) * 100.
and then with
data2 = data * data
The quartiles in the 2nd case should simply be the squares of the
quartiles from the first.


Cheers,
Josiah
--
Josiah Schwab
MIT, Course VIII
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: MODIS spectral radiance
Next Topic: How to read ASTER in ENVI?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:06:09 PDT 2025

Total time taken to generate the page: 0.48043 seconds