{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

normapproxR - rownames(ExponentialSamples<...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 # To use R commander to generate samples: # > library(Rcmdr) # From Rcmdr menu: # Distributions # --> Continuous Distributinos # --> Exponential Distribution # --> Sample from Exponential distribution # Select number of samples and sample size etc. # Equivalently, copy the following comands into the command window: #matrix with 50 samples of size n=100 from the exponential distribution #last column has the sample mean ExponentialSamples <- as.data.frame(matrix(rexp(50*100, rate=1), ncol=100))
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rownames(ExponentialSamples) <- paste("sample", 1:50, sep="") colnames(ExponentialSamples) <- paste("obs", 1:100, sep="") ExponentialSamples$mean <- rowMeans(ExponentialSamples[,1:100]) # Now let's look at the sample and the sample means. .. # histogram of one of the first sample hist(as.numeric(ExponentialSamples[1,-101])) #histogram of the sample means hist(ExponentialSamples[,101])...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern