validation message
Information
Target: To check if the difference between the probability of succees (p) of two groups (populations) is significant, using sample dataHypotheses
H0: P ≥ = ≤ P0
H1: P < ≠ > P0
Test statistic
![Z statistic]()
Normal distribution
Assumptions
| Binomial distribution - the probability for event is identical | |
| P0 the expected population probability |
Required Sample Data
| p̂ the sample probabilities or x the number of successes | |
| n - Sample size |
R Code
The following R code should produce the same results:
The prop.test uses the Chi-squared statistic with one degree of freedom, which is exactly as using the Z test: z2=χ2(1)