The Department of Transportation of the State of New York claimed that it takes an average of 200 minutes to travel by train from New York to Buffalo. To test if the average travel time differs from 200 minutes, a random sample of 40 trains was taken and the average time required to travel from New York to Buffalo was 188 minutes, with a standard deviation of 28 minutes. What is the p-value for this test?

Respuesta :

Answer:

[tex]t=\frac{188-200}{\frac{28}{\sqrt{40}}}=-2.7105[/tex]    

[tex]p_v =2*P(t_{39}<-2.7105)=0.004967[/tex]    

Step-by-step explanation:

Data given and notation    

[tex]\bar X=188[/tex] represent the sample mean    

[tex]s=28[/tex] represent the sample standard deviation    

[tex]n=40[/tex] sample size    

[tex]\mu_o =2-0[/tex] represent the value that we want to test    

[tex]\alpha[/tex] represent the significance level for the hypothesis test.    

t would represent the statistic (variable of interest)    

[tex]p_v[/tex] represent the p value for the test (variable of interest)    

State the null and alternative hypotheses.    

We need to apply a two tailed tailed test.    

What are H0 and Ha for this study?    

Null hypothesis:  [tex]\mu = 200[/tex]    

Alternative hypothesis :[tex]\mu \neq 200[/tex]    

Compute the test statistic  

The statistic for this case is given by:    

[tex]t=\frac{\bar X-\mu_o}{\frac{s}{\sqrt{n}}}[/tex] (1)    

t-test: "Is used to compare group means. Is one of the most common tests and is used to determine if the mean is (higher, less or not equal) to an specified value".    

Calculate the statistic    

We can replace in formula (1) the info given like this:    

[tex]t=\frac{188-200}{\frac{28}{\sqrt{40}}}=-2.7105[/tex]    

Give the appropriate conclusion for the test  

First we need to find the degrees of freedom given by:

[tex]df=n-1=40-1=39[/tex]

Since is a two tailed test the p value would be:    

[tex]p_v =2*P(t_{39}<-2.7105)=0.004967[/tex]    

Conclusion    

If we compare the p value and a significance level assumed for example [tex]\alpha=0.05[/tex] we see that [tex]p_v<\alpha[/tex] so we can conclude that we have enough evidence to reject the null hypothesis, so we can concldue that the true mean is significantly different from 200 minutes at 5% of significance.