Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Lab 4 The Central Limit Theorem and A Monte Carlo Simulation

Lab 4 The Central Limit Theorem and A Monte Carlo Simulation

Lab 4 The Central Limit Theorem and A Monte Carlo Simulation

Experiment 1. The Central Limit Theorem

The Central Limit Theorem says that the sampling distribution of means, of samples of size n

from a population with a mean of ? and a standard deviation of ?, is approximately a normal

distribution with mean ?? ?X and standard deviation n

X

? ? ? , if sample size 30n ? .

Please start R, then open a new script file File ? New script and save it as Lab4_tutorial by going to File ? Save As and saving it to your M or One Drive. Note: You will need all the graphs from this tutorial for the Lab Assignment at the end. Please make sure you save them as you go.

We consider a population that has an exponential distribution with parameter 1.0??

(therefore, 10?? and 10?? ). This distribution is very much skewed to the right. In this experiment, we will demonstrate the Central Limit Theorem by showing that the sampling distribution of sample means, of samples from this exponential population, approaches a

normal distribution with mean of 10????X and standard deviation of nn

X

10 ??

? ? , as

sample size n gets sufficiently large.

1. Generate samples from the population with an Exponential Distribution (?= 0.1)

Simulate 100 random values from the Exponential Distribution (?= 0.1) for each of 60 columns as follows: #Start by defining a matrix of all zeros and specify the number of rows

#with nrow and number of columns with ncol.

#Label the columns using the dimnames function which takes a list

#list(rownames, columnnames)

samples<-matrix(0,nrow=100,ncol=60, dimnames=list(NULL, paste("Sample", 1:60, sep=" "))) #use a for loop to fill each of the columns of the matrix with a random #sample of 100 values from a Exp(0.1) distn for (i in 1:60){ samples[,i]<-rexp(100,0.1) } 2 2. Explore the population distribution by examining the distribution of a random sample: We can examine a distribution of data set by displaying its mean and standard deviation. The following is a mean and standard deviation of a random sample of size 100 (Sample 1) from the population with Exponential distribution (? = 0.1). #Subset the first column from the matrix and call it sample1R script file to write the progess and use word file to write the answer only 3 questions

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Homework Free Org

Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.

© 2020 Homework Free Org