Commit 8d97ac0
Fix D9: z-score thresholds from two-tailed to one-tailed
Change Z_90 from 1.645 to 1.2816 and Z_95 from 1.96 to 1.6449 in
repness.py, matching Clojure's one-tailed z-scores (stats.clj) and
resolving an internal inconsistency with Python's own stats.py which
already used the correct values.
The proportion tests in Polis check whether a comment's agree/disagree
rate is significantly above 0.5 — a directional hypothesis requiring
one-tailed tests. The two-tailed values were 28% more conservative,
causing fewer comments to pass significance.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e883338 commit 8d97ac0
7 files changed
Lines changed: 2717 additions & 2752 deletions
File tree
- delphi
- polismath/pca_kmeans_rep
- real_data
- r4tykwac8thvzv35jrn53-biodiversity
- r6vbnhffkxbd7ifmfbdrd-vw
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments