You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by vi...@apache.org on 2025/01/10 00:37:27 UTC
(druid) 01/01: fix link in test-stats.md
This is an automated email from the ASF dual-hosted git repository.
victoria pushed a commit to branch vtlim-patch-1
in repository https://gitbox.apache.org/repos/asf/druid.git
commit 4c44f17009ccf0cdc245c5592afa8e8a3c6aae5a
Author: Victoria Lim <vt...@users.noreply.github.com>
AuthorDate: Thu Jan 9 16:37:17 2025 -0800
fix link in test-stats.md
---
docs/development/extensions-core/test-stats.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/development/extensions-core/test-stats.md b/docs/development/extensions-core/test-stats.md
index 9f069d87bf5..e0516e35889 100644
--- a/docs/development/extensions-core/test-stats.md
+++ b/docs/development/extensions-core/test-stats.md
@@ -1,6 +1,6 @@
---
id: test-stats
-title: "Test Stats Aggregators"
+title: "Test stats aggregators"
---
<!--
@@ -23,13 +23,14 @@ title: "Test Stats Aggregators"
-->
-This Apache Druid extension incorporates test statistics related aggregators, including z-score and p-value. Please refer to [https://www.paypal-engineering.com/2017/06/29/democratizing-experimentation-data-for-product-innovations/](https://www.paypal-engineering.com/2017/06/29/democratizing-experimentation-data-for-product-innovations/) for math background and details.
+The `druid-stats` extension for Apache Druid incorporates aggregators to compute test statistics, including z-scores and p-values.
+Please refer to [Democratizing Experimentation Data for Product Innovations](https://medium.com/paypal-tech/democratizing-experimentation-data-for-product-innovations-8b6e1cf40c27) for math background and details.
Make sure to include `druid-stats` extension in order to use these aggregators.
## Z-Score for two sample ztests post aggregator
-Please refer to [https://www.isixsigma.com/tools-templates/hypothesis-testing/making-sense-two-proportions-test/](https://www.isixsigma.com/tools-templates/hypothesis-testing/making-sense-two-proportions-test/) and [http://www.ucs.louisiana.edu/~jcb0773/Berry_statbook/Berry_statbook_chpt6.pdf](http://www.ucs.louisiana.edu/~jcb0773/Berry_statbook/Berry_statbook_chpt6.pdf) for more details.
+Please refer to [Making Sense of the Two-Proportions Test](https://www.isixsigma.com/tools-templates/hypothesis-testing/making-sense-two-proportions-test/) and [An Introduction to Statistics: Comparing Two Means](https://userweb.ucs.louisiana.edu/~jcb0773/Berry_statbook/427bookall-August2024.pdf) for more details.
z = (p1 - p2) / S.E. (assuming null hypothesis is true)
@@ -41,6 +42,7 @@ S.E. = sqrt{ p1 * ( 1 - p1 )/n1 + p2 * (1 - p2)/n2) }
(p1 – p2) is the observed difference between two sample proportions.
### zscore2sample post aggregator
+
* **`zscore2sample`**: calculate the z-score using two-sample z-test while converting binary variables (***e.g.*** success or not) to continuous variables (***e.g.*** conversion rate).
```json
@@ -74,7 +76,7 @@ p2 = (successCount2) / (sample size 2)
}
```
-## Example Usage
+## 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org