Question #315755

seven students were on a diet in an attempt to lose weight with 2 losing weight while the rest gaining weight. is the diet an effective way to losing weight


Expert's answer

Let p denote the proportion of people who lose weight with the diet. The null hypothesis is that the diet is not effective, i.e. the proportion is 0.5, the alternative is that the proportion is greater than 0.5.

 

We have the

sample proportion

p^=27\hat{p}=\frac{2}{7}

The P- value

P(p^27)=P(np^pp(1p)n27pp(1p))==P(Z7270.50.5(10.5))==P(Z1.13389)=1Φ(1.13389)=0.87158P\left( \hat{p}\geqslant \frac{2}{7} \right) =P\left( \sqrt{n}\frac{\hat{p}-p}{\sqrt{p\left( 1-p \right)}}\geqslant \sqrt{n}\frac{\frac{2}{7}-p}{\sqrt{p\left( 1-p \right)}} \right) =\\=P\left( Z\geqslant \sqrt{7}\frac{\frac{2}{7}-0.5}{\sqrt{0.5\left( 1-0.5 \right)}} \right) =\\=P\left( Z\geqslant -1.13389 \right) =1-\Phi \left( -1.13389 \right) =0.87158

Since the P-value is greater than α=0.01\alpha =0.01 the null hypothesis is not rejected. The diet is not effective.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS