## 5.11 Play the piano. Georgianna claims that in a small city renowned for its music school, the average child takes at least 5 years of piano

5.11 Play the piano. Georgianna claims that in a small city renowned for its music school, the average child takes at least 5 years of piano lessons. We have a random sample of 20 children from the city, with a mean of 4.6 years of piano lessons and a standard deviation of 2.2 years. (a) Evaluate Georgianna’s claim using a hypothesis test. (b) Construct a 95% confidence interval for the number of years students in this city take piano lessons, and interpret it in context of the data. (c) Do your results from the hypothesis test and the confidence interval agree? Explain your reasoning.

## Answers ( )

Answer:a)

The first step is calculate the degrees of freedom, on this case:

If we compare the p value and the significance level given we see that so we can conclude that we have enough evidence to fail reject the null hypothesis, so we can’t conclude that the true mean is lower than 5 years at 5% of signficance.

b)

So on this case the 95% confidence interval would be given by (3.572;5.628)

c) Yes from the hypothesis test we fail to reject the null hypothesis that the true mean is equal or higher to 5 and from the confidence interval the limits contains the value 5, so then the two procedures are showing the same result FAIL to reject the null hypothesis.

Step-by-step explanation:Data given and notationrepresent the sample mean

represent the sample standard deviation

sample size

represent the value that we want to test

represent the significance level for the hypothesis test.

t would represent the statistic (variable of interest)

represent the p value for the test (variable of interest)

Part aState the null and alternative hypotheses.We need to conduct a hypothesis in order to check if the mean is at least 5 years, the system of hypothesis would be:

Null hypothesis:

Alternative hypothesis:

If we analyze the size for the sample is < 30 and we don’t know the population deviation so is better apply a t test to compare the actual mean to the reference value, and the statistic is given by:

(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:

P-value

The first step is calculate the degrees of freedom, on this case:

Since is a one sided test the p value would be:

ConclusionIf we compare the p value and the significance level given we see that so we can conclude that we have enough evidence to fail reject the null hypothesis, so we can’t conclude that the true mean is lower than 5 years at 5% of signficance.

Part bThe confidence interval for the mean is given by the following formula:

(1)

In order to calculate the critical value we need to find first the degrees of freedom, given by:

Since the Confidence is 0.95 or 95%, the value of and , and we can use excel, a calculator or a table to find the critical value. The excel command would be: “=-T.INV(0.025,19)”.And we see that

Now we have everything in order to replace into formula (1):

So on this case the 95% confidence interval would be given by (3.572;5.628)

And as we can see the confidence interval contains the value 5.

Part cYes from the hypothesis test we fail to reject the null hypothesis that the true mean is equal or higher to 5 and from the confidence interval the limits contains the value 5, so then the two procedures are showing the same result FAIL to reject the null hypothesis.