Understand monte carlo simulation techniques

Assignment Help Applied Statistics
Reference no: EM13975824

CLT Project

In this project you will be analyzing your assigned distribution to help understand Monte Carlo simulation techniques and the Central Limit Theorem (CLT). By the end of your analysis you will determine the minimum given sample size in which the CLT is applicable for your distribution and write a short report, in which a hardcopy will be handed in.

Include in this report

• a short background about your given distribution

• what is the CLT

• all the graphs and answers to the questions described below, making sure the information are referenced somewhere (doesn't have to be in the order below) in the body of the report.

Expect that I don't have these guidelines so you need to explain what you did as well as tell me the results and analysis. Hence, you should not have sections referring the the following problems below, instead your report should be like a technical paper. If you use outside sources (such as may be neces- sary for the background of your distribuiton), remember to cite in the paper as well as at the end.

You will also need to submit your R code on collab as a script (named "LastName1_LastName2.R"). Keep your code neat and commented where applicable, otherwise points will be deducted. There is no need to include R code in your report.

Further report specifications: The main section of the report is further subject to the following limita- tions:

• Paper size: Letter (8.5 inches by 11 inches)

• Font: 12pt of either Times New Roman, Arial, or Calibri

• Line spacing: Either 1.5 lines or Double

• Total number of pages: 3 or less

• Stapled and either Double or Single sided

1. Plot the density function of your assigned distribution as well as the standard normal distribution on one graph (impose them on top of one another), in which the x-axis has a range from -10 to 10 [increment the data points by 0.1]. Also make sure to include appropriate labels and title as well as include a legend and have each line be distinct, using a combination of color and/or line type. You may need to increase the y-axis range to capture the fit of your distribution, if so try from 0 to 3. [Note - avoid using color unless you are going to use a color printer.] Compare your given distribution to the standard normal, be descriptive.

2. Now start a Monte Carlo simulations with K = 10000 iterations for your given distribution. You will be analyzing this distribution with numerous sample sizes n as you are trying to determine what sample size (if any) is large enough for the central limit theorem to be applicable. Calculate and save the mean and standard deviation of each iteration in corresponding vectors so that it can be used later. You can use a loop to cycle through the different sample sizes for your given distribution to save on tedious copying and pasting but you should not use a loop to randomly sample or calculate the mean and standard deviation of the distirbution. Hint - it might be eas- iest to save everything in lists (where each component refers to a different sample size) or 3D matrices.

n < - c(5, 20, 30, 50, 70, 100, 150, 200, 500)

3. We would expect that a normal QQ-Plot of the sampling distribution of X¯ to look like a straight line with the y-intercept being the population mean of x¯ and a slope being the corresponding population standard deviation of x¯. Graph the QQ-Plot for each X¯ (of each sample size) generated in Part 3. At the end of your analysis save the corresponding QQ-Plot for the minimum sample size in which the CLT is applicable for your report. Add corresponding titles and lines to this plot. Note - You should not be using the function qqline to graph the line and you may need to do some research to determine population mean and variance.

Also keep in mind that your plot window in RStudio may be too small and may look like the sam- ple size is large enough when it is actually not. So make so you zoom in on the graph before making your decision.

4. The CLT also has several properties that should also be satisfied. Test the following three properties before making a decision on what sample size is considered large enough for your distribution. Report these properties in a table format for all tested sample sizes.

μx' = μ, σx2 = σ2/n, E(s2) = σ2

5. Now that you have determined what sample size is large enough for the CLT to apply to your distribution, you are going to draw some histograms to see the CLT outcome visually. For easy comparison save the following two histograms in the same window different graphs or as trans- parent histograms on top one another. The first histogram should be created from 5000 random data points drawn from your orginial distribution. The second histograms will correspond to the mean vector you created in part (2) of the sample size you determined was large enough for the CLT to apply. Assuming a large enough sample size you should notice that the second graph will look approximately normal, otherwise the CLT does not apply. Label these graphs correctly and use them in your report to support you conclusion of the CLT theorem for you determined sample size.

6. If the CLT approximations holds, we expect about 95% of the confidence intervals X¯ ± tα/2, n-1 s/√n to contain the true mean value µ.

Determine the percentage of simulated confidence intervals that contain the true mean value for the minimum sample size in which the CLT is applicable. Again at the end of your analysis save the corresponding percentage for the minimum sample size in which the CLT is applicable. Report this and what it means.

7. We can visualize the confidence intervals by plotting them vertically and making a horizontal line that represents the true value µ. Due this for the first 100 confidence intervals constructed for the minimum sample size in which the CLT is applicable. Make it so each confidence interval line is a solid line (colors can vary or be the same). Correctly label and title this graph.

Attachment:- Project-2.rar

Reference no: EM13975824

Questions Cloud

The dominant and recessive alleles : In a population of mountain lions, 9% of the individuals suffer from a disease caused by a recessive allele (aa). Calculate the frequency of both the dominant and recessive alleles.
How to prevent accounting manipulations : If necessary how to prevent accounting manipulations?
Compute the total cash budgeted to be collected in march if : Northwest Equipment offers a 3% discount to customers who pay cash at the time of sale and a 2% discount to customers who pay within the first 10 days of the month after sale. Compute the total cash budgeted to be collected in March if sales forecast..
What is the structural formula of ethane : What is the structural formula of ethane. What is hydrogenation reaction. Which is the most common application of hydrogenation reaction. What is a carbohydrate.What are saccharides in biochemistry. What are the various subgroups of saccharides. How ..
Understand monte carlo simulation techniques : You will be analyzing your assigned distribution to help understand Monte Carlo simulation techniques and the Central Limit Theorem
What is the frictional force on the block : A block of mass 6.1 kg rests on a plane inclined at an angle of 28? . The static coefficient of friction between the block and the plane is 0.68. What is the frictional force on the block?
What is the average force applied by the tree : How much momentum does the truck have just before hitting the tree? What is the average force applied by the tree? What is the total momentum of the two billion people?
What is the diameter of the objective lense : An optical microscope with a focal length of 1.6 mm can just resolve features on a computer chip that are 400 nm apart when the sample is viewed in air using light with a wavelength of 550 nm. When the sample is submerged in oil with an unknown in..
Suggest short-term recommendations for the set of six jobs : From the case study, evaluate the efficiency of Balloons Aloha's sequencing system. Provide long-term recommendations with respect to sequencing jobs at the company. Support your recommendations.

Reviews

Write a Review

Applied Statistics Questions & Answers

  What is the distribution

Let X~N(2,6) and Y~N(-3,2) and Z~N(0,1). All three random variables are independent of each other. Do the following. a. What is the distribution of W=X+Y+Z? What are E(W) and Var(W)? b. What is the distribution of Q=2Y?

  A manufacturer of potato chips

A manufacturer of potato chips would like to know whether its bag filling machine works properly at the 409 gram setting. It is believed the machine is underfilling the bags. A 35 gram bag sample had a mean of 404 grams. A level of significance of 0...

  Bob''s golf score follows the normal distribution with a mean

Bob's golf score at his local course follows the normal distribution with a mean of 92.1 and a standard deviation of 3.8. What is the probability that the score on his next round of golf will be between 82 and 89?

  Find an estimate of the probability distribution of x

Find an estimate of the probability distribution of x = this song's rating by a randomly selected listener who is familiar with the song.

  Find probability that his forecast is at most six percent

Find the probability that his/her forecast is At least 3.5 percent,  At most 6 percent and Between 3.5 percent and 6 percent.

  Discrete probability concepts to determine a course of actio

Given a business situation word problem or case study, such as defective items or waiting lines, use discrete probability concepts to determine a course of action

  Develop a schedule for hiring new employees.

Develop a schedule for hiring new employees.

  Dependent independent

You are given the following information about y and x. y x Dependent Independent Variable Variable 5 15 7 12 9 10 11 7

  Question 1 variable xx lt- c3 4 8 4 2 1 0 6 variable yy lt-

question 1 variable xx lt- c3 4 8 4 2 1 0 6 variable yy lt- c1 2 4 2 2 0 1 4 calculate z-scores for all values in the

  State the null hypothesis for the effect of guided imagery

What type of analysis was conducted in this study? Was this analysis technique appropriate? Provide a rationale for your answer and how many means are being compared for the pain scores at 12 weeks?

  Interpreting statistical data

The researchers used the available survey data and summarised the nature of the car accidents and if a mobile phone was being used by the driver either during (or immediately before) the accident

  Which of the variables has the strongest relationship

Describe the direction of the relationship between the Hamstring strength index 60°/s and the Shuttle run test and without using numbers, describe the relationship between the Hamstring strength index 120°/s and the Triple hop index.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd