You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final commiyts before version bump, added correlate, skew-report, boostrap that returns the confidence interval, permutation tests and effect size, major statistics for data analysis.
Copy file name to clipboardExpand all lines: docs/documentation.md
+198Lines changed: 198 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -496,6 +496,204 @@ Pass a single column (`df["target"]`), not the whole DataFrame. Nulls are droppe
496
496
497
497
---
498
498
499
+
## `correlate`
500
+
501
+
Correlation with p-values, the piece `df.corr()` leaves out. Pass two Series for a single `(r, p)`, or a whole DataFrame for a tidy table of every numeric pair, strongest first.
`suggested_transform` is a starting point: `log1p` for right-skewed non-negative data, `yeo-johnson` for skew with negatives, and `none` when a column is already roughly symmetric. The `outlier_pct` column reuses [`outliers`](#outliers).
581
+
582
+
---
583
+
584
+
## `bootstrap_ci`
585
+
586
+
A confidence interval for any statistic, with no distribution assumed. It resamples the data with replacement and reads the percentiles of the resampled statistic.
Pass any `statistic` (for example `np.median`), change the level with `ci`, and set `random_state` for a reproducible interval.
610
+
611
+
---
612
+
613
+
## `permutation_test`
614
+
615
+
A distribution-free p-value for the difference between two samples. It shuffles the group labels many times and asks how often chance alone produces a difference as large as the one you saw.
The default statistic is the difference in means; pass your own `statistic(a, b)` for anything else. It returns the number, not a pass or fail verdict, so the judgement stays with you.
640
+
641
+
---
642
+
643
+
## `effect_size`
644
+
645
+
How big is the difference, not just whether it is significant. It detects the outcome type and reports the right measure.
646
+
647
+
!!! tip "Similar concept"
648
+
`pingouin.compute_effsize`
649
+
650
+
**Signature**
651
+
652
+
```python
653
+
effect_size(df, group, value, decimals=2)
654
+
```
655
+
656
+
**Numeric outcome: Cohen's d, Hedges' g, mean difference**
The `interpretation` column labels the magnitude (negligible / small / medium / large), so a raw number is never left without context.
694
+
695
+
---
696
+
499
697
## `difference`
500
698
501
699
Symmetric percentage difference between two values or two columns: how *far apart* they are, regardless of direction. (Reach for `change` when direction matters.)
0 commit comments