You are on page 1of 3

Part IV Skittles Project

Red Orange Yellow Green Purple Total


Myself 12 14 12 13 7 58
Student 2 10 14 11 13 10 58
Student 3 12 15 10 14 7 58
Total 34 43 33 40 24 174

B. Using the contingency table you created, show your work to compute the following
probabilities:

1. The probability that a randomly selected skittle is red or yellow:


34+33/174=0.3851
2. The probability that a randomly selected skittle is red or from your bag: 34+58-
12/174=0.4598
3. The probability that a randomly selected skittle is red and from your bag:
12/174=0.0690
4. The probability that a randomly selected skittle is from your bag, given it is red:
(12/174)/(34/174)=0.3529
5. The probability that three randomly selected skittles (without replacement) are all
red: 34/174* 33/173*32/172= 0.0069

B. Suppose your bag is a random sample of Skittles from the place where you purchased it
and Student A's bag is a random sample from Wall Drug Store. List and check the
conditions for computing a 95% confidence interval for the difference in proportions of
red skittles between the place where you purchased your bag and Wall Drug Store. State
whether the confidence interval will be valid or not. Use GeoGebra to compute the
interval. Include an image that shows the inputs you entered and the output that
resulted. Interpret your interval in context, including stating where you bought your bag.

Random sample

independent observation (n1 ≤ 0.05N1; n2 ≤ 0.05N2) 58/0.05 1160 ≤ 0.05

n1p̂ ≥ 10; 58*0.1897=11.0026 ≥ 10

n1(1-p̂) ≥ 10; 58(1-0.1897)= 46.9974≥ 10

n2p̂≥ 10; 58*0.1897=11.0026 ≥ 10


n2(1-p̂) ≥ 10: 58(1-0.1897)= 46.9974≥ 10

Independent samples: Yes they are independent samples

The confidence interval will not be valid

C. Calculate n1p^, n1(1−p^), n2p^, and n2(1−p^) and state whether the sample sizes in your


bag and Student A's bag are large enough for a hypothesis test for the difference in
proportions to be valid. Using the data from your bag and from Student A's bag, carry out
a hypothesis test for whether there is a difference in the proportions of red skittles
between the place where you purchased your bag and Wall Drug Store. Give the
hypotheses, test statistic, p-value, decision about the null hypothesis, and appropriate
conclusion in context.

n1p^: 58*0.1897=11.0026 ( this is the same for n2p^,)

n1(1−p^): 58(1-0.1897)= 46.9974 ( this is the same for n2(1−p^) 

The test statistic is 0.4737 and the p-value is 0.3179. We do not reject the null hypothesis.
There is insufficient evidence to conclude the sample size in my bad and in students A’s
bag are not large enough for a hypothesis test for the difference in proportions to be valid.
There is a difference the proportions of red skittles between the places we purchased our
bags.

You might also like