trend_test
Estimate trends in time-series data using OLS, robust Theil-Sen, and Mann-Kendall tests.
Instructions
Estimate trend three ways: OLS, robust Theil-Sen, and the Mann-Kendall test.
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": {
"series_id": "<series_id>"
},
"name": "trend_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | 'increasing', 'decreasing', or 'no significant trend'. | |
| series_id | Yes | ||
| mann_kendall | Yes | A single statistical test outcome. | |
| ols_r_squared | Yes | ||
| change_over_span | Yes | Theil-Sen slope × (n-1): total modeled change. | |
| theil_sen_ci_low | Yes | ||
| theil_sen_ci_high | Yes | ||
| ols_slope_per_step | Yes | ||
| theil_sen_slope_per_step | Yes |