Stat Distance Correlation
stat_distance_correlationDetect any dependence between two variables, linear or non-linear, using a bootstrap-based distance correlation that is zero only when they are independent. Use it when Pearson r is non-significant or relationships may be non-monotonic.
Instructions
Distance correlation — detects any dependence, linear or not.
WHEN TO USE
Before concluding "no relationship" from a non-significant Pearson r. Distance correlation is zero if and only if the variables are independent.
When a non-linear or non-monotonic relationship is plausible.
WHEN NOT TO USE: as a replacement for interpretable effect sizes — the coefficient has no simple direction or magnitude reading.
Bootstrap-based, so it is slower; reduce n_boot for exploratory passes.
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": {
"name": "<name>",
"x": "<x>",
"y": "<y>"
},
"name": "stat_distance_correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| name | Yes | ||
| seed | No | ||
| n_boot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |