Question

In: Statistics and Probability

Julie buys a take-out coffee from one of two coffee shops on a random basis: Ultimo...

Julie buys a take-out coffee from one of two coffee shops on a random basis: Ultimo Coffee and Joe’s Place. This month, she measured the temperature of each cup immediately after purchase, using a cooking thermometer. Sample data is shown below, temperatures are in Fahrenheit.

ultimo =  c(171,161,169,179, 171,166,169,178,171, 165,172,172)

joes = c(168,165,172, 151,162,158,157,160, 158,160,158,164)

  1. State the null and alternative hypothesis in your own words.
  2. What type of statistical test would you use for this problem? Explain your choice.
  3. Using R, find the test statistic, critical value. Assuming equal variances, is there sufficient evidence that the mean temperature at Ultimo Coffee and Joe’s place are different at significance level α = 0.05?
  4. What is the p value and how do you interpret its’ value in this problem?
  5. What if the equal variances of both populations cannot be assumed? What type of test would you use?  Run this test in R. What is the statistical decision?
  6. Check the normality assumption. Does it hold for Ultimo coffee? Does it hold for Joes coffee? Clearly explain your response using the appropriate visual method.

For a project, Mia is investigating whether women eat less frequently in fast-food chains than men. She asked 11 men and 11 women to keep track of how many times they ate in a fast-food restaurant in the last two months.

women = c(10,5,15,13,5, 7,18,8,19, 9, 8)

men     = c(16, 9,17,14,15,11, 18,12,  37,16,30)

  1. Assuming equal variances, is there sufficient evidence to support that average times to eat in fast-food chain is different between genders at the 5% level of significance?
  2. What is the 95% Confidence interval for the true difference in mean frequency of eating in fast-food chains between the two genders?
  3. Assuming equal variances, is there sufficient evidence to support that average times to eat in fast-food chain is different between genders at the 1% level of significance?

Expedia is investigating if the month of travel impacts the online flight ticket purchases (i.e., number of tickets purchased online via Expedia webpage during that month). The statistical analysis team collects information on number of flights booked during each month over the past 10 years and run a statistical test to test whether the average number of flight tickets purchased are same across all months or if some months are different than others.

  1. What type of statistical test would you recommend? Why? Explain your response.
  2. What is/are the factor(s)? What are the levels? What is the response? How many replicates are there?

Please answer all of them, that is the only way I can really learn and study this material. Thank you! :)

Solutions

Expert Solution

Solution-A:

Null hypopthesis:
Ho:Mu1=Mu2

the mean temperature at Ultimo Coffee and Joe’s place are same

Alternative hypothesis

Ha:Mu1 not =Mu2

the mean temperature at Ultimo Coffee and Joe’s place are different

Solution-b:

perform 2 sample indpendent t test

as samples are random and sample sizes are less than 30

and popualtion standard devaitions are not known

Solution-c:

Use t.test function in R to perform t t test and set var.equal =TRUE assuming equal variance

Rcode:

ultimo = c(171,161,169,179, 171,166,169,178,171, 165,172,172)

joes = c(168,165,172, 151,162,158,157,160, 158,160,158,164)
t.test(ultimo,joes,var.equal =TRUE)

Output:

data: ultimo and joes
t = 4.2695, df = 22, p-value = 0.0003124
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
4.756911 13.743089
sample estimates:
mean of x mean of y
170.3333 161.0833

intrepretation:

t=4.2695

p=0.0003124

p<0.05

Reject Ho

Accept Ha

There is sufficient evidence at 5% level of significance to conclude that the mean temperature at Ultimo Coffee and Joe’s place are different.

What is the p value and how do you interpret its’ value in this problem?

p value=0.0003124

p value is the probability The P-value (or probability value) is the probability of getting a sample statistic (such as
the mean) or a more extreme sample statistic in the direction of the alternative hypothesis
when the null hypothesis is true.

here alpha=0.05

p<0.05

Reject Ho

Accept Ha

There is sufficient evidence at 5% level of significance to conclude that the mean temperature at Ultimo Coffee and Joe’s place are different.


