Respuesta :
Answer:
a) Null hypothesis: [tex]\mu_y- \mu_x = 0[/tex]
Alternative hypothesis: [tex]\mu_y -\mu_x \neq 0[/tex]
b) [tex]t=\frac{\bar d -0}{\frac{s_d}{\sqrt{n}}}=\frac{850 -0}{\frac{1123}{\sqrt{42}}}=4.905[/tex]
The next step is calculate the degrees of freedom given by:
[tex]df=n-1=42-1=41[/tex]
Now we can calculate the p value, since we have a two tailed test the p value is given by:
[tex]p_v =2*P(t_{(41)}>4.905) =7.6x10^{-6}[/tex]
So the p value is lower than any significance level given, so then we can conclude that we can to reject the null hypothesis that the difference between the two mean is equal to 0.
c) The confidence interval is given by:
[tex] \bar d \pm t_{\alpha/2}\frac{s}{\sqrt{n}}[/tex]
For this case we have a confidence of 1-0.05 = 0.95 so we need 0.05 of the area of the t distribution with 41 df on the tails. So we need 0.025 of the area on each tail, and the critical value would be:
[tex] t_{crit}= 2.02[/tex]
And if we find the interval we got:
[tex] 850- 2.02* \frac{1123}{\sqrt{42}}=499.96[/tex]
[tex] 850+ 2.02* \frac{1123}{\sqrt{42}}=1200.03[/tex]
We are confident 95% that the difference between the two means is between 499.96 and 1200.03
So we have enough evidence to conclude that one mean is higher than the other one, without conduct another hypothesis test because the confidence interval for the difference of means not contain the value of 0. And for this case the groceries would have a higher mean
Step-by-step explanation:
Previous concepts
A paired t-test is used to compare two population means where you have two samples in which observations in one sample can be paired with observations in the other sample. For example if we have Before-and-after observations (This problem) we can use it.
Part a
Let put some notation
x=test value for 1 , y = test value for 2
The system of hypothesis for this case are:
Null hypothesis: [tex]\mu_y- \mu_x = 0[/tex]
Alternative hypothesis: [tex]\mu_y -\mu_x \neq 0[/tex]
The first step is calculate the difference [tex]d_i=y_i-x_i[/tex] and we obtain this:
The second step is calculate the mean difference
[tex]\bar d= \frac{\sum_{i=1}^n d_i}{n}[/tex]
This value is given [tex] \bar d = 850[/tex]
The third step would be calculate the standard deviation for the differences.
This value is given also [tex] s_d = 1123[/tex]
Part b
The 4 step is calculate the statistic given by :
[tex]t=\frac{\bar d -0}{\frac{s_d}{\sqrt{n}}}=\frac{850 -0}{\frac{1123}{\sqrt{42}}}=4.905[/tex]
The next step is calculate the degrees of freedom given by:
[tex]df=n-1=42-1=41[/tex]
Now we can calculate the p value, since we have a two tailed test the p value is given by:
[tex]p_v =2*P(t_{(41)}>4.905) =7.6x10^{-6}[/tex]
So the p value is lower than any significance level given, so then we can conclude that we can to reject the null hypothesis that the difference between the two mean is equal to 0.
Part c
The confidence interval is given by:
[tex] \bar d \pm t_{\alpha/2}\frac{s}{\sqrt{n}}[/tex]
For this case we have a confidence of 1-0.05 = 0.95 so we need 0.05 of the area of the t distribution with 41 df on the tails. So we need 0.025 of the area on each tail, and the critical value would be:
[tex] t_{crit}= 2.02[/tex]
And if we find the interval we got:
[tex] 850- 2.02* \frac{1123}{\sqrt{42}}=499.96[/tex]
[tex] 850+ 2.02* \frac{1123}{\sqrt{42}}=1200.03[/tex]
We are confident 95% that the difference between the two means is between 499.96 and 1200.03
So we have enough evidence to conclude that one mean is higher than the other one, without conduct another hypothesis test because the confidence interval for the difference of means not contain the value of 0. And for this case the groceries would have a higher mean
Answer:
H_o : u_d = 0 , H_1 : u_d ≠ 0
H_o rejected , p < 0.01
[ 499.969 < d < 1200.301 ] , d = 850
Step-by-step explanation:
Given:
- Difference in mean d = 850
- Standard deviation s = 1123
- The sample size n = 42
- Significance level a = 0.05
Solution:
- Set up and Hypothesis for the difference in means test as follows:
H_o : Difference in mean u_d= 0
H_1 : Difference in mean u_d ≠ 0
- The t test statistics for hypothesis of matched samples is calculated by the following formula:
t = d / s*sqrt(n)
Hence,
t = 850 / 1123*sqrt(42)
t = 4.9053
Thus, the test statistics t = 4.9053.
- The p-value is the probability of obtaining the value of the test statistics or a value greater.
Using Table 2, of appendix B determine p with DOF = n - 1 = 42 - 1 = 41 , We get:
p < 2*0.05 ----> 0.01
Thus, p < 0.05 ....... Hence, H_o is rejected
- Set up and Hypothesis for the difference in means test as follows:
H_o : Difference in mean u_d =< 0
H_1 : Difference in mean u_d > 0
- The t test statistics for hypothesis of matched samples is calculated by te following formula:
t = d / s*sqrt(n)
Hence,
t = 850 / 1123*sqrt(42)
t = 4.9053
Thus, the test statistics t = 4.9053.
Using Table 2, of appendix B determine p with DOF = n - 1 = 42 - 1 = 41 , We get:
p < 0.005
Thus, p < 0.05 ....... Hence, H_o is rejected
Hence, the point estimate is d = $850
- The interval estimate of the difference between two population means is calculated by the following formula:
d +/- t_a/2*s / sqrt(n)
Where CI = 1 - a = 0.95 , a = 0.05 , a/2 = 0.025
Using Table 2, of appendix B determine p with DOF = n - 1 = 42 - 1 = 41 , We get:
t_a/2 = t_0.025 = 2.020
Therefore,
d - t_a/2*s / sqrt(n)
850 - 2.020*1123 / sqrt(20)
= 499.969
And,
d + t_a/2*s / sqrt(n)
850 + 2.020*1123 / sqrt(20)
= 1200.031
- The 95% CI of the difference between two population means is:
[ 499.969 < d < 1200.301 ]