regression_fit
Fits a linear regression (y = mx + b) to x/y data points and returns the slope, intercept, and R-squared value for trend analysis.
Instructions
Fit a linear regression (y = mx + b) to x/y data points, returns slope, intercept, R-squared.
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": "regression_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Array of x values (numbers). | |
| y | Yes | Array of y values (numbers). |