[Numpy-discussion] Random int64 and float64 numbers
josef.pktd@gmai...
josef.pktd@gmai...
Sun Nov 1 21:39:49 CST 2009
On Sun, Nov 1, 2009 at 10:55 PM, David Cournapeau
<david@ar.media.kyoto-u.ac.jp> wrote:
> josef.pktd@gmail.com wrote:
>>
>> array([ Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf, Inf])
>>
>> might actually be the right answer if you want a uniform distribution
>> on the real line.
>
> Does it make sense to define a uniform random variable whose range is
> the extended real line ? It would not have a distribution w.r.t the
> Lebesgue measure, right ?
>
> I must confess I am quickly lost in the maths in statistics, though,
No, it wouldn't be a proper distribution. However in Bayesian analysis
it is used as an improper (diffuse) prior, which often replicates
frequentists results. But it's a theoretical derivation, I don't think
anyone tries to simulate this.
To simulate huge uniform integers, I think it should be possible to use
the floating point random numbers and rescale and round them.
Josef
>
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list