Question

Generate 20 samples of size n = 30 from your population. To do this: i. Generating...

Generate 20 samples of size n = 30 from your population. To do this: i.

Generating a sample of just size n = 30. Calculate the sample mean, X¯, for this sample. Record this value somewhere in your spreadsheet (you will need it later).

ii. Repeat the previous step 19 more times, so that you end up with a spreadsheet with 20 columns, each column has 30 randomly generated values from your population, and you have calculated a sample mean for each of your 20 samples of n = 30 observations.

(i) Create a histogram of the 20 sample means you have calculated, making sure your histogram has appropriate axis labels and a title. Include this histogram in your report, along with a commentary on what this distribution represents. Does the shape of this distribution agree with your prediction in part

(g)?. NOTE: You may need to adjust the number of bars/bins in your histogram to get a better representation of the shape of the data set.

(j) Calculate the mean and standard deviation of the 20 sample means you have calculated. Include these values in your report. How closely do these values match what you predicted in part (g)? (k) Provide a short (i.e. 2 - 3 sentence) summary of what exactly it is you just demonstrated in this question.

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

a)Generating a sample of just size n = 30. Calculate the sample mean

We do this procedure in R

sample20<-data.frame(replicate(20,rnorm(30,mean=50,sd=6)))

Here we are generating first a sample of size 30 with mean = 50 and standard deviation = 6.

Then using the replicate function we are replicating the same 20 times.

Here is a view of the data:X2 Xs X9 X20 1 48.28135 50.34642 51.34949 47.13729 53.37316 49.31292 46.73505 47.58869 46.53942 43.68107 48.31439 49.98625 51.54063 56.40151 42.72933 45.60666 33.47030 4136830 40.90214 50.29114 2 52.32828 42.64011 46.31919 48.49337 41.82052 43.40205 40.36140 41.63855 59.08607 45.37552 57.57645 42.65576 52.14133 47.66058 37.03086 46.32228 53.13525 36.96295 49.75360 47.58595 3 47.91125 54.58510 56.68196 49.21562 47.13274 49.33603 50.90653 43.92599 50.28464 50.73336 38.92341 62.07700 51.89887 52.17929 50.79771 48.67501 52.86863 47.39889 42.99388 46.84406 4 56.37731 61.00689 45.38492 41.57591 57.82468 41.56457 44.80245 43.64543 53.50048 49.71690 42.95702 49.31780 41.31037 42.0413451.49327 58.40473 52.13463 44.09197 56.91708 61.23425 5 50.01885 46.0528547.45288 43.98088 47.71 700 56.35215 43.43459 52.59277 51.38972 52.04628 42.49871 49.61365 58.14535 3665747 44.96833 47.95179 45.48589 44.12861 63.55410 б2.1 1121 6 35.20263 53.29021 55.03121 41.84963 51.45436 43.88694 41.12631 55.78122 57.02269 54.94716 49.41657 54.28720 43.34513 52.09419 45.65620 51.71957 50.91028 58.92188 53.98692 54.93651 7 55.97008 52.51696 60.09523 48.45245 47.72962 47.1293151.58745 59.27889 40.39149 53.60565 50.09712 43.01020 62.8032853.33055 63.68350 53.2459945.59360 38.87686 43.39136 56.66975 8 61.14662 55.79390 56.34233 47.81798 56.38260 42.11393 53.23945 62.78347 44.33451 59.49472 53.27454 5046776 56.71744 50 43.51599 43.45132 47.28482 55.46469 50.29121 49.11612 9 46.99243 51.22308 47.96052 47.15348 38.56963 45,53531|5403626 47.75279 44.20731 43.1 1058 50.4979153.22874 57.42639 Si4535Γ 48,53195 47.19282 5047155 5117561015356292 49.195 10 52.33604 4149480 4471204 55.11072 66.00963 48.07700 55.8035446.46222 52.53465 56.31087 45.16530 54.84954 43.15229 53.22383 43.41250 56.50298 60.72073 50.79055 53.25400 34.52655 11 4743589 53.40365 54.56766 61.88589 50.21766 46.92705 46.93234 55.56999 57.38477 48.74308 55.33664 47.74963 51.99231 47.71130 59.79032 57.65477 55.60759 58.47579 58.59006 44.04397 12 51.59256 48.74358 44.16566 46.00785 51.21629 58.51038 51.51234 48.58950 64.59057 55.79756 52.14228 46.57979 53.80006 46.90911 43.26478 45.05614 51.90300 54.99938 53.57213 48.77974 13 52.23096 45.14641 51.62842 42.47346 39.10099 52.50623 61.75363 41.98252 51.08782 54.78789 50.94677 47.37292 55.63555 4494088 41.38242 47.60093 50.76462 56.10378 44.87554 61.86688 14 48.74039 50.63397 56.64049 44.79426 49.16251 48.65751 55.30861 49.27958 46.67248 53.08494 49.76672 61.66360 45.11541 52.39266 48.12171 52.48620 46.05348 51.88249 48.19441 62.43649 15 44.45809 53.14962 52.59141 48.23196 42.70442 54.55579 50.62051 50.22347 52.01718 49.89702 52.76178 51.11611 43.52177 54.58212 37.27972 54.95119 42.82964 52.10162 51.75806 49.27045 16 56.63853 53.25961 59.22684 57.01051 48.75518 58.81840 5146699 50.98909 39.45926 56.27963 49.77353 52.23210 42.19748 42.75457 53.19278 55.79314 43.40515 45.09114 45.52704 52.70425 17 58.78042 43.36463 51.79353 50.92945 56.42734 46.06847 52.01244 47.47584 43.92620 40.98580 47.85102 54.26272 49.28411 49.98192 57.68623 52.57557 41.81751 54.40041 49.35448 53.524 18 44.40249 57 4627848.27747 48.98320 48.74746 39.67530 58.42865 43.67952 47.02068 47.80282 4447201 44.05748 56.13422 49.78843 52.32218 60.62124 50.80813 52.09415 53.47898 57.70637 19 43.44175 45.69971 44.31959 50.49940 43.97502 59.70194 55.44441 54.62073 52.72181 54.90730 49.63366 45.39299 46.51913 49.18569 47.36327 41.89483 57.67995 51.26869 51.94230 49.96459 20 51.73629 56.94483 47.93634 47.46695 45.56808 43.93024 58.70759 50.11019 52.08749 57.28764 57.42162 51.11129 35.85866 48.38155 40.41203 53.26639 52.50268 52.46770 55.05322 53.39976 21 54.26690 39.85357 60.68837 44.20243 47.79796 41.80837 47.55679 57.15964 57.16987 45.88179 53.11110 47.32630 54.78415 48.50513 52.60853 56.87587 50.02102 40.59779 56.09614 47.70470 22 54.43703 47.94957 52.82729 40.32081 42.02874 38.72863 52.01164 46.13560 52.77729 40.58088 42.88569 54.61844 47.30863 49.56471 48.01585 44.61139 55.68175 50.30695 53.60010 46.07356 Showing 1 to 23 of 30 entries

