# time-series-forecast

forecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE

- **Space:** data-science-public (https://github.com/Tech-Realm/space-data-science-public/tree/main/time-series-forecast)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use data-science-public/time-series-forecast` or MCP `get_pack data-science-public/time-series-forecast`
- **Files:** CHANGELOG.md, code/forecast.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/y.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Forecast the next periods of a series with moving average and simple exponential smoothing baselines, scored by MAE.

## Steps

1. Put the series in period order.
2. Run forecast.py; it scores each baseline on the last --holdout points.
3. Use the best baseline, or beat it with a fancier model before trusting that model.

## Edge cases

- Strong seasonality: use a seasonal naive baseline (same period last cycle).
- Short series (< 2x holdout) give unreliable scores.

## Don'ts

- Don't report a forecast without its holdout error.

## Routes (free first)

1. `python-stdlib`: `code/forecast.py` (no install).



---

Canonical URL: https://logicpacks.io/packs/data-science-public/time-series-forecast

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