Related Solutions

Using R-Studio please answer the following questions and show your code. 1. Julie buys a take-out...
Using R-Studio please answer the following questions and show your code. 1. Julie buys a take-out coffee from one of two coffee shops on a random basis: Ultimo Coffee and Joe’s Place. This month, she measured the temperature of each cup immediately after purchase, using a cooking thermometer. Sample data is shown below, temperatures are in Fahrenheit. ultimo =  c(171,161,169,179, 171,166,169,178,171, 165,172,172) joes = c(168,165,172, 151,162,158,157,160, 158,160,158,164) State the null and alternative hypothesis in your own words. What type of statistical...
I want to know what percent of these coffee shops sell espresso. Out of the 150...
I want to know what percent of these coffee shops sell espresso. Out of the 150 I sampled, only 40 offered espresso. Without the finite population correction factor, what is the margin of error for a 90% confidence interval around this proportion? Round to the third decimal point.
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from around the world and roasts, blends, and packages them for resale. Currently, the firm offers 15 coffees to gourmet shops in 1-pound bags. The major cost is direct materials; however, a substantial amount of factory overhead is incurred in the predominantly automated roasting and packing process. The company uses relatively little direct labor. Some of the coffees are very popular and sell in large...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from around the world and roasts, blends, and packages them for resale. Currently, the firm offers 15 coffees to gourmet shops in 1-pound bags. The major cost is direct materials; however, a substantial amount of factory overhead is incurred in the predominantly automated roasting and packing process. The company uses relatively little direct labor. Some of the coffees are very popular and sell in large...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from around the world and roasts, blends, and packages them for resale. Currently, the firm offers 15 coffees to gourmet shops in 1-pound bags. The major cost is direct materials; however, a substantial amount of factory overhead is incurred in the predominantly automated roasting and packing process. The company uses relatively little direct labor. Some of the coffees are very popular and sell in large...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from...
Coffee Bean Inc. (CBI) processes and distributes a variety of coffee. CBI buys coffee beans from around the world and roasts, blends, and packages them for resale. Currently, the firm offers 15 coffees to gourmet shops in 1-pound bags. The major cost is direct materials; however, a substantial amount of factory overhead is incurred in the predominantly automated roasting and packing process. The company uses relatively little direct labor. Some of the coffees are very popular and sell in large...
Consider a small town with two coffee shops, Star and Buck. If Star’s price is ??...
Consider a small town with two coffee shops, Star and Buck. If Star’s price is ?? per cup of coffee and Buck’s price is ?? per cup of coffee, then their respective monthly sales, ?? hundred cups of coffee and ?? hundred cups of coffee, are given by the following equations: ?? = 5 − ?? + ?? ?? = 15 − ?? + ?? It costs $8 for both Star and Buck to produce a cup of coffee and...
Consider checking the effectiveness of a weight loss program. One approach is to take two random...
Consider checking the effectiveness of a weight loss program. One approach is to take two random samples, one from those who did not participate in the program, and another from those who participated, and compare the difference. Another is to take a random sample from people who plan to participate, and compare their weights before and after participation. Which of these would be more helpful? Why?
A ski company in Vail owns two ski shops, one on the west side and one...
A ski company in Vail owns two ski shops, one on the west side and one on the east side of Vail. Ski hat sales data (in dollars) for a random sample of 5 Saturdays during the 2004 season showed the following results. Is there a significant difference in sales dollars of hats between the west side and east side stores at the 10 percent level of significance? Saturday Sales Data ($) for Ski Hats Saturday East Side Shop West...
A ski company in Vail owns two ski shops, one on the west side and one...
A ski company in Vail owns two ski shops, one on the west side and one on the east side of Vail. Ski hat sales data (in dollars) for a random sample of 5 Saturdays during the 2004 season showed the following results. Is there a significant difference in sales dollars of hats between the west side and east side stores at the 10 percent level of significance? Saturday Sales Data ($) for Ski Hats Saturday East Side Shop West...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT