correlation
Compute the Pearson correlation between two numeric columns in a dataset to quantify their linear relationship and determine if changes in one column are associated with changes in the other.
Instructions
Return the Pearson correlation between two numeric columns.
Args: name: the dataset name. col_a: first numeric column. col_b: second numeric column.
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>",
"col_a": "<col_a>",
"col_b": "<col_b>"
},
"name": "correlation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| col_a | Yes | ||
| col_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |