Resume where you left off
Online at https://diogoribeiro7.github.io/analytics-blog-jekyll/2024/04/09/experimental-design-statistical-tests/
Topics
Thoughtful experiment logs help product teams align on hypotheses before shipping features. This blueprint captures the essentials—design tables, power analysis code, and interpretation guidelines—all rendered cleanly by the DataLog theme.
Hypotheses
| Hypothesis | Description | Metric | Direction |
|---|---|---|---|
| H1 | New onboarding improves activation | Activation rate | Increase |
| H2 | Tooltips reduce setup time | Median time-to-value | Decrease |
Sample-size planning
1
2
3
4
5
6
7
8
9
10
11
12
13
from statsmodels.stats.power import NormalIndPower
effect = 0.04 # minimum detectable effect (absolute)
alpha = 0.05
power = 0.8
baseline = 0.32
analysis = NormalIndPower()
n_per_group = analysis.solve_power(effect_size=effect / (baseline * (1 - baseline)) ** 0.5,
power=power,
alpha=alpha,
ratio=1.0)
print(round(n_per_group))
Reminder: Adjust for multiple comparisons if you expect to peek at intermediate checkpoints.
Test plan
| Metric | Test | Rationale |
|---|---|---|
| Activation rate | Two-proportion z-test | Large samples, binary outcome |
| Time-to-value | Mann–Whitney U | Non-parametric, skewed distribution |
| Retention (D28) | Kaplan–Meier log-rank | Survival analysis |
Decision framework
- Pre-register hypotheses and guardrails in
_datasets/experiment-hypotheses.csv. - Automate metric extraction via notebooks stored in
_notebooks/. - Attach Tableau or Looker dashboards with the
viz-blockinclude for executive readouts.
By combining Markdown tables, statistical code, and callouts, the post becomes a reusable experimentation template for every squad.
Your private highlights
Kept in this browser only and never sent anywhere. These are your notes, not comments. With text selected, Alt+Shift+H highlights it and Alt+Shift+N adds a note.
This browser is not letting the site keep data, so saving, progress and highlights are off.
Select a passage of the article to highlight it.
Your reading data
Embed interactive plots, widgets, and demos using <figure>, <iframe>, or <div class="interactive-embed"> containers. Ensure each embed includes descriptive captions for accessibility.
© 2024 Diogo Ribeiro. Text and figures under CC BY 4.0.
How to cite
Use the quick export buttons to save citations for reference managers or copy the formatted text directly.
Diogo Ribeiro (2024). Experimental Design Blueprint with Power Analysis. DataLog | Data Science & Research Theme. https://diogoribeiro7.github.io/analytics-blog-jekyll/2024/04/09/experimental-design-statistical-tests/.
BibTeX
RIS
EndNote
Open science & reproducibility badges
These badges highlight the transparency practices applied to this work. Hover or focus on each badge to learn more about the criteria.
- Open Data Dataset and code repository published with permissive license. Public repository, DOI issued, README with reproduction steps.
- Reproducible Workflow Containerized environment and automated tests provided. Continuous integration pipeline with reproducibility checks.
- Transparent Peer Review Peer review reports archived with DOI and linked to article. Open peer review statement and archived reports on Zenodo.