correlation_calc
Computes Pearson correlation, r-squared, covariance, and linear regression for two numeric arrays, helping quantify relationships and trends between datasets.
Instructions
Compute Pearson correlation coefficient, r-squared, covariance, and linear regression between two numeric arrays.
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_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | First data array | |
| y | Yes | Second data array |