[R] Drawing random numbers from Uniform distribution with infinite range
Berwin A Turlach
berw|n@tur|@ch @end|ng |rom gm@||@com
Tue Jul 29 05:31:47 CEST 2025
On Mon, 28 Jul 2025 13:23:21 -0400
Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
> As others have told you, you can't. You can talk about a uniform
> distribution on the reals but there's no way to normlize it so it
> integrates to 1, so it's an "improper" distribution, and there is no
> way to sample from those.
Most (all?) MCMC algorithms will happily sample from improper
distributions. Of course, it is not clear what they sample. ;-)
Cheers,
Berwin
More information about the R-help
mailing list