linear_regression_fit
Fit least-squares linear regression models to univariate or multivariate data using closed-form methods and normal equations for exact coefficient estimates.
Instructions
Least-squares linear regression. Univariate: two closed-form methods. Multivariate: normal equations.
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": "linear_regression_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| X | Yes | ||
| y | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |