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

Home » Public Forums » archive » RANDOMN function
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: RANDOMN function [message #86506 is a reply to message #86502] Thu, 14 November 2013 10:19 Go to previous messageGo to previous message
Russell Ryan is currently offline  Russell Ryan
Messages: 122
Registered: May 2012
Senior Member
On Thursday, November 14, 2013 10:25:08 AM UTC-5, fd_...@mail.com wrote:
> On Thursday, 14 November 2013 15:12:55 UTC, rr...@stsci.edu wrote:
>
>> There are lies, damned lies, and statistics.
>
>
>
> What do you mean by saying that there are lies, damned lies and statistics?
>
> The fact that the mean of the values generated by RANDOMN(seed,N) is not zero it's not wrong?

It's a saying from Benjamin Disraeli (at least credited to him by wikipedia). I think his original meaning was that statistics can be used (or misused) to present any argument you want, and is now often just a joke about statistics. Your problem was really rooted in the central limit theorem:

http://en.wikipedia.org/wiki/Central_limit_theorem

Ultimately, the accuracy of any statistical quantity is increased by a larger sample. You were simply quoting an average of a bunch of random numbers and were worried that it wasn't zero, as you correctly expect. But, even if you do a billion numbers the average won't be exactly zero. It will only be zero within some range, which you would probably concede is fine if you also compute the variance on the average. In which case, you'll see (I'm willing to bet) that your 1000 random numbers were actually mean zero, within the variance.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to make lat/long grid for MODIS in IDL
Next Topic: =?UTF-8?Q?How=20to=20use=20IDL=20to=20?==?UTF-8?Q?call=20?= =?UTF-8?Q?SQL=5FServer=5F2008=20datab?==?UTF-8?Q?ase?=

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

Current Time: Wed Oct 08 19:27:17 PDT 2025

Total time taken to generate the page: 0.00425 seconds