rank_biserial_correlation
Calculate effect size for a Mann-Whitney U test: convert the U statistic and group size into a rank-biserial correlation ranging from -1 to 1, indicating direction and magnitude.
Instructions
Effect size for a Mann-Whitney U test. Call after mann_whitney_u, passing its statistic and the two sample sizes. Positive means sample 1's values tend to exceed sample 2's; negative means the reverse; 0 is no tendency either way. Returns a float in [-1, 1]; rough guidance mirrors Cohen's d: ~0.1 small, ~0.3 medium, ~0.5 large.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n1 | Yes | size of the first sample passed to mann_whitney_u | |
| n2 | Yes | size of the second sample passed to mann_whitney_u | |
| u1_statistic | Yes | the statistic returned by mann_whitney_u (U for the first sample passed to it) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |