correlation
Compute Pearson, Spearman, or Kendall coefficients and p values from inline data arrays or file references to measure relationships between two variables.
Instructions
Compute the Pearson, Spearman or Kendall correlation coefficient and its p value.
``x`` and ``y`` may be passed inline or as ``"@<path>"`` file references.
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": {
"x": "<x>",
"y": "<y>"
},
"name": "correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| method | No | pearson |