Regression Fit
regression_fitFit a regression model and get the full statistical table, like R's summary(lm) or statsmodels. Linear, polynomial (degree 2–6), exponential (y = a·e^(bx)), logarithmic, power (y = a·x^b), multiple linear (many named predictors) and binary logistic regression (IRLS, odds ratios, McFadden pseudo-R², accuracy). Returns coefficients with standard errors, t / z statistics, p-values and confidence intervals, R² and adjusted R², residual standard error, F-test, AIC / BIC, a residual summary, the fitted equation, and predictions with confidence and prediction intervals. model=best ranks the single-predictor models by adjusted R² on the original scale. Numerically stable Householder QR. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/regression-fit
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 | Predictor values; for model=multiple / logistic an array of rows ([[x1, x2], ...]) or a single list | |
| y | Yes | Response values (0/1 for logistic); max 20,000 points | |
| model | No | linear | |
| names | No | Predictor names (multiple / logistic) | |
| degree | No | ||
| predict | No | x values (or rows) to predict | |
| intercept | No | ||
| confidence | No |