Compares probabilities of two binomial samples
Compares probabilities of two binomial samples X, Y from a Bernoully experiments with probability p1 for set X and p2 for set Y
Test the null hypothesis
H_0: p1 = p2
vs alternatives
H_1: p1 > p2
H_2: p1 < p2
H_3: p1 != p2
Input:
X - row of 0 or 1
Y - row of 0 or 1
Output:
z - normal statistics N(0,1) for H_0
pv1 - p-value for H_1
pv2 - p-value for H_2
pv3 - p-value for H_3
Cite As
Dimitar Atanasov (2024). Compares probabilities of two binomial samples (https://www.mathworks.com/matlabcentral/fileexchange/26788-compares-probabilities-of-two-binomial-samples), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Discrete Distributions > Binomial Distribution >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |