cohens_d
Compute the standardized mean difference between two samples to quantify effect size, complementing t-test significance with practical magnitude.
Instructions
Standardized mean difference between two samples (pooled SD). Use alongside two_sample_t_test, which tells you whether a difference is significant but not how large it is. Rough guidance: ~0.2 small, ~0.5 medium, ~0.8 large -- context-dependent. Returns {"value": float or null, "warnings": [...]}. value is null only when both samples have zero variance and unequal means, where the effect size is mathematically infinite -- see the warning for which direction, and report the raw mean difference instead in that case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | first sample | |
| b | Yes | second sample |