| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Re: Generating random real numbers |
| From: | David Scollnik <scollnik@math.ucalgary.ca> |
| Date: | Tue, 03 Apr 2001 12:26:20 -0600 |
| Organization: | University of Calgary |
| References: | <Pine.A41.3.96.1010403133310.44036A-100000@aix1.uottawa.ca> |
|
The (fairly) general solution is as follows.
If F denotes the cdf and FI the inverse cdf of the distribution
of interest,
X = FI( F(A) + U * ( F(B) - F(A) ) ) Here, U is a vector of independent uniform random variates. For a reference, see Devroye's textbook (Non-Uniform Random Variate
On Tue, 3 Apr 2001, Alastair Dempster wrote: -- David P.M. Scollnik , Ph.D. , A.S.A. (403) 220 7677 Dept of Math and Stats , Univ of Calgary or (403) 220 5203 scollnik@ucalgary.ca ++ http://balducci.math.ucalgary.ca |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Summary: What's wrong with "export.data"?, Gerald . Jean |
|---|---|
| Next by Date: | Re: Generating random real numbers, Dave Krantz |
| Previous by Thread: | Re: Generating random real numbers, Mike C. Sawada |
| Next by Thread: | Re: Generating random real numbers, Joseph Beyene |
| Indexes: | [Date] [Thread] [Top] [All Lists] |