Linear Regression
calculator_linear_regressionFit y = a + bx with slope, intercept, R², correlation.
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": "calculator_linear_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X data. | |
| y | Yes | Y data. | |
| predict_x | No | Optional prediction X. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slope | Yes | ||
| equation | No | ||
| intercept | Yes | ||
| expression | Yes |