omni_cohen_d_effect_size
Calculate Cohen's d, Hedges' g, pooled standard deviation, and U3 non-overlap from group means, standard deviations, and sample sizes to quantify standardized treatment effects in clinical trials.
Instructions
Biostatistical Cohen's d Effect Size & Standardized Mean Difference Calculator. Calculate Cohen's d, Hedges' g (unbiased small-sample adjustment), and pooled standard deviation to quantify standardized effect sizes across clinical trials. Discipline: BIOTECH. Governing mathematical model / formula: Cohen's d = (μ₁ - μ₂) / s_pooled | s_pooled = √[((n₁ - 1)·s₁² + (n₂ - 1)·s₂²) / (n₁ + n₂ - 2)].
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of cohens_d_effect_size (Cohen's d Effect Size), hedges_g_unbiased (Hedges' g (Small-Sample Corrected)), pooled_standard_deviation (Pooled Standard Deviation (s_pooled)), non_overlap_u3_percentage (Cohen's U₃ Distribution Non-Overlap) using treatment_group_mean_m1 (Treatment Group Mean (μ₁) in units), control_group_mean_m2 (Control Group Mean (μ₂) in units), treatment_std_dev_s1 (Treatment Standard Deviation (s₁) in SD), control_std_dev_s2 (Control Standard Deviation (s₂) in SD), sample_size_per_group_n (Sample Size Per Group (n) in n/group). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
SIBLING ROUTING: Use this dedicated specialist tool for 'Biostatistical Cohen's d Effect Size & Standardized Mean Difference Calculator' rather than generic dispatchers like omni_universal_query. For cross-discipline dynamic dispatch, see omni_universal_query.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "cohen-d-effect-size"
category (string): "biotech"
name (string): "Biostatistical Cohen's d Effect Size & Standardized Mean Difference Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.cohens_d_effect_size (Cohen's d Effect Size): Formatted display string (e.g. '0.81 (Large Effect Size)')
metrics.hedges_g_unbiased (Hedges' g (Small-Sample Corrected)): Formatted display string (e.g. '0.80 Unbiased')
metrics.pooled_standard_deviation (Pooled Standard Deviation (s_pooled)): Formatted display string (e.g. '9.00 SD Units')
metrics.non_overlap_u3_percentage (Cohen's U₃ Distribution Non-Overlap): Formatted display string (e.g. '79.1% Superior to Control Mean')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_cohen_d_effect_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| control_std_dev_s2 | No | Control Standard Deviation (s₂) (SD). Standard deviation of control cohort. Default: 8.8. Min: 0.1. Max: 500. | |
| treatment_std_dev_s1 | No | Treatment Standard Deviation (s₁) (SD). Standard deviation of treatment cohort. Default: 9.2. Min: 0.1. Max: 500. | |
| control_group_mean_m2 | No | Control Group Mean (μ₂) (units). Mean outcome score in control placebo cohort. Default: 41.2. Min: -1000. Max: 1000. | |
| sample_size_per_group_n | No | Sample Size Per Group (n) (n/group). Patients in each arm (assuming equal cohorts). Default: 45. Min: 3. Max: 10000. | |
| treatment_group_mean_m1 | No | Treatment Group Mean (μ₁) (units). Mean outcome score in experimental cohort. Default: 48.5. Min: -1000. Max: 1000. |