Menu

(Solved) : Part 1 Build Confidence Intervals Population Mean Using Formula Standard Error Mean Done R Q27383184 . . .

# Part 1. BUILD CONFIDENCE INTERVALS FOR THE POPULATION MEAN,USING

# THE FORMULA FOR THE STANDARD ERROR OF THE MEAN.

This is all done in R programmnig

# Draw n.trial=100 samples of sample.size = 90 from thenon-Normal population,

# above. We want to confirm that the CI (as computed with ourformula) covers the

# population mean correctly. That is what a CI is designed todo, after all.

# From each sample, we will compute the sample standarddeviation to use in the

# formula for the std err, and construct 95% CIs. We make a plotthat shows all

# 100 CIs, and we count how many of them cover the populationmean.

n.trial = 100

sample.size = 90

CI = matrix(nrow=n.trial,ncol=2) # Space for storing 2 numbersmaking CI.  

CI

## FOR YOUR LAB SHEET #2: (a) Draw & label a N(0,1) curvethat represents the quantity “z_star”.

## let x = a sequence from -3 to 3, incremented by 0.1

## recall f of x (fx) is given by the “dnorm” function….

## fx = dnorm(x,mean=0,sd=1)

## Then you’ll need to plot x and fx.

## (b) Explain how z_star relates to the confidence level usedfor these CIs. (You don’t need R for this.)

## (c) Write down the confidence interval for the populationmean. (You don’t need R for this.)

## (d) Where does the true population mean in the simulated datafall? Is it in the CI? (You don’t need R for this…in general,will the population

## mean always fall inside the CI?)

## (e) View the contents of the “CI” vector you created in the”for” loop.

## Describe its contents (don’t copy and paste the full vector,it’s big.)

Expert Answer


Answer to Part 1 Build Confidence Intervals Population Mean Using Formula Standard Error Mean Done R Q27383184 . . .

OR