Hi,
I am finding that I get quite different results when I interchange the
following "equivalent" lines for sampling from a beta distribution in my
r script. The rbeta line is correct judging by the summary statistics of
the simulated values, while the qbeta line consistently leads to a
higher mean simulated value.
 
simulation <- rbeta(1, alpha, beta)
simulation <- qbeta(runif(1), alpha, beta)
 
Are there any implementation reasons for this?
 
Thanks
 
Mark Pinkerton
Risk Management Solutions 
Peninsular House
30 Monument Street
London EC3R 8HB 
UK 
 
www.RMS.com <http://www.rms.com/>  
Tel:  +44 20 7444 7783 
Fax: +44 20 7444 7601
 


This message and any attachments contain information that may be RMS Inc. 
confidential and/or privileged.  If you are not the intended recipient 
(or authorized to receive for the intended recipient), and have received 
this message in error, any use, disclosure or distribution is strictly 
prohibited.   If you have received this message in error, please notify 
the sender immediately by replying to the e-mail and permanently deleting 
the message from your computer and/or storage system.

	[[alternative HTML version deleted]]

