132k views
0 votes
Two different types of injection-molding machines are used toform plastic parts. A part is considered defective if it hasexcessive shrinkage or is discolored. Two random samples,each of sixe 300, are selected, and 15 defective parts are found inthe sample from machine 1 whereas 8 defective parts are found inthe sample from machine 2.

a) Is it reasonable to conclude that both machinesproduce the same fraction of defective parts, using α =0.05?
b) Find the P-value for this test.
c) Construct a 95% CI on the difference in the two fractionsdefective.

User Zerodx
by
7.6k points

1 Answer

4 votes

Answer:

a) In hypothesis testing the null hypothesis is never accepted. It is rejected or not rejected. In this case, couldn't be rejected, so it is possible that both machines produce the same fraction of defective parts. It is reasonable to conclude that both machines produce the same fraction of defective parts, although this test doesn't conclude this.

b) P-value = 0.143

c)
-0.008\leq \pi_1-\pi_2\leq 0.054

Explanation:

In this problem we have to do a Test of Differences between Proportions

The first step is to state the null and alternative hypothesis


H_0: \pi_1-\pi_2=0\\\\H_1:  \pi_1-\pi_2\\eq 0

The null hypothesis represents the case where both machines are expected to produce the same amount of defective parts.

The second step is determine the significance level. In this case is α=0.05.

The third step is to calculate the difference in the proportions


p_1-p_2=(15/300)-(8/300)=0.050-0.027=0.023

The fourth step is to estimate the standard deviation of the difference between proportions.


s_(p_1-p_2)=\sqrt{(p(1-p))/(n_1)  +(p(1-p))/(n_2) }}

As
n_1=n_2, we can calculate p as
p=(p_1+p_2)/2=(0.050+0.027)/2=0.0385.

Then:


s_(p_1-p_2)=\sqrt{(p(1-p))/(n_1)  +(p(1-p))/(n_2) }}\\\\s_(p_1-p_2)=\sqrt{(2*0.0385(1-0.0385))/(300)}=0.0157

The fifth step is to compute p, the probability (or probability value).


z=(p_1-p_2)/s_(p_1-p_2)=0.023/0.0157= 1.465

A z table can be used to find that the two-tailed probability value for a z=1.465 is P(x>|z|)=0.143.

The probability value (P-value) is 0.143. As it is bigger than the significance level (0.05), the effect is not significant. We can not reject the hypothesis.

To construct a 95% CI we can write:


(p_1-p_2)-z*s_(p_1-p_2)\leq \pi_1-\pi_2\leq (p_1-p_2)+z*s_(p_1-p_2)

For a 95% CI, z=1.96. The estimated standard deviation is the same calcaulated before. Now we can calculate:


(p_1-p_2)-z*s_(p_1-p_2)\leq \pi_1-\pi_2\leq (p_1-p_2)+z*s_(p_1-p_2)\\\\(0.050-0.027)-1.96*0.0157\leq \pi_1-\pi_2\leq (0.050-0.027)+1.96*0.0157\\\\0.023-0.031\leq \pi_1-\pi_2\leq 0.023+0.031\\\\ -0.008\leq \pi_1-\pi_2\leq 0.054

User Alon Elharar
by
6.6k points