Stat 362: Chapter 5 WorksheetName:
UIN:
Show all of your work / code. No credit will be given if there is no work / code.
1. A random sample of 64 bags of white cheddar popcorn is obtained, and their weights, in
ounces, is recorded. We want to test the hypothesis that the average weight of the bags are
less than 5.3 ounces, at the 0.05 level of significance. Use a 1-sample t-test.
Note: You can obtain the dataset in the file: “Popcorn.csv”. There is a header.
• Hypotheses:
• Code:
• Test-Statistic Value:
• P-Value:
• Decision (Reject or Not):
• Conclusion:
2. Some researchers claim that susceptibility to hypnosis can be acquired or improved through
training. To investigate this claim six subjects were rated on a scale of 1 to 20 according to
their initial susceptibility to hypnosis and then given 4 weeks of training. Each subject was
rated again after the training period. In the ratings below, higher numbers represent greater
susceptibility to hypnosis. We are interested in whether the subjects are more susceptible
after training. Use a 0.10 significance level.
Before
10
16
7
4
7
2
Subject
1
2
3
4
5
6
After
18
19
11
3
5
3
Using the Sign Test, test the hypothesis that the median values before are smaller than the
differences after. Define Zi = bef ore − af ter.
Note: You can obtain this dataset in the file “Hypnosis.csv”. There is a header.
Note: You will need to install the package: “BSDA”.
• Hypotheses:
• Code:
• Median of the differences:
• P-Value:
• Decision (Reject or Not):
• Conclusion:
2