Gummy bears: red or yellow? Chance (Winter 2010) presented a lesson in hypothesis testing carried out by medical students in a biostatistics class. Students were blind-folded and then given a red-colored or yellow-colored gummy bear to chew. (Half the students were randomly assigned to receive the red gummy bear and half to receive the yellow bear. The students could not see what color gummy bear they were given.) After chewing, the students were asked to guess the color of the candy based on the flavor. Of the 121 students who participated in the study, 97 correctly identified the color of the gummy bear.

a. If there is no relationship between color and gummy bear flavor, what proportion of the population of students will correctly identify the color?

b. Specify the null and alternative hypothesis for testing whether color and flavor are related.

c. Carry out the test and give the appropriate conclusion at a = .01. Use the p -value of the test to make your decision.

Respuesta :

Answer:

[tex]z=\frac{0.802 -0.5}{\sqrt{\frac{0.5(1-0.5)}{121}}}=6.64[/tex]  

[tex]p_v =2*P(z>6.64)=3.14x10^{-11}[/tex]  

So the p value obtained was a very low value and using the significance level given [tex]\alpha=0.01[/tex] we have [tex]p_v<\alpha[/tex] so we can conclude that we have enough evidence to reject the null hypothesis, and we can said that at 1% of significance the proportion of students who will correctly identify the color is different than 0.5

Step-by-step explanation:

Data given and notation

n=121 represent the random sample taken

X=97 represent the people who identify the color of the gummy bear

[tex]\hat p=\frac{97}{121}=0.802[/tex] estimated proportion of people who identify the color of the gummy bear

[tex]p_o=0.5[/tex] is the value that we want to test

[tex]\alpha=0.01[/tex] represent the significance level

Confidence=99% or 0.99

z would represent the statistic (variable of interest)

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

Part a

For this case the parameter that we want to test is 0.5 for the proportion of the population of students will correctly identify the color

Part b: Concepts and formulas to use  

We need to conduct a hypothesis in order to test the claim that there is no relationship between color and gummy bear flavor (population proportion different from 0.5).:  

Null hypothesis:[tex]p=0.5[/tex]  

Alternative hypothesis:[tex]p \neq 0.5[/tex]  

When we conduct a proportion test we need to use the z statistic, and the is given by:  

[tex]z=\frac{\hat p -p_o}{\sqrt{\frac{p_o (1-p_o)}{n}}}[/tex] (1)  

The One-Sample Proportion Test is used to assess whether a population proportion [tex]\hat p[/tex] is significantly different from a hypothesized value [tex]p_o[/tex].

Part c: Calculate the statistic  

Since we have all the info requires we can replace in formula (1) like this:  

[tex]z=\frac{0.802 -0.5}{\sqrt{\frac{0.5(1-0.5)}{121}}}=6.64[/tex]  

Statistical decision  

It's important to refresh the p value method or p value approach . "This method is about determining "likely" or "unlikely" by determining the probability assuming the null hypothesis were true of observing a more extreme test statistic in the direction of the alternative hypothesis than the one observed". Or in other words is just a method to have an statistical decision to fail to reject or reject the null hypothesis.  

The significance level provided [tex]\alpha=0.01[/tex]. The next step would be calculate the p value for this test.  

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

[tex]p_v =2*P(z>6.64)=3.14x10^{-11}[/tex]  

So the p value obtained was a very low value and using the significance level given [tex]\alpha=0.01[/tex] we have [tex]p_v<\alpha[/tex] so we can conclude that we have enough evidence to reject the null hypothesis, and we can said that at 1% of significance the proportion of students who will correctly identify the color is different than 0.5