calculate_correlation
Calculate Pearson or Spearman correlation coefficients between two comma-separated datasets to determine their linear or monotonic relationship.
Instructions
Calculate Pearson or Spearman correlation between two datasets.
Parameters:
method — 'pearson' (default) or 'spearman'.
x — Comma-separated X values.
y — Comma-separated Y values.
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": "calculate_correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| method | No | pearson |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |