# \#bayesian-inference

**URL:** https://discourse.julialang.org/tag/bayesian-inference/410.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [NUTS algorithm in Turing.jl](https://discourse.julialang.org/t/nuts-algorithm-in-turing-jl/135592)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 7\
**Last updated:** [September 2, 2026, 3:52am UTC](https://discourse.julialang.org/t/nuts-algorithm-in-turing-jl/135592 "2026-09-02T03:52:43Z")

</div>

Dear all, Can someone explain to me that the n\_adapts in case NUTS algorithm NUTS(n\_adapts, δ) used in Turing sample function is number of iteration or number of accepted samples before main sampling? Because when I giv…

---

## [Proposal for TuringRegressions.jl - Bayesian regression model alternative to TuringGLM.jl](https://discourse.julialang.org/t/proposal-for-turingregressions-jl-bayesian-regression-model-alternative-to-turingglm-jl/138815)

<div class="topic-metadata">

**Author:** [@jalster](https://discourse.julialang.org/u/jalster)\
**Replies:** 7\
**Last updated:** [August 22, 2026, 12:10pm UTC](https://discourse.julialang.org/t/proposal-for-turingregressions-jl-bayesian-regression-model-alternative-to-turingglm-jl/138815 "2026-08-22T12:10:35Z")

</div>

Hi everyone, I would like to propose TuringRegressions.jl - a more fully featured alternative to TuringGLM.jl offering much more of what brms does in R, most notably: correlated random effect slopes, i.e. full support…

---

## [\[ANN\] AdaptEllipticalSliceSampler.jl: Adaptive Generalized Elliptical Slice Sampling](https://discourse.julialang.org/t/ann-adaptellipticalslicesampler-jl-adaptive-generalized-elliptical-slice-sampling/138167)

<div class="topic-metadata">

**Author:** [@ndmarco](https://discourse.julialang.org/u/ndmarco)\
**Replies:** 0\
**Last updated:** [July 13, 2026, 10:55pm UTC](https://discourse.julialang.org/t/ann-adaptellipticalslicesampler-jl-adaptive-generalized-elliptical-slice-sampling/138167 "2026-07-13T22:55:24Z")

</div>

I’d like to announce AdaptEllipticalSliceSampler.jl — a Julia implementation of an adaptive generalized elliptical slice sampler (AGESS) from a recent paper that we have been working on. Elliptical slice sampling (ESS) …

---

## [\[ANN\] Latte.jl: Probabilistic programming for latent Gaussian models](https://discourse.julialang.org/t/ann-latte-jl-probabilistic-programming-for-latent-gaussian-models/137879)

<div class="topic-metadata">

**Author:** [@timweiland](https://discourse.julialang.org/u/timweiland)\
**Replies:** 18\
**Last updated:** [July 5, 2026, 12:12pm UTC](https://discourse.julialang.org/t/ann-latte-jl-probabilistic-programming-for-latent-gaussian-models/137879 "2026-07-05T12:12:14Z")

</div>

Hi all! Last week I published Latte.jl, a probabilistic programming framework for latent Gaussian models. What’s a latent Gaussian model? Many interesting problems in Bayesian inference can be approached via latent Gaus…

---

## [\[ANN\] NeuralEstimators.jl: Efficient simulation-based inference (SBI) using neural networks](https://discourse.julialang.org/t/ann-neuralestimators-jl-efficient-simulation-based-inference-sbi-using-neural-networks/136917)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 3\
**Last updated:** [April 30, 2026, 11:47am UTC](https://discourse.julialang.org/t/ann-neuralestimators-jl-efficient-simulation-based-inference-sbi-using-neural-networks/136917 "2026-04-30T11:47:20Z")

</div>

NeuralEstimators.jl uses neural networks for fast simulation-based inference (SBI) for any model for which simulation is feasible. It supports: Neural posterior estimation (NPE): directly learn the posterior distributi…

---

## [Stan.jl v10.8.4 Released](https://discourse.julialang.org/t/stan-jl-v10-8-4-released/136904)

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.julialang.org/u/bparbhu)\
**Replies:** 3\
**Last updated:** [April 28, 2026, 11:58pm UTC](https://discourse.julialang.org/t/stan-jl-v10-8-4-released/136904 "2026-04-28T23:58:17Z")

</div>

Stan.jl v10.8.4 Released — CmdStan 2.37 Support and Ecosystem Refresh We’re happy to announce the release of Stan.jl v10.8.4. This release brings the Stan.jl ecosystem to CmdStan 2.37, giving the Julia community access …

---

## [Compare two Turing models with LOO: SE is NaN](https://discourse.julialang.org/t/compare-two-turing-models-with-loo-se-is-nan/102269)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 7\
**Last updated:** [April 19, 2026, 1:17am UTC](https://discourse.julialang.org/t/compare-two-turing-models-with-loo-se-is-nan/102269 "2026-04-19T01:17:20Z")

</div>

I am trying to compare two SequentialSamplingModels with loo using ParetoSmooth.jl, but I think I am doing something wrong: using Turing using SequentialSamplingModels using Random using Distributions using DataFrames u…

---

## [GPU support for Turing modeling with system of ODEs](https://discourse.julialang.org/t/gpu-support-for-turing-modeling-with-system-of-odes/77410)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 8\
**Last updated:** [January 5, 2026, 7:38am UTC](https://discourse.julialang.org/t/gpu-support-for-turing-modeling-with-system-of-odes/77410 "2026-01-05T07:38:43Z")

</div>

Hello, I am trying to perform Bayesian analysis on a Turing model with an ecological ODE system embedded; consider it to be a complex variant of a Lotka-Volterra model. As of now, the code is running perfectly fine with…

---

## [ONNX Support for Turing.jl](https://discourse.julialang.org/t/onnx-support-for-turing-jl/134342)

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.julialang.org/u/bparbhu)\
**Replies:** 8\
**Last updated:** [December 5, 2025, 10:03pm UTC](https://discourse.julialang.org/t/onnx-support-for-turing-jl/134342 "2025-12-05T22:03:25Z")

</div>

Hey all, Today myself, Andreas Fehlner, and Adam Pocock made a presentation to the ONNX steering committee to propose new working groups around ONNX support for Bayesian Models from various frameworks. The working group…

---

## [Online talk – Survival Modeling with Turing.jl: A Case Study](https://discourse.julialang.org/t/online-talk-survival-modeling-with-turing-jl-a-case-study/128876)

<div class="topic-metadata">

**Author:** [@simonsteiger](https://discourse.julialang.org/u/simonsteiger)\
**Replies:** 20\
**Last updated:** [December 4, 2025, 1:08pm UTC](https://discourse.julialang.org/t/online-talk-survival-modeling-with-turing-jl-a-case-study/128876 "2025-12-04T13:08:41Z")

</div>

Hi everyone, A friend and I have been organising a seminar series on Bayesian statistics at Karolinska Institutet over the past few months. Next week, there’ll be a talk by @sunxd3 titled Survival Modeling with Turing.j…

---

## [How to mimick a Discrete Bayes Net in Turing.jl?](https://discourse.julialang.org/t/how-to-mimick-a-discrete-bayes-net-in-turing-jl/130319)

<div class="topic-metadata">

**Author:** [@nicolasg](https://discourse.julialang.org/u/nicolasg)\
**Replies:** 5\
**Last updated:** [September 23, 2025, 1:16pm UTC](https://discourse.julialang.org/t/how-to-mimick-a-discrete-bayes-net-in-turing-jl/130319 "2025-09-23T13:16:40Z")

</div>

Hi, I’ve been using Turing.jl for various purposes, and recently I thought it might be easy to mimick inference from a basic discrete bayesian network like I could do with BayesNets.jl like this for example: bn = Discr…

---

## [Extracting chains individual initial step size from Turing chain object saved (serialize) after run](https://discourse.julialang.org/t/extracting-chains-individual-initial-step-size-from-turing-chain-object-saved-serialize-after-run/130272)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 29, 2025, 8:21am UTC](https://discourse.julialang.org/t/extracting-chains-individual-initial-step-size-from-turing-chain-object-saved-serialize-after-run/130272 "2025-06-29T08:21:55Z")

</div>

Hello, I was wondering is there any way to extract individual step size for chains I run in parallel ? I tried summarize() but it just gives mean and sd value. Thank you

---

## [Online talk – The Design of Turing.jl](https://discourse.julialang.org/t/online-talk-the-design-of-turing-jl/128928)

<div class="topic-metadata">

**Author:** [@simonsteiger](https://discourse.julialang.org/u/simonsteiger)\
**Replies:** 3\
**Last updated:** [May 16, 2025, 5:53am UTC](https://discourse.julialang.org/t/online-talk-the-design-of-turing-jl/128928 "2025-05-16T05:53:09Z")

</div>

Hi again, We’re happy to announce that there’ll be yet another online talk on Turing.jl as part of Karolinska Institutet’s Learn Bayes Methods Week this Thursday, May 15, 13:00-14:00 Stockholm time! @penelopeysm will t…

---

## [\[ANN\] RxInferServer + Python SDK: Fast Inference from Python (and more)](https://discourse.julialang.org/t/ann-rxinferserver-python-sdk-fast-inference-from-python-and-more/127969)

<div class="topic-metadata">

**Author:** [@bvdmitri](https://discourse.julialang.org/u/bvdmitri)\
**Replies:** 0\
**Last updated:** [April 11, 2025, 10:21am UTC](https://discourse.julialang.org/t/ann-rxinferserver-python-sdk-fast-inference-from-python-and-more/127969 "2025-04-11T10:21:29Z")

</div>

Hi everyone, We’re excited to share that Lazy Dynamics has released a Python SDK for RxInferServer, making it easy to call high-performance RxInfer models from Python. But there’s more: RxInferServer itself is designe…

---

## [\[RELEASE\] RxInfer 4.0.0 and updated documentation](https://discourse.julialang.org/t/release-rxinfer-4-0-0-and-updated-documentation/126145)

<div class="topic-metadata">

**Author:** [@bvdmitri](https://discourse.julialang.org/u/bvdmitri)\
**Replies:** 2\
**Last updated:** [February 24, 2025, 8:40am UTC](https://discourse.julialang.org/t/release-rxinfer-4-0-0-and-updated-documentation/126145 "2025-02-24T08:40:55Z")

</div>

We are pleased to announce the release of RxInfer.jl v4.0.0, which introduces significant enhancements to our probabilistic programming framework. A bit of a background RxInfer.jl is a Julia package designed for eff…

---

## [PhD Position: Probabilistic approaches to tipping points in natural systems with application to cloud transitions](https://discourse.julialang.org/t/phd-position-probabilistic-approaches-to-tipping-points-in-natural-systems-with-application-to-cloud-transitions/124714)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 10:46am UTC](https://discourse.julialang.org/t/phd-position-probabilistic-approaches-to-tipping-points-in-natural-systems-with-application-to-cloud-transitions/124714 "2025-01-13T10:46:46Z")

</div>

Hello everyone! I would like to advertise a PhD position I got funding for, at the University of Exeter: Probabilistic approaches to tipping points in natural systems with application to cloud transitions The project …

---

## [Unable to install Mamba](https://discourse.julialang.org/t/unable-to-install-mamba/118612)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [November 18, 2024, 5:29pm UTC](https://discourse.julialang.org/t/unable-to-install-mamba/118612 "2024-11-18T17:29:39Z")

</div>

I get following unsatisfiable requirement error when installing mamba ERROR: Unsatisfiable requirements detected for package Mamba \[5424a776\]: Mamba \[5424a776\] log: ├─possible versions are: 0.12.0-0.12.5 or uninstalle…

---

## [Non-converging chains and slow runtime in Bayesian parameter estimation for wind turbine system](https://discourse.julialang.org/t/non-converging-chains-and-slow-runtime-in-bayesian-parameter-estimation-for-wind-turbine-system/122416)

<div class="topic-metadata">

**Author:** [@Alvaro98](https://discourse.julialang.org/u/Alvaro98)\
**Replies:** 7\
**Last updated:** [November 13, 2024, 7:02pm UTC](https://discourse.julialang.org/t/non-converging-chains-and-slow-runtime-in-bayesian-parameter-estimation-for-wind-turbine-system/122416 "2024-11-13T19:02:44Z")

</div>

Hello all, I’m quite new to Turing and Bayesian inference in general, and I’m trying to estimate parameters for the power coefficient Cp in a wind turbine aerodynamic model. The parametric expression for Cp has 6 parame…

---

## [Signalling towards convergence of chain/ chains in turing](https://discourse.julialang.org/t/signalling-towards-convergence-of-chain-chains-in-turing/118441)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [September 13, 2024, 8:31am UTC](https://discourse.julialang.org/t/signalling-towards-convergence-of-chain-chains-in-turing/118441 "2024-09-13T08:31:31Z")

</div>

Hello everyone :)… Based on my understanding of Turing based inference(case of NUTS). We see that during warmup time chain gets to convergence and then we collect samples. Now there are two things . when model is sim…

---

## [Whats going on in kissABC.jl package smc() function](https://discourse.julialang.org/t/whats-going-on-in-kissabc-jl-package-smc-function/119113)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [September 6, 2024, 11:57am UTC](https://discourse.julialang.org/t/whats-going-on-in-kissabc-jl-package-smc-function/119113 "2024-09-06T11:57:20Z")

</div>

Hello everyone… Im working with KissABC.jl package smc() function. Based on my reading through source code for same, it doesn’t look like classic smc() algorithm but kind of hybrid algorithm. As there is not much refer…

---

## [\[ANN-RFC\] KissABC.jl- Approximate Bayesian Computation](https://discourse.julialang.org/t/ann-rfc-kissabc-jl-approximate-bayesian-computation/40668)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 66\
**Last updated:** [September 6, 2024, 10:33am UTC](https://discourse.julialang.org/t/ann-rfc-kissabc-jl-approximate-bayesian-computation/40668 "2024-09-06T10:33:52Z")

</div>

Hi everyone i made a very self-contained package to efficiently perform Approximate Bayesian Computation, this package implements a hybrid MCMC sampler with 3 different affine invariant proposals, solving many of the sho…

---

## [RxInfer Domain Logic](https://discourse.julialang.org/t/rxinfer-domain-logic/117355)

<div class="topic-metadata">

**Author:** [@spolk](https://discourse.julialang.org/u/spolk)\
**Replies:** 3\
**Last updated:** [August 27, 2024, 12:46pm UTC](https://discourse.julialang.org/t/rxinfer-domain-logic/117355 "2024-08-27T12:46:45Z")

</div>

Hello! I am trying to modify this example from RxInfer.jl’s documentation and get an error saying I didn’t initialize marginals when two unobserved states influence multiple observable results in the domain logic in a B…

---

## [\[Turing.jl\] Understanding running times in Turing.jl? Beyond @time](https://discourse.julialang.org/t/turing-jl-understanding-running-times-in-turing-jl-beyond-time/118154)

<div class="topic-metadata">

**Author:** [@FJRubio](https://discourse.julialang.org/u/FJRubio)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 6:29pm UTC](https://discourse.julialang.org/t/turing-jl-understanding-running-times-in-turing-jl-beyond-time/118154 "2024-08-13T18:29:16Z")

</div>

This is a general question about understanding running times in sample() from Turing.jl when I know how long it takes to evaluate a custom log-likelihood function. I have a custom log-likelihood function, my\_loglik(), f…

---

## [Constrained ordered prior for ordered logistic model](https://discourse.julialang.org/t/constrained-ordered-prior-for-ordered-logistic-model/55670)

<div class="topic-metadata">

**Author:** [@Neal](https://discourse.julialang.org/u/Neal)\
**Replies:** 3\
**Last updated:** [August 2, 2024, 9:16pm UTC](https://discourse.julialang.org/t/constrained-ordered-prior-for-ordered-logistic-model/55670 "2024-08-02T21:16:47Z")

</div>

Hello, I have a task for modeling ordered discrete response outcome but I struggled to make my prior ordered for ordered logistic model so theta\[6\] \> theta\[5\] \> theta\[4\] \> theta\[3\] \> theta\[2\] \> theta\[1\]. In Stan, I can d…

---

## [Distributions.jl: how to create a mixture of a scaled Beta distribution?](https://discourse.julialang.org/t/distributions-jl-how-to-create-a-mixture-of-a-scaled-beta-distribution/117062)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 8:20pm UTC](https://discourse.julialang.org/t/distributions-jl-how-to-create-a-mixture-of-a-scaled-beta-distribution/117062 "2024-07-15T20:20:43Z")

</div>

Defining a mixture of 2 Beta distributions works as one would expect: using Distributions, GLMakie LocationScale(0.5, 1, Beta(1, 1)) d = MixtureModel( Beta\[ Beta(1, 1), Beta(2, 10)\], \[0.5, 0.5\]) xa…

---

## [\[ANN\] SliceSampling.jl - Efficient zeroth-order MCMC algorithms](https://discourse.julialang.org/t/ann-slicesampling-jl-efficient-zeroth-order-mcmc-algorithms/114756)

<div class="topic-metadata">

**Author:** [@Red-Portal](https://discourse.julialang.org/u/Red-Portal)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 2:53am UTC](https://discourse.julialang.org/t/ann-slicesampling-jl-efficient-zeroth-order-mcmc-algorithms/114756 "2024-05-27T02:53:28Z")

</div>

Hi all, As part of the Turing ecosystem, we recently created a collection of slice-sampling MCMC algorithms: Why slice sampling algorithms are great: Don’t need gradients! For low dimensional problems, they perform…

---

## [\[ANN\] JointSurvivalModels.jl - A Julia package for joint modeling of survival and longitudinal data](https://discourse.julialang.org/t/ann-jointsurvivalmodels-jl-a-julia-package-for-joint-modeling-of-survival-and-longitudinal-data/110841)

<div class="topic-metadata">

**Author:** [@Yannik](https://discourse.julialang.org/u/Yannik)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 12:16pm UTC](https://discourse.julialang.org/t/ann-jointsurvivalmodels-jl-a-julia-package-for-joint-modeling-of-survival-and-longitudinal-data/110841 "2024-02-27T12:16:25Z")

</div>

Hi JointSurvivalModels.jl is a package for Bayesian joint modeling of survival and longitudinal data. You can define distributions based on a hazard function with links to longitudinal models (and covariates). It subty…

---

## [ForwardDiff.jl returns NaNs for calculating gradient of simulation model](https://discourse.julialang.org/t/forwarddiff-jl-returns-nans-for-calculating-gradient-of-simulation-model/109796)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 12:45pm UTC](https://discourse.julialang.org/t/forwarddiff-jl-returns-nans-for-calculating-gradient-of-simulation-model/109796 "2024-02-08T12:45:28Z")

</div>

Hello, this is a follow up post to Differential evolution MCMC in Julia? I want to try HMC/Nuts (via DynamicHMC.jl or AdvancedHMC.jl) because the algorithms may be more efficient than Differential Evolution MCMC. I tr…

---

## [Status of ABC-SMC samplers in Julia](https://discourse.julialang.org/t/status-of-abc-smc-samplers-in-julia/88348)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 10\
**Last updated:** [October 6, 2023, 4:36pm UTC](https://discourse.julialang.org/t/status-of-abc-smc-samplers-in-julia/88348 "2023-10-06T16:36:51Z")

</div>

Hi, I was wondering what is the current status of ABC samplers in Julia. I have seen that GpABC.jl has a few options, but I was wondering if there are alternative packages with a special focus on SMC. I do not have some…

---

## [Compute (Bayesian) R2 for Turing models](https://discourse.julialang.org/t/compute-bayesian-r2-for-turing-models/104537)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 2\
**Last updated:** [October 3, 2023, 5:17pm UTC](https://discourse.julialang.org/t/compute-bayesian-r2-for-turing-models/104537 "2023-10-03T17:17:47Z")

</div>

Somehow my google search didn’t yield many results for how to compute R2 for Turing models. StatsBase.jl defines a few generic methods, but I was in particular interested in the so-called Bayesian R2 (Gelman et al., 201…

[Next page](https://discourse.julialang.org/tag/bayesian-inference/410.md?match_all_tags=true&page=1&tags%5B%5D=bayesian-inference)