b)Repeat the previous step 19 more times, so that you end up with a spreadsheet with 20 columns, each column has 30 randomly generated values from your population, and you have calculated a sample mean for each of your 20 samples of n = 30 observations.

The sample means for each of 20 samples of n = 30 observations is calculated by the function

colMeans(sample20) # sample20 is the name of the data as we have 20 samples.

(c)

Create a histogram of the 20 sample means you have calculated, making sure your histogram has appropriate axis labels and a title. Include this histogram in your report, along with a commentary on what this distribution represents. Does the shape of this distribution agree with your prediction in part

hist(colMeans(sample20))

d)

Calculate the mean and standard deviation of the 20 sample means you have calculated. Include these values in your report. How closely do these values match what you predicted in part (g)?

> mean(colMeans(sample20))
[1] 49.90496
> sd(colMeans(sample20))
[1] 1.300241​

(k) Provide a short (i.e. 2 - 3 sentence) summary of what exactly it is you just demonstrated in this question.

We simply created a sample of size 30 randomly distributed with mean 50 and sd 6. Then we replicated this thing 20 times.

We got a dataset of size 20=30= 600 data points.

Then we calculated the means of each of the 20 columns and created a histogram of them. They were around 50 the actual mean.

Then we calculated the mean of means of these 20 columns which was very close to the actual mean. and standard deviation of the means which was close to the predicted value of

s/\sqrt{n}=6/\sqr{20}=1.34

