Skip to content

feat(pipeline): statistical export, verified claims, and i18n restructuring - #20

Merged
aleattene merged 7 commits into
mainfrom
feat/stats-export-and-refactoring
Sep 1, 2026
Merged

aleattene merged 7 commits into
mainfrom
feat/stats-export-and-refactoring

Conversation

@aleattene

Copy link
Copy Markdown
Owner
  • New pipeline step 04 exports every BQ2/BQ3 statistical test result as CSV in data/analysis/ (t-tests, chi-square, Bonferroni and BH corrections, bootstrap CIs)
  • NB04/NB05 markdown claims corrected against the exported values
  • Removed Italian mirror notebooks
  • Italian localisation moves from _IT suffixes to it/ subfolders

- materializes t-tests, chi-square, Bonferroni/BH corrections and bootstrap CIs as 4 CSVs in data/analysis/
- wired into run_pipeline as --step stats"
- float rounding in p * n / rank could land one ulp below the raw p-value, breaking the adjusted >= raw invariant
- document Yates continuity correction on 2x2 tables and the pooled-SD Cohen's d convention alongside Welch's t-test
- p-value ranges, correction monotonicity, CI ordering, family membership, conditional-population flags
- byte-identical determinism across two runs (fixed bootstrap seed)
- scipy precision-loss warning silenced in this module only: expected on the near-constant synthetic sample, meaningful in production
- NB04: all 8 signals significant after both corrections (was 'most'); verified ranking with d values replaces hedged claim; effect sizes span small-to-large (was 'small-to-medium'); ghost gap quantified (4.8% vs 54.3%) and BQ5 definition divergence documented
- NB05: Cramer's V peaks at 0.15 (was 'below 0.15'); numeric demographic d below 0.3 (was 'below 0.2', actual 0.28 and 0.21); behavioral range 0.5-0.9 (was '0.3-0.6'); ratio 2-4x (was '2-5x')
- bilingual scope narrows to business-facing documents (README, REPORT)
- structural parity tests removed together with the mirrors" -- notebooks/it tests/test_notebooks_it.py
- relative links fixed in the moved files (language switcher, LICENSE, report and docs paths, figure paths)
@aleattene aleattene self-assigned this Sep 1, 2026
- tests running main() without --step reached the real step 04, which opens the real DuckDB file: green locally only because db exists, red in CI
- add --step stats selection test and stats error propagation test for symmetry with the other steps
@codecov-commenter

codecov-commenter commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.03361% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.97%. Comparing base (c940e67) to head (49b87d1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/pipeline/step_04_stats.py 83.89% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   93.53%   90.97%   -2.57%     
==========================================
  Files           9       10       +1     
  Lines         325      443     +118     
==========================================
+ Hits          304      403      +99     
- Misses         21       40      +19     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aleattene
aleattene merged commit 509423d into main Sep 1, 2026
3 checks passed
@aleattene
aleattene deleted the feat/stats-export-and-refactoring branch September 1, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants