LQM Registry / forecasting
Linear Trend Forecast
OLS time-trend forecast with residual uncertainty intervals. Quantitative output only; no language generation.
Model key
lq.forecasting.linear-trendVersion1.0.0
Runtimepython-process
Model contract
Inputs are explicit.
{
"type": "object",
"required": [
"values"
],
"properties": {
"values": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 3
}
}
}Output contract
Outputs are explicit.
{
"type": "object",
"required": [
"forecast",
"slope",
"intercept",
"r_squared"
]
}Default parameters
{
"horizon": 5,
"interval_z": 1.95996398454005404943245594040490686893463134765625
}Example input
{
"values": [
102,
103.5,
104.099999999999994315658113919198513031005859375,
105.7999999999999971578290569595992565155029296875,
108.2000000000000028421709430404007434844970703125,
109.400000000000005684341886080801486968994140625,
111
]
}