# Understanding the `sample_count` Parameter and Forecast Averaging in Kronos

> Learn how Kronos uses sample_count to average stochastic trajectories, reducing variance for stable and accurate time series forecasts.

- Repository: [ShiYu/Kronos](https://github.com/shiyu-coder/Kronos)
- Tags: deep-dive
- Published: 2026-04-10

---

**The `sample_count` parameter controls how many parallel stochastic trajectories Kronos generates per time series, with the final forecast produced by averaging these samples to reduce variance and improve prediction stability.**

The `sample_count` parameter is a core configuration option in the **shiyu-coder/Kronos** repository that governs Monte Carlo sampling during autoregressive decoding. When set above 1, the model duplicates input tensors, generates multiple independent forecasts through stochastic token sampling, and returns their arithmetic mean to produce more reliable time-series predictions.

## How `sample_count