What does last one say about the utility of standard errors

Assignment Help Applied Statistics
Reference no: EM131888674

Lab: Exercise your R prowess!

Start the R software package. Select File/New script, and in the script box paste the following code:

clt<-function(sampleSize,samples=10000){

means<-numeric(samples)

for(j in 1:samples) {

means[j]<-mean(runif(sampleSize,0,1))

}

hist(means,xlab="Mean",

main=paste("Central Limit theorem demonstration\nVariance = ",round(sd(means)^2,8)),

xlim=c(0,1),ylim=c(0,4000),breaks=seq(0,1,0.05),

angle=60,density=25,col="dark green",border="black")

}

Highlight the code and press CTRL-r (hold down the control key and press "r"). This code creates a function that instructs R to collect means of 10000 samples of a given size and then print a frequency histogram of the 10000 means. Samples are chosen from a random number generator that selects numbers between 0 and 1. You can run the function for a sample size of 1 by clicking on the R console and then typing:

clt(1)

and pressing the enter key. Satisfy yourself that the underlying distribution is uniform.

Try running it for a range of sample sizes between 2 and 50 (for samples of size 5 the command is "clt(5)". In a paragraph comment on what happens to the frequency distributions. These distributions are known as "sampling distributions".

Note that the code also prints out the variance of the sample means. Run the code for samples of sizes 1, 5, 10, 20, 30, 40 and 50. Calculate the variance of the sampling distribution for each run and then graph variance against sample size. The R code for plotting y against x is:

plot(xVector, yVector, xlab="Label for the x-axis", ylab="Label for the y-axis")

where a vector is defined as a list of numbers separated by commas within the parentheses of "c( )". Try graphing variance against the inverse of sample size. Are the graphs you've encountered and created in this exercise consistent with the central limit theorem? What does the last one say about the utility of standard errors?

Attachment:- Assignment File.rar

Reference no: EM131888674

Questions Cloud

How many degrees of freedom are there : In a particular chi-square goodness-of-fit test, there are six categories and 500 observations. Use the .01 significance level.
Different benchmarks used to evaluate each fund performance : Different benchmarks used to evaluate each fund’s performance.
Identify the other three key macroeconomic objectives : Analyze what is meant by this and its importance, and identify the other three key macroeconomic objectives.
Write a personality analysis about winston churchill : You will need to select concepts or theories from two (2) distinct personality perspectives/approaches for analyzing this person's life.
What does last one say about the utility of standard errors : Lab: Exercise your R prowess! Try graphing variance against the inverse of sample size. What does the last one say about the utility of standard errors
When looking at the law of diminishing returns : When looking at the law of diminishing returns, you will find that this is when the utility of the next unit you have consumed will decrease
What rate of return did margaret earn during the year : What rate of return did Margaret earn during the year?
Effects on wages and employment : Make a supply and demand graph illustrating the scenario, the shock, and the predicted effects on wages and employment;
Financing transactions of the statement of cash flows : Prepare the cash flows from investing activities section and the schedule of noncash investing and financing transactions of the statement of cash flows

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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