Question

Previous research suggests that the average adult drinks 4 cups of coffee per day. To test...

Previous research suggests that the average adult drinks 4 cups of coffee per day. To test this, 10 adults were randomly sampled from a normal distribution. Data is below.

5.0 7.0 2.0 8.0 4.0 3.0 6.5 5.0 4.5 8.0

Using a t-test, test whether the average number of cups of coffee is equal to 4 at the 5% significance level.

i need ans in R programming

Homework Answers

Answer #1

#create the vector
x <- c(5.0, 7.0, 2.0, 8.0, 4.0, 3.0, 6.5, 5.0, 4.5, 8.0)
#call the function for test, with the x value and since it is single sample text, the other vectir y will be NULL
#the given average mu is 4
t.test(x, y = NULL, mu = 4)


"""One Sample t-test

data: x
t = 2.0113, df = 9, p-value = 0.07517
alternative hypothesis: true mean is not equal to 4
95 percent confidence interval:
3.837838 6.762162
sample estimates:
mean of x
5.3 """
#According to the output, it will not satisfy the hypothesis at 5% signifincance level
#so it returned the alternate hypothesis as true

If you have any doubts please comment and please don't dislike.

Know the answer?
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
Similar Questions
Suppose the coffee industry claimed that the average adult drinks 1.7 cups of coffee per day....
Suppose the coffee industry claimed that the average adult drinks 1.7 cups of coffee per day. To test this​ claim, a random sample of 40 adults was​ selected, and their average coffee consumption was found to be 1.9 cups per day. Assume the standard deviation of daily coffee consumption per day is 0.6 cups. Using alpha equals 0.01​, determine the p-value for this test.
5. Suppose the coffee industry claimed that the average adult drinks 1.7 cups of coffee per...
5. Suppose the coffee industry claimed that the average adult drinks 1.7 cups of coffee per day. To  test this claim, a random sample of 10 Coffee drinkers were selected and their average coffee consumption was found to be 2.0 cups per day.   Assume the standard deviation of daily coffee consumption per day is 0.5 cups. Using α = 0.20 test the Hypothesis Is the Coffee consumption differs from the average coffee consumption? a.  State the Null Hypothesis and alternate Hypothesis. b.  use...
Suppose the coffee industry claimed that the average adult drinks 1.7 cups of coffee per day....
Suppose the coffee industry claimed that the average adult drinks 1.7 cups of coffee per day. To test this​ claim, a random sample of 50 adults was​ selected, and their average coffee consumption was found to be 1.9 cups per day. Assume the standard deviation of daily coffee consumption per day is 0.5 cups. Using alpha=0.01​, complete parts a and b below. a. Is the coffee​ industry's claim supported by this​ sample? Determine the null and alternative hypotheses. The​ z-test...
A researcher is testing the claim that the average adult consumes 1.7 cups of coffee per...
A researcher is testing the claim that the average adult consumes 1.7 cups of coffee per day. Assume the population standard deviation is 0.5 cups per day. A sample of 25 adults averaged 1.85 cups of coffee per day. Test the researcher’s claim at the 5% significance level.
A recent study revealed the typically American coffee drinker consumers an average of 3.1 cups per...
A recent study revealed the typically American coffee drinker consumers an average of 3.1 cups per day. A sample of 12 senior citizens revealed they consumed the following amounts of coffee, reported in cups, yesterday. 3.5, 3.3, 3.5, 2.6, 2.7, 4.3, 4.0, 3.8, 3.1, 4.1, 3.1, 3.0 At the 0.05 significance level, do these sample data suggest there is a difference between the national average and the sample mean from senior citizens? - State the hypothesis testing. -What is the...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT