Version 1.0.1. 66 of 66 procedure checks green, and 211 probability-distribution values compared with SciPy (worst relative gap 1.0e-10). This dossier is produced by tests/verify_procs.py and tests/verify_dist.py, shipped with the code; it reproduces on your machine.
binomtest, fisher_exact).| Check | n80 | Reference | Tolerance | |
|---|---|---|---|---|
| ttest-1 bilatéral | 0.568636 | 0.568636 | 1e-06 | ✓ |
| ttest-1 unilatéral | 0.696387 | 0.696387 | 1e-06 | ✓ |
| ttest-1 Monte Carlo | 0.568636 | 0.5714 | 0.0095 | ✓ |
| ttest-paired | 0.257161 | 0.257161 | 1e-06 | ✓ |
| ttest-2 déséquilibré | 0.39657 | 0.39657 | 1e-06 | ✓ |
| ttest-2 n pour 80 % (valeur de référence 64) | 64 | 64 | 0 | ✓ |
| ttest-2 n pour 90 % (valeur de référence 86) | 86 | 86 | 0 | ✓ |
| ttest-welch vs simulation (approximation) | 0.713438 | 0.713317 | 0.01888 | ✓ |
| ztest-2 | 0.726721 | 0.726721 | 1e-06 | ✓ |
| mann-whitney ARE (parent normal) vs simulation | 0.844903 | 0.8448 | 0.012 | ✓ |
| mann-whitney Noether vs simulation (approximation) | 0.819584 | 0.8448 | 0.03 | ✓ |
| anova-1 (F non centrale) | 0.354884 | 0.354884 | 1e-06 | ✓ |
| anova-1 via moyennes | 0.660262 | 0.660262 | 1e-06 | ✓ |
| glm-f | 0.894875 | 0.894875 | 1e-06 | ✓ |
| reg-slope vs simulation (x aléatoire) | 0.527518 | 0.517967 | 0.03 | ✓ |
| rm-anova vs simulation | 0.728843 | 0.734 | 0.02417 | ✓ |
| tost-means parallèle vs simulation | 0.199491 | 0.197267 | 0.005252 | ✓ |
| tost-means apparié vs simulation | 0.826347 | 0.827856 | 0.005059 | ✓ |
| be-2x2 (PowerTOST : 0.815845 à N=40) | 0.815845 | 0.815845 | 1e-05 | ✓ |
| be-2x2 N pour 80 % (PowerTOST : 40) | 40 | 40 | 0 | ✓ |
| be-2x2 vs simulation | 0.815845 | 0.814894 | 0.005162 | ✓ |
| noninf-means | 0.560036 | 0.560036 | 1e-06 | ✓ |
| crossover-2x2 | 0.543869 | 0.543869 | 1e-06 | ✓ |
| cluster-means | 0.922764 | 0.922764 | 1e-06 | ✓ |
| prop-1 (normale) | 0.775848 | 0.775848 | 2e-06 | ✓ |
| prop-1-exact vs binomtest SciPy | 0.838182 | 0.838182 | 1e-06 | ✓ |
| prop-1-exact (p0=0.2, n=45) | 0.856961 | 0.856961 | 1e-06 | ✓ |
| prop-2 énumération, méthode 1 | 0.693704 | 0.693704 | 1e-06 | ✓ |
| prop-2 énumération, méthode 2 | 0.713066 | 0.713066 | 1e-06 | ✓ |
| prop-2 énumération, méthode 3 | 0.629184 | 0.629184 | 1e-06 | ✓ |
| prop-2 Fisher exact vs fisher_exact SciPy | 0.659381 | 0.659381 | 1e-06 | ✓ |
| prop-2 via odds ratio | 0.617688 | 0.617688 | 1e-05 | ✓ |
| noninf-props NI vs score exact (approx.) | 0.574609 | 0.57635 | 0.03 | ✓ |
| mcnemar exact vs binomtest SciPy | 0.452116 | 0.452116 | 1e-06 | ✓ |
| mcnemar Connor | 0.527997 | 0.527997 | 1e-05 | ✓ |
| chi2-w | 0.845732 | 0.845732 | 1e-06 | ✓ |
| chi2-gof | 0.711254 | 0.711254 | 1e-06 | ✓ |
| logistic vs simulation (Hsieh, approximation) | 0.895861 | 0.884667 | 0.04 | ✓ |
| rates-2 Poisson vs simulation | 0.553476 | 0.5555 | 0.02 | ✓ |
| rates-2 binomiale négative vs simulation | 0.486609 | 0.483233 | 0.03 | ✓ |
| cluster-props | 0.718066 | 0.718066 | 1e-05 | ✓ |
| corr-1 exacte vs simulation | 0.653961 | 0.661933 | 0.02095 | ✓ |
| corr-1 Fisher vs formule | 0.646869 | 0.646869 | 1e-06 | ✓ |
| corr-1 n pour 80 % (loi exacte : 84, valeur de G*Power) | 84 | 84 | 0 | ✓ |
| corr-1 Fisher n pour 80 % (85) | 85 | 85 | 0 | ✓ |
| corr-2 | 0.674963 | 0.674963 | 1e-05 | ✓ |
| var-1 | 0.877214 | 0.877214 | 1e-06 | ✓ |
| var-2 | 0.806552 | 0.806552 | 1e-06 | ✓ |
| logrank-accrual vs simulation (Schoenfeld) | 0.856212 | 0.839 | 0.045 | ✓ |
| logrank-events (Schoenfeld) | 0.712983 | 0.712983 | 1e-05 | ✓ |
| logrank-events : 247 événements pour HR 0.7 (Schoenfeld) | 247 | 247 | 0 | ✓ |
| cox binaire | 0.699515 | 0.699515 | 1e-05 | ✓ |
| roc-auc (formule de Hanley-McNeil) | 0.697305 | 0.697305 | 1e-05 | ✓ |
| roc-auc vs simulation binormale (approximation) | 0.697305 | 0.708667 | 0.06 | ✓ |
| sens-spec (Buderer) | 0.0657392 | 0.0657392 | 1e-09 | ✓ |
| sens-spec n pour demi-largeur 0.05 (Buderer : 692) | 692 | 692 | 0 | ✓ |
| icc vs simulation | 0.877536 | 0.8779 | 0.01306 | ✓ |
| ci-mean | 3.69107 | 3.69107 | 1e-09 | ✓ |
| ci-prop Wilson | 0.0487655 | 0.0487655 | 1e-09 | ✓ |
| ci-prop Clopper-Pearson | 0.0500921 | 0.0500921 | 1e-07 | ✓ |
| survey (Cochran : 385 pour ±5 %) | 385 | 385 | 0 | ✓ |
| survey population finie 2000 (Cochran : 323) | 323 | 323 | 0 | ✓ |
| success-run 95/95 zéro défaut (59) | 59 | 59 | 0 | ✓ |
| success-run 95/90 un défaut (CP exact : 46) | 46 | 46 | 0 | ✓ |
| wilks bilatéral 95/95 (93) | 93 | 93 | 0 | ✓ |
| wilks unilatéral 95/95 (59) | 59 | 59 | 0 | ✓ |
Worked examples from the G*Power manual (Faul et al.), as reported by the “G*Power examples evaluated with Spower” vignette (CRAN). G*Power itself was not re-run: the reference values are the manual's. Gaps are not hidden.
| Example | n80 | G*Power | |
|---|---|---|---|
| Corrélation vs ρ0 = 0,60 ; r = 0,65 ; puissance 0,95 (z de Fisher) | 1929 | 1929 | ✓ |
| Une proportion exacte, unilatéral : π0 = 0,65 ; π1 = 0,80 ; n = 20 écart de 0,0002 (probablement l'arrondi de la région de rejet exacte) | 0.41145 | 0.4112 | ✓ |
| Régression multiple : N = 95 ; R² = 0,1 ; 5 prédicteurs | 0.67359 | 0.673 | ✓ |
| Régression, augmentation de R² : N = 90 ; α = 0,01 | 0.2413 | 0.241 | ✓ |
| Régression, augmentation de R² : puissance 0,80 ; α = 0,01 | 242 | 242 | ✓ |
| ANOVA à un facteur : 10 groupes ; f = 0,25 ; puissance 0,95 | 39 | 39 | ✓ |
| Deux variances : rapport 1/1,5 ; puissance 0,80 | 193 | 193 | ✓ |
| Une variance, unilatéral : rapport 1/1,5 ; puissance 0,80 | 81 | 81 | ✓ |
| Test t, deux groupes, unilatéral : d = 0,5 ; puissance 0,95 | 88 | 88 | ✓ |
| Test t apparié : d = 0,421637 ; 50 paires | 0.83211 | 0.832 | ✓ |
| Test t, un échantillon, unilatéral : d = 0,625 ; puissance 0,95 | 30 | 30 | ✓ |
| Test t, un échantillon : d = 0,1 ; α = 0,01 ; puissance 0,90 | 1492 | 1492 | ✓ |
| Deux corrélations indépendantes : N1 = 206 (r = 0,75) ; N2 = 51 (r = 0,88) écart EXPLIQUÉ : la valeur 0,726 vient de la source tierce ; G*Power 3.1.9.6 lancé donne 0,7087795, identique à n80 (voir tests/gpower_gui.py). | 0.70878 | 0.726 | ✗ |
| Pente de régression simple : N = 100 ; β = −0,0667 ; σx = 7,5 ; σy = 4 écart EXPLIQUÉ : G*Power utilise √N, n80 √(n−1) ; avec √N, n80 retrouve 0,6221401 (G*Power lancé) ; ici 0,2371 contre 0,2389. | 0.23705 | 0.2389 | ✗ |
pip install numpy scipy
make # ou : cmake -B build && cmake --build build
python3 tests/verify_dist.py ./build/dist_cli
python3 tests/verify_procs.py ./n80