canli-mcp / Quant finance

Linear regression with robust errors

Fit ordinary least squares of y on several regressors with classical, heteroskedasticity-robust (HC1) or Newey-West HAC standard errors, R-squared, F-test and AIC.

The tool is linear_regression in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.

Arguments

As the server declares them
ArgumentRequiredType
yyesnumber[]
xyesnumber[][]
namesnostring[]
constantnoboolean
standard_errorsnoclassical|hc1|hac
lagsnointeger

How a model reaches it

Ask in plain words. The model finds linear_regression with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:

{
  "name": "linear_regression",
  "arguments": {
    "y": "<number[]>",
    "x": "<number[][]>"
  }
}

Words that find it

Besides its name, title and description, find_tool matches a question to linear_regression on these words: linear, regression, ols, least, squares, newey, west, hac, robust, standard, errors, hc1, multivariate, r, squared.

More

Nothing here is investment advice.