# Scentree: a framework for generating scenario trees for multistage stochastic programming

DevFeed: [Scentree: a framework for generating scenario trees for multistage stochastic programming](<https://devfeed.tech/articles/scentree-a-framework-for-generating-scenario-trees-for-multistage-stochastic-programming-131676.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2609.21495>)

Author: Cristian Pach\\'on-Garc\\'ia, Albert Sol\\\`a Vilalta, F. -Javier Heredia

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Data Science](<https://devfeed.tech/topics/data-science.md>), [Predictive AI](<https://devfeed.tech/topics/predictive-ai.md>), [scikit-learn](<https://devfeed.tech/topics/scikit-learn.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [data](<https://devfeed.tech/tags/data.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [design](<https://devfeed.tech/tags/design.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [forecasting](<https://devfeed.tech/tags/forecasting.md>), [framework](<https://devfeed.tech/tags/framework.md>), [generation](<https://devfeed.tech/tags/generation.md>), [learning](<https://devfeed.tech/tags/learning.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [model](<https://devfeed.tech/tags/model.md>), [modeling](<https://devfeed.tech/tags/modeling.md>), [models](<https://devfeed.tech/tags/models.md>), [modular](<https://devfeed.tech/tags/modular.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [package](<https://devfeed.tech/tags/package.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [probability](<https://devfeed.tech/tags/probability.md>), [programming](<https://devfeed.tech/tags/programming.md>), [stat-co](<https://devfeed.tech/tags/stat-co.md>), [trees](<https://devfeed.tech/tags/trees.md>)

## AI overview

Scentree is an open-source Python package that builds scenario trees for multistage stochastic programming from historical data or probability-distribution samples. It jointly models the stochastic processes with machine-learning and multivariate time-series methods, generates a scenario fan that captures dependencies, then reduces it to a representative tree. The package automates forecasting-model selection, parameter estimation, fan generation and tree construction, without assuming an underlying data distribution. Its modular design also allows external forecasts or partial workflow execution, and the framework can be applied to two-stage problems.

## Source excerpt

arXiv:2609.21495v2 Announce Type: replace-cross Abstract: We present scentree, an open-source Python package for constructing scenario trees for multistage stochastic programming models using either historical data or samples drawn from a probability distribution. It combines machine learning and multivariate time series models to obtain a scenario fan that captures dependencies in the stochastic processes. This scenario fan is subsequently reduced into a scenario tree that preserves representativeness of the stochastic process, providing a flexible and extensible framework for uncertainty modeling in stochastic programming problems. The framework can also be naturally applied to two-stage stochastic programming problems. Key contributions are the joint modeling of the stochastic process, preserving correlations between all random variables, and the automation of the complete workflow, including forecasting model selection, parameter estimation, scenario fan generation, and scenario tree construction. In addition, scentree does not assume any underlying data distribution, reducing the statistical expertise required to produce a scenario tree, and is modular by design, allowing external forecasts and other partial executions of the workflow.