Question

Q4. (Sampling distributions and the central limit theorem) [10 points Sup- pose you programmed a computer to do the following: Step 1: Randomly choose an integer number from 1-5 (with equal proba bility of choosing each value). Do this 147 times to get a sample of n=147 randoin numbers Step 2: Using the sample in step 1, calculate μ = x and σ-82 Step 3: Repeat steps 1-2 another 9,999 times to get a total of 10,000 differ- ent sample means μ and variances σ2 calculated in the same way a. Suppose you created a histogram using your 10,000 values of μ. What does this histogram te us [2 points b. What do you expect would be the mean of the 10,000 values of μ? What do you expect would be the variance? [2 points] c. What can you say about the approximate shape of the histogram? [2 points] d. Suppose you increased the sample size in step 1 above to n-289 observa- tions. How would this change (or not change) your answers to (a)-(c)? In (c), how does the histogram change (or not change)? (4 points

0 0
Add a comment Improve this question Transcribed image text
Answer #1

R codes

> Step 1

>
> random_sample = sample(1:5,1)
> sample = rep(random_sample,147)
> length(sample)
[1] 147
>
>
> Step 2

>
> mean = mean(sample)
> variance = var(sample)
>
> Step3

>
> mean1 = variance1 = c()
> for (i in 1: 9999)
+ {
+ random_sample = sample(1:5,1)
+ sample = rep(random_sample,147)
+ mean1[i] = mean(sample)
+ variance1[i] = var(sample)
+ }
>

a)

From this we can say that all numbers are drawn in equal proportion.

b)

Expected value of mean of all 10000 values of mean is (1+2+3+4+5)/5 = 3

From sample Value of mean for 10000 values of mean is 2.9999

Expected value of variance of all 10000 value of mean is var of 1,2,3,4,5 which is 2.5

From sample Value of variance for 10000 values of mean is 2.013

c)

Shape of histogram has uniform distribution. All points between 1 and 5 are uniformly distributed.

Add a comment
Know the answer?
Add Answer to:
Q4. (Sampling distributions and the central limit theorem) [10 points Sup- pose you programmed a computer...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4 The Sampling Distributions of Means and Proportions The Central Limit Theorem] Suggested Readin...

    4 The Sampling Distributions of Means and Proportions The Central Limit Theorem] Suggested Reading #6 (The Central Limit Theorem) 41 Ponder this and calculate: Consider all possible random samples of 5 in a class of 28 many different samples are there? Show your work (not as tedious as it appears) Note: Please continue to use the algebraic notation, as discussed in class, to obtain the answer e.9. Px<54) or P (x> 112)-1-P(x< 112)-1-Pizs ete. 4.2 A nurse supervisor has found...

  • 1) the distribution and histogram of individual penny dates for the entire class (this will be our population), Math/BSAD 2170 Sampling Distributions and Central Limit Theorem 2) the dis...

    1) the distribution and histogram of individual penny dates for the entire class (this will be our population), Math/BSAD 2170 Sampling Distributions and Central Limit Theorem 2) the distribution and histogram of the means from samples of 5 pennies (this is called a sampling distribution with n 5), 3) the distribution and histogram of the means from samples of 10 pennies (a sampling distribution with n 10), and 4) the distribution and histogram of the means of each sample of...

  • R commands 2) Illustrating the central limit theorem. X, X, X, a sequence of independent random variables with the same distribution as X. Define the sample mean X by X = A + A 2 be a random va...

    R commands 2) Illustrating the central limit theorem. X, X, X, a sequence of independent random variables with the same distribution as X. Define the sample mean X by X = A + A 2 be a random variable having the exponential distribution with A -2. Denote by -..- The central limit theorem applied to this particular case implices that the probability distribution of converges to the standard normal distribution for certain values of u and o (a) For what...

  • 3. Applying the central limit theorem Suppose you are a television network executive interested in how...

    3. Applying the central limit theorem Suppose you are a television network executive interested in how a new pilot show, Statistics, will be received by the general U.S. television-viewing population. You hire several market research firms; each recruits a random sample of television viewers and asks them to watch the pilot of Statistics. Each firm then gathers 25 respondents and asks each of them, "On a scale of 1 to 10, where 1 means you'll never watch Statistics again, and...

  • 2. Applying the central limit theorem (Chapter 9) Aa Aa pilot show, Stat1stics, will be received...

    2. Applying the central limit theorem (Chapter 9) Aa Aa pilot show, Stat1stics, will be received by Suppose you are a television network executive interested in how a new the general U.s. television-viewing population. You hire several market research firms; each recruits a random sample of television viewers and asks them to watch the pilot of Stat1stics. Each firm then gathers 25 respondents and asks each of them, "On a scale of 1 to 10, where 1 means you'll never...

  • Option 1 or 2. Option 1: Use the NOAA data set provided, to examine the variable...

    Option 1 or 2. Option 1: Use the NOAA data set provided, to examine the variable DX32. DX32 represents the number of days in that month whose maximum temperature was less than 32 degrees F. The mean of DX32 during this time period was 3.6. Using Excel, StatCrunch, etc, draw a histogram for DX32. Does this variable have an approximately normal (i.e. bell-shaped) distribution? A normal distribution should have most of its values clustered close to its mean. What kind...

  • 4) (10 pts) You are doubtful about the fairness of a six-side die. It's expected that...

    4) (10 pts) You are doubtful about the fairness of a six-side die. It's expected that 50% of the time you should get the numbers 1, 2, or 3 a) After 20 rolls, what is the standard deviation you'd expect of the number of times you get 1, 2, or 3? b) After 20 tosses you find that you got these numbers only 40% of the time. Do you make an accusation? many rolls would it take for you to...

  • (10 points) The 2010 General Social Survey asked 1225 US residents: "Do you think the use...

    (10 points) The 2010 General Social Survey asked 1225 US residents: "Do you think the use of marijuana should be made legal, or not? Of the respondents, 600 said it should be made legal. 1. The value 48.98% is a... A. population parameter B. sample statistic 2. Construct a 95% confidence interval for the proportion of US residents who think marijuana should be made legal, and interpret it in the context of the data. Round your results to four decimal...

  • As you are answering each question, please explain your answers in addition to picking what you...

    As you are answering each question, please explain your answers in addition to picking what you believe to be the correct letter choice. 1. You conduct a hypothesis test with a sample of size n = 40 and you observe values for the sample mean and sample standard deviation that do not lead to the rejection of the null hypothesis. In fact, you determine the p-value is 0.0667. What would you expect to happen to the p-value if the sample...

  • 10. Value 10.00 points The YTM on a bond is the interest rate you earn on...

    10. Value 10.00 points The YTM on a bond is the interest rate you earn on your investment if interest rates don't change. If you actually sell the bond before it matures, your realized return is known as the holding period yield (HPY) a. Suppose that today you buy a bond with an annual coupon of 8 percent for $1,030. The bond has 17 years to maturity. What rate of return do you expect to earn on your investment? Assume...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT