Answer:
The p-value is 0.1228.
Explanation:
Before testing the hypothesis, we need to find the sample mean and the standard deviation.
Sample of 13:
The sample mean is the sum of all values divided by 13. Using a calculator, it is: X = 28.15.
The sample standard deviation is the square root of the division of the sum of the differences squared between each value and the mean, by the number of values. Using a calculator, we get s = 4.0162.
A researcher wants to test whether the average gas mileage of this type of car is different from 30 mpg.
At the null hypothesis, we test if the average gas mileage is of 30 mpg, that is:
![H_0: \mu = 30](https://img.qammunity.org/2022/formulas/mathematics/college/k8rvhhiwuy7hdxmbh7k63e2jm0qp242i9j.png)
At the alternate hypothesis, we test if the average is different from 30, that is:
![H_1: \mu \\eq 30](https://img.qammunity.org/2022/formulas/mathematics/college/eon2lx0ncw5dbo9kkh9ogsbak2ltwg7on6.png)
The test statistic is:
![t = (X - \mu)/((s)/(√(n)))](https://img.qammunity.org/2022/formulas/mathematics/college/rek1g7wny8ng2ts5xbh50hztgds93wm35a.png)
In which X is the sample mean,
is the value tested at the null hypothesis, s is the standard deviation and n is the size of the sample.
30 is tested at the null hypothesis:
This means that
![\mu = 30](https://img.qammunity.org/2022/formulas/mathematics/college/ic5fhcryvk1akubs632c1jwg9o2miano7i.png)
From the sample:
.
Value of the test-statistic:
![t = (X - \mu)/((s)/(√(n)))](https://img.qammunity.org/2022/formulas/mathematics/college/rek1g7wny8ng2ts5xbh50hztgds93wm35a.png)
![t = (28.15 - 30)/((4.0162)/(√(13)))](https://img.qammunity.org/2022/formulas/mathematics/college/ajc5qepuxizt45n5hq7fjtm21t4j1sdtu1.png)
![t = -1.66](https://img.qammunity.org/2022/formulas/mathematics/college/tt9lc8dydsrrvhufx7zbht6n76b94qrrqc.png)
P-value of the test:
The p-value of the test is the probability that the sample mean differs from 30 by at least |28.15 - 30| = 1.75, which is a two-tailed test with t = -1.66 and 13 - 1 = 12 df.
Using a t-distribution calculator, this p-value is 0.1228.