Question

In: Math

Suppose a market analyst wants to determine whether the average price of a gallon of whole...

Suppose a market analyst wants to determine whether the average price of a gallon of whole milk in Seattle is greater than Atlanta. To do so, he takes a telephone survey of 21 randomly selected consumers in Seattle who have purchased a gallon of milk and asks how much they paid for it. The analyst undertakes a similar survey in Atlanta with 18 respondents. Assume the population variance for Seattle is 0.03, the population variance for Atlanta is 0.015, and that the price of milk is normally distributed. Given average price for Seattle is $2.52, and average price for Atlanta is $2.38.

(1). Use the correct R command to compute a 99% confidence level confidence interval of the difference in the mean price of a gallon of milk between Seattle and Atlanta. (note: in the R function, you need the value of standard deviation for both samples. You need to calculate the standard deviation based on the variance, then plug the standard deviation values in the R function) What are the lower bound and upper bound of the interval?

(2). Using a 1% level of significance (alpha = 0.01), manually test whether the average price of a gallon of whole milk in Seattle is greater than Atlanta. What is the statistical decision and business decision?

(3). Using a 1% level of significance. Import data set MilkPrice_S.csv and MilkPrice_A.csv files to R studio. Write the correct R commands for testing whether the average price of a gallon of whole milk in Seattle is greater than Atlanta. What is the p value? What is the statistical decision and business decision?

Seattle
2.55
2.36
2.43
2.67
2.54
2.43
2.5
2.54
2.38
2.61
2.8
2.49
2.43
2.61
2.57
2.36
2.56
2.71
2.5
2.64

2.27

Atlanta
2.25
2.4
2.39
2.3
2.33
2.4
2.49
2.29
2.23
2.41
2.48
2.29
2.39
2.59
2.53
2.26
2.38
2.45

Solutions

Expert Solution

1) Two variance test: to test variances are statistically equal or not

P-value: 0.3182, is significantly greater than 0.05. We can conlude that the variances of both variables are equal.

Confidence interval:

99% confidence interval of mean difference between two variables is: 0.04007144 - 0.2405648

2)

Seattle Atlanta
Mean 2.521429 2.381111
Variance 0.016633 0.010258
Observations 21 18

Two sample t test for equal variances:

,

Significant value: 0.05

The test statistic:

Pooled variance:

df= n1+n2-2= 37

P-value: for one tail= 0.000318

The test statistic is significant and there is enough evidence to support the claim that the seattle is higher than Atlanta.

3)P-value is lessthan 0.05 significant value. So, we can conlude that the test statistic is significant and conlude that the seattle mean is statistically higher than Atlanta.


Related Solutions

A study is conducted to determine the average price of a gallon of gas in Arizona....
A study is conducted to determine the average price of a gallon of gas in Arizona. A sample of 10 stations had a mean of $1.85 and a standard deviation of 0.06. Find a 95% confidence interval for the average price of a gallon of gas in Arizona. (Assume appropriate conditions are satisfied and be sure to round precisely.) Group of answer choices (1.81, 1.89) (175, 1.95) (1.82, 1.88) (1.79, 1.91)
A sales analyst wants to determine whether there is difference in the mean monthly sales (in...
A sales analyst wants to determine whether there is difference in the mean monthly sales (in RM) of cosmetic company of six sales region in Johor. Several salespersons from each region are chosen and their monthly sales were recorded in Table Q2. Monthly sale (RM) Company A Company B Company C Company D Company E Company F 4250 3930 3960 4350 4150 3970 3980 4010 4020 4450 3890 4160 4020 4050 4130 3880 4568 4370 4130 4220 4350 4574 4480...
An analyst wants to determine whether the cost of a flight depends on the distance. She...
An analyst wants to determine whether the cost of a flight depends on the distance. She collects a set of data of the round-trip fare for flights between Boston and some other cities on major airlines and the distance between cities. The following table gives the descriptive statistics of the distance (in miles) and the cost (in dollars). Mean Standard Deviation Miles (x) 1650.4 1074.4 Costs (y) 291 111.71 r = 0.9352 Compute the coefficient of determination and interpret your...
A bottled water distributor wants to determine whether the mean amount of water contained in​ 1-gallon...
A bottled water distributor wants to determine whether the mean amount of water contained in​ 1-gallon bottles purchased from a nationally known water bottling company is actually 1 gallon. You know from the water bottling company specifications that the standard deviation of the amount of water is 0.02 gallon. You select a random sample of 45 ​bottles, and the mean amount of water per​ 1-gallon bottle is 0.994 gallon. a. Is there evidence that the mean amount is different from...
A bottled water distributor wants to determine whether the mean amount of water contained in​ 1-gallon...
A bottled water distributor wants to determine whether the mean amount of water contained in​ 1-gallon bottles purchased from a nationally known water bottling company is actually 1 gallon. You know from the water bottling company specifications that the standard deviation of the amount of water is 0.03 gallon. You select a random sample of 50 ​bottles, and the mean amount of water per​ 1-gallon bottle is 0.993 gallon. Complete parts​ (a) through​ (d) below. a. Is there evidence that...
A bottled water distributor wants to determine whether the mean amount of water contained in​ 1-gallon...
A bottled water distributor wants to determine whether the mean amount of water contained in​ 1-gallon bottles purchased from a nationally known water bottling company is actually 1 gallon. You know from the water bottling company specifications that the standard deviation of the amount of water is 0.03 gallon. You select a random sample of 50 ​bottles, and the mean amount of water per​ 1-gallon bottle is 0.993 gallon. Complete parts​ (a) through​ (d) below. a. Is there evidence that...
A bottled water distributor wants to determine whether the mean amount of water contained in 1-gallon...
A bottled water distributor wants to determine whether the mean amount of water contained in 1-gallon bottles purchased from a nationally known water bottling company is actually 1 gallon. You know from the water bottling company specifications that the standard deviation of the amount of water per bottle is 0.03 gallon. You select a random sample of 100 bottles, the mean amount of water per 1-gallon bottle is 0.994 gallon. a. Is there evidence that the mean amount is different...
A bottled water distributor wants to determine whether the mean amount of water contained in 1-gallon...
A bottled water distributor wants to determine whether the mean amount of water contained in 1-gallon bottles purchased from a nationally known water bottling company is actually 1 gallon. You know from the water bottling company specifications that the standard deviation of the amount of water per bottle is 0.02 gallon. You select a random sample of 50 bottles, and the mean amount of water per 1-gallon bottle is 0.995 gallon. (a) Is there evidence that the mean amount is...
A researcher wants to determine whether there is a difference in the average age of elementary...
A researcher wants to determine whether there is a difference in the average age of elementary school, high school, and community college teachers. Teachers are randomly selected. Their ages are recorded below. Can you reject the claim that there is no difference in the average age of each group? Use 5% level of significance. Elementary Teachers High School Teachers CC Teachers 24 37 45 28 42 36 25 39 39 52 48 61 36 43 35 22 32 45 a)...
(9pt) A stock market analyst wants to determine if the recent introduction of the IPhone 8x...
(9pt) A stock market analyst wants to determine if the recent introduction of the IPhone 8x has changed the distribution of shares in the cellphone market. The analyst collects data from a random sample of 300 cellphone customers. The table below shows the observed customers’ share of cellphones (fi ). When using this random sample, the analyst needs to be 95% confident of test results. The hypothesis to be tested follows: H0 : Plg =0.20; Pa =0.32; Ps =0.48 ;...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT