Hello guys, I am stuck here: How do I make 1000 samples of n = 10 observations from an Exponential distribution and then compute the mean for all those 1000 samples? Basically I need to prove the Central Limit theorem, which states: http://www.nabble.com/file/p22664113/d175f06cbf200bd52a2c27a2e56dc594.png Where the Sn is sum of random variables, n we have from the question, mu is mean and (sigma)^2 is variance. I am having trouble setting up the function to do this. Any help apreciated! -- View this message in context: http://www.nabble.com/How-to-set-up-a-function-for-%22Central-Limit-Theorem%22-tp22664113p22664113.html Sent from the R help mailing list archive at Nabble.com.
stephen sefick
2009-Mar-23 18:18 UTC
[R] How to set up a function for "Central Limit Theorem"
homework? On Mon, Mar 23, 2009 at 1:30 PM, pfc_ivan <pfc_ivan at hotmail.com> wrote:> > Hello guys, I am stuck here: > > How do I make 1000 samples of n = 10 observations from an Exponential > distribution and then compute the mean for all those 1000 samples? > > Basically I need to prove the Central Limit theorem, which states: > > http://www.nabble.com/file/p22664113/d175f06cbf200bd52a2c27a2e56dc594.png > > Where the Sn is sum of random variables, n we have from the question, mu is > mean and (sigma)^2 is variance. > > I am having trouble setting up the function to do this. > > Any help apreciated! > > -- > View this message in context: http://www.nabble.com/How-to-set-up-a-function-for-%22Central-Limit-Theorem%22-tp22664113p22664113.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis
Charles Annis, P.E.
2009-Mar-23 19:14 UTC
[R] How to set up a function for "Central Limit Theorem"
Ivan: While you're figuring out how to execute the CLT in R you may find my automated examples informative. http://StatisticalEngineering.com/central_limit_theorem.htm Charles Annis, P.E. Charles.Annis at StatisticalEngineering.com phone: 561-352-9699 eFax: 614-455-3265 http://www.StatisticalEngineering.com -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of pfc_ivan Sent: Monday, March 23, 2009 1:31 PM To: r-help at r-project.org Subject: [R] How to set up a function for "Central Limit Theorem" Hello guys, I am stuck here: How do I make 1000 samples of n = 10 observations from an Exponential distribution and then compute the mean for all those 1000 samples? Basically I need to prove the Central Limit theorem, which states: http://www.nabble.com/file/p22664113/d175f06cbf200bd52a2c27a2e56dc594.png Where the Sn is sum of random variables, n we have from the question, mu is mean and (sigma)^2 is variance. I am having trouble setting up the function to do this. Any help apreciated! -- View this message in context: http://www.nabble.com/How-to-set-up-a-function-for-%22Central-Limit-Theorem% 22-tp22664113p22664113.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
G. Jay Kerns
2009-Mar-24 01:44 UTC
[R] How to set up a function for "Central Limit Theorem"
Dear Ivan, On 3/23/09, pfc_ivan <pfc_ivan at hotmail.com> wrote:> > Hello guys, I am stuck here: > > How do I make 1000 samples of n = 10 observations from an Exponential > distribution and then compute the mean for all those 1000 samples? >The R Commander will do this. See the menus Distributions -> Continuous -> Exponential -> Sample... If you were wanting to normalize the row sums (or investigate the sampling distribution of some other statistic, for that matter) then check out the Sampling Distributions... menu in RcmdrPlugin.IPSUR. Good luck, Jay> Basically I need to prove the Central Limit theorem, which states: > > http://www.nabble.com/file/p22664113/d175f06cbf200bd52a2c27a2e56dc594.png > > Where the Sn is sum of random variables, n we have from the question, mu is > mean and (sigma)^2 is variance. > > I am having trouble setting up the function to do this.*************************************************** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 Cushwa Hall Phone: (330) 941-3310 Office (voice mail) -3302 Department -3170 FAX E-mail: gkerns at ysu.edu http://www.cc.ysu.edu/~gjkerns/