Add a comment
Know the answer?
Add Answer to:
Generate 20 samples of size n = 30 from your population. To do this: i. Generating...
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
  • If selecting samples of size n≤30 from a population with a known mean and standard deviation,...

    If selecting samples of size n≤30 from a population with a known mean and standard deviation, what requirement, if any, must be satisfied in order to assume that the distribution of the sample means is a normal distribution? A) The population must have a normal distribution. B) The population must have a mean of 1. C) The population must have a standard deviation of 1. D) None; the distribution of sample means will be approximately normal.

  • , Samples In 30) drawn from a uniform distribution la Minitab was used to generate the...

    , Samples In 30) drawn from a uniform distribution la Minitab was used to generate the samples. es 300, b 500) Variables 15 Observations Variable TypeFormValues Missing Sample 1 Quantitative Sample 2 Quantitative Numeric Sample 3 Quantitative Numeric Sample 4 Quantitative Sample 5 ive Sample 6 Quantitative Sample 7 Quantitative Observations Sample 8 Quantitative Numeric Sample 9 Quantitative Sample 10 Quantitative Sample 11 Quantitative Sample 12 Quantitative Sample 13 Quantitative Sample 14 Quantitative Sample 15 Quantitative Numeric Numeric Variable Numeric...

  • A. Suppose you take a sample of size n from a population and calculate a statistic...

    A. Suppose you take a sample of size n from a population and calculate a statistic from that sample. The statistic could be a sample proportion p, a sample mean x, or another statistic. Then suppose we repeat this process over and over again until we find all possible samples of size n from the population (this is a theoretical idea) and we calculate the same statistic from 1. each sample. The collection of all of the statistics calculated is...

  • Histograms Samples of size 2 200 Samples of size 5 28 Sample Mean Waist Size 48...

    Histograms Samples of size 2 200 Samples of size 5 28 Sample Mean Waist Size 48 30 Sample Mean Waist Size 42 Samples of sizeSamples of size Q 20 200 200 32 Sample Mean Waist Size 32 Sample Mean Waist Size This Question: 1 pt 7 of 8 (0 complete) This Quiz: 8 pts pos A study measured the waist size of 989 men, finding a mean of 36.22 inches and a standard deviation of 4.03 inches. A histogram of...

  • List all possible samples of size n=3, with replacement, from the population (1,3,5). Calculate the mean...

    List all possible samples of size n=3, with replacement, from the population (1,3,5). Calculate the mean of each sample. Construct a probability distribution of the sample means and compute the mean, variance, and standard deviation of the sample means and compare to the mean, variance, and standard deviation of the population.

  • Sample variability 74 Using the phone numbers listed in your directory as your population, obtain randomly...

    Sample variability 74 Using the phone numbers listed in your directory as your population, obtain randomly 20 samples of size 3. From each phone number identified as a source, take the fourth, fifth, and sixth digits. (For example, for 245-8268, you would take the 8, the 2, and the 6 as your sample of size 3.) a. Calculate the mean of the 20 samples. b. Draw a histogram showing the 20 sample means. (Use classes-0.5 to 0.5, 0.5 to 1.5,...

  • Page 1 Question 1 Suppose we take repeated random samples of size 20 from a population...

    Page 1 Question 1 Suppose we take repeated random samples of size 20 from a population with a Select all that apply. mean of 60 and a standard deviation of 8. Which of the following statements is 10 points true about the sampling distribution of the sample mean (x)? Check all that apply. A. The distribution is normal regardless of the shape of the population distribution, because the sample size is large enough. B. The distribution will be normal as...

  • 1. Explain the relationship between sample size and standard error. 2. You have a normal population...

    1. Explain the relationship between sample size and standard error. 2. You have a normal population with a u = 50 and o = 9. You obtain all possible random samples, each with n = 30, from this population and calculate each sample's mean. What will the average value of all the sample means be? a) 50 b) 5.56 c) 30.49 d) Cannot tell without more information 3. You are sampling from a distribution of scores that is positively skewed....

  • Random samples of size n = 2 are drawn from a finite population that consists of...

    Random samples of size n = 2 are drawn from a finite population that consists of the numbers 2, 4, 6, and 8. (a) Calculate the mean and the standard deviation of this population. (b) List the six possible random samples of size n = 2 that can be drawn from this population and calculate their means. (c) Use the results of part (b) to construct the sampling distribution of the mean for random samples of size n = 2...

  • A certain population has a mean of 521 and a standard deviation of 33. Many samples...

    A certain population has a mean of 521 and a standard deviation of 33. Many samples of size 52 are randomly selected and the means calculated. (a) What value would you expect to find for the mean of all these sample means? (Give your answer correct to nearest whole number.) (b) What value would you expect to find for the standard deviation of all these sample means? (Give your answer correct to two decimal places.) (c) What shape would you...

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