Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 2. Generate the sampling distribution of the sample mean under the null hypothesis: The sample mean weight of the sundaes is Generate 1000 samples

image text in transcribed

image text in transcribedimage text in transcribed
Step 2. Generate the sampling distribution of the sample mean under the null hypothesis: The sample mean weight of the sundaes is Generate 1000 samples of size 30 from the data set sundae and find the mean of each. in RStudio, enter the data and call the data set "sundae," then type > sundaemeans=colMeans(replicate(1000, sample(sundae,30,replace=TRUE))) Find the mean of sundaemeans and the difference between it and the null hypothesis value: difference = 6.3 - mean(sundaemeans) = Generate the sampling distribution of sample means assuming the null hypothesis is true by adding the difference above to each mean in sundaemeans. In RStudio, type > nulldist] = sundaemeans + difference, where difference is from the previous step. Make a histogram of nulldistl. Sketch it below; this is the sampling distribution of the sample mean under the null hypothesis. On the x-axis, mark the population mean 6.3 and the sample mean (the mean of the original sample). Step 3. Calculate the p-value of the test by calculating the probability of observing a sample mean as low as the sample mean of the original dataset, or lower. On the picture above, shade the area corresponding to the p-value. In RStudio, type > length(sundaemeans [ sundaemeans

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Discrete Mathematics, Revised

Authors: Seymour Lipschutz, Marc Lipson

3rd Edition

0071615873, 9780071615877

More Books

Students also viewed these Mathematics questions

Question

1. What is the meaning of the information we are collecting?

Answered: 1 week ago

Question

3. How much information do we need to collect?

Answered: 1 week ago

Question

2. What types of information are we collecting?

Answered: 1 week ago