Skip to content

Rosenbrock - #343

Merged
JTorgander merged 5 commits into
stan-dev:developmentfrom
Uupali:rosenbrock
Oct 30, 2026
Merged

JTorgander merged 5 commits into
stan-dev:developmentfrom
Uupali:rosenbrock

Conversation

@Uupali

@Uupali Uupali commented Oct 15, 2026

Copy link
Copy Markdown

Adds 3 benchmark instances of the parameterized Hybrid Rosenbrock distribution target from Pagani et al. (2022) (Scandinavian Journal of Statistics), with implementations in both Stan and PyMC.

Mathematical Definition:

Following Pagani et al. (2022), the target log-density is defined over a scalar root parameter $x_1$ and a parameter matrix $\mathbf{x}_{\text{rest}} \in \mathbb{R}^{n_2 \times (n_1 - 1)}$:

$$\log p(x_1, \mathbf{x}_{\text{rest}}) = -a(x_1 - \mu)^2 - b \sum_{j=1}^{n_2} \sum_{i=1}^{n_1 - 1} \left(x_{\text{rest}, j, i} - x_{\text{prev}}^2\right)^2$$

where $x_{\text{prev}} = x_1$ for $i = 1$, and $x_{\text{prev}} = x_{\text{rest}, j, i-1}$ for $i > 1$.

The overall dimension of the system is $D = 1 + n_2 (n_1 - 1)$.
Paper reference:
Pagani, F., Wiegand, M., & Nadarajah, S. (2022). An n-dimensional Rosenbrock distribution for MCMC testing. Scandinavian Journal of Statistics.
DOI: 10.1111/sjos.12532

Posteriors Included:

  • rosenbrock_2d-rosenbrock: $n_1 = 2, n_2 = 1, D = 2, a = 0.05, b = 5.0, \mu = 1.0$
    (Minimal parabolic ridge benchmark; Model 1 in Pagani et al., 2022)
  • rosenbrock_n3_chain-rosenbrock: $n_1 = 3, n_2 = 1, D = 3, a = 0.05, b = 5.0, \mu = 1.0$
    (Single 3-variable chain isolating coordinate scale mismatch; Model 3 in Pagani et al., 2022)
  • rosenbrock_n5_hybrid-rosenbrock: $n_1 = 3, n_2 = 2, D = 5, a = 0.05, b = 5.0, \mu = 1.0$
    (Multi-block hybrid topology branching from a shared root variable; Model 6 in Pagani et al., 2022)

Changes Included

  • models: Added models/stan/rosenbrock.stan, models/pymc/rosenbrock.py, and models/info/rosenbrock.info.json.
  • data: Added raw R data definitions in data/data-raw/, compressed data JSONs (.json.zip) in data/data/, and metadata files in data/info/.
  • posteriors: Added posterior configuration JSON files for rosenbrock_2d-rosenbrock, rosenbrock_n3_chain-rosenbrock, and rosenbrock_n5_hybrid-rosenbrock.
  • bibliography: Added pagani2022 BibTeX entry to references.bib.

"rosenbrock"
],
"title": "5D Hybrid Rosenbrock Target Distribution from Pagani et al. (2022)",
"description": "Synthetic dataset specifying a 5-dimensional multi-block hybrid topology (n1 = 3, n2 = 2) with parabolic parameters a = 0.05 and b = 5.0 from Pagani et al. (2022).",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add corresponding to model X

@JTorgander
JTorgander self-requested a review October 30, 2026 11:10

@JTorgander JTorgander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good job!

@JTorgander
JTorgander merged commit d74159f into stan-dev:development Oct 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants