Question

D STARBKS 14.8 Caffeine in Starbucks coffee. Scientists at the University of Florida College of Medicine investigated the lev

  1. Suppose the scientists are interested in determining whether the median amount of caffeine in Breakfast Blend coffee exceeds 300 milligrams. Set up the null and alternative hypotheses of interest.

  2. How many of the cups in the sample have a caffeine content that exceeds 300 milligrams?

  3. Suppose your answer in (b) is x. Find the p-value using pbinom in R. Note: the p-value here is P (X ≥ x), where X ∼ Bin(6, 0.5). What is your conclusion?

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

Hi,

Here we have to determine whether the median amount of caffeine in breakfast blend coffee exceeds 300 milligrams.

Setting up the null and alternative hypothesis,

Null hypothesis: The median amount of caffeine in breakfast blend coffee is equal to 300 milligrams.

Alternative hypothesis: The median amount of caffeine in breakfast blend coffee is greater than 300 milligrams.

Arrange all the observations in increasing order

259 300 303 307 498 564

Median = (3rd observation + 4th observation)/2

Median of sample = (303 + 307)/2

Median = 305

4 cups in the sample have a caffeine content that exceeds 300milligrams.

Use lower.tail = FALSE if we want the probability of values x or larger. P[X >= x]

> pbinom(4, size = 6, prob = 0.5, lower.tail = FALSE)
[1] 0.109375

P-value = 0.109375

Here, p-value is greater than level of significance 0.05 hence we accept nul hypothesis.

Hence we conclude that the median amount of caffeine in breakfast blend coffee is equal to 300 milligrams.

Add a comment
Know the answer?
Add Answer to:
Suppose the scientists are interested in determining whether the median amount of caffeine in Breakfast Blend...
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
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