Make sure to include extension in order to use these aggregators.
Please refer to https://www.isixsigma.com/tools-templates/hypothesis-testing/making-sense-two-proportions-test/ and for more details.
z = (p1 - p2) / S.E. (assuming null hypothesis is true)
S.E. = sqrt{ p1 * ( 1 - p1 )/n1 + p2 * (1 - p2)/n2) }
(p1 – p2) is the observed difference between two sample proportions.
Please note the post aggregator will be converting binary variables to continuous variables for two population proportions. Specifically
p2 = (successCount2) / (sample size 2)
pvalue2tailedZtest post aggregator
- : calculate p-value of two-sided z-test from zscore
Example Usage
In this example, we use zscore2sample post aggregator to calculate z-score, and then feed the z-score to pvalue2tailedZtest post aggregator to calculate p-value.
A JSON query example can be as follows: