stats regression
stats_regressionLinear trend and forecast for a number series: least-squares slope and intercept, correlation, R-squared, the slope's standard error, 95% interval, t-statistic and p-value, a plain verdict (rising, falling, no significant trend), and an optional forecast for the next 1-100 steps with a 95% prediction band. Give y alone for an evenly spaced series or x and y pairs. Up to 10,000 points. $0.002. Costs $0.002 USDC per call (x402).
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": {
"y": "<y>"
},
"name": "stats_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | optional, same length | |
| y | Yes | ||
| forecast | No | steps ahead, 0-100 |