linear_regression
Fit a linear model y = mx + b to data points, calculating slope, intercept, and R² for statistical analysis.
Instructions
Perform linear regression to fit y = mx + b and return slope, intercept, and R² (Domain: statistics, Category: general)
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": {
"xs": "<xs>",
"ys": "<ys>"
},
"name": "linear_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xs | Yes | ||
| ys | Yes |