levene_test
Tests equality of population variances across two or more groups using the robust Brown-Forsythe median-based variant. Helps decide whether to assume equal variances for t-tests or validate ANOVA assumptions.
Instructions
Test whether two or more groups have equal population variances (homogeneity of variance) -- use this to decide equal_var for two_sample_t_test, or to sanity-check one_way_anova's equal-variance assumption. Uses the Brown-Forsythe variant (deviations from each group's median), more robust to non-normal data than the original mean-based Levene's test. Returns the same shape as one_way_anova (it's computed as one internally, on absolute deviations from each group's median).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"groups": "<groups>"
},
"name": "levene_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | significance level for the test (and any confidence interval); default 0.05 | |
| groups | Yes | one list of observations per group; at least 2 groups, each with at least 2 observations |