Compares probabilities of two binomial samples

Compares probabilities of two binomial samples X, Y
533 Downloads
Updated 25 Feb 2010

View License

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
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0