# \#probability

**URL:** https://discourse.julialang.org/tag/probability/684.md

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

---

## [\[ANN\] VineCopulas.jl: C-vines, D-vines, and experimental R-vines in Julia](https://discourse.julialang.org/t/ann-vinecopulas-jl-c-vines-d-vines-and-experimental-r-vines-in-julia/137930)

<div class="topic-metadata">

**Author:** [@Santymax98](https://discourse.julialang.org/u/Santymax98)\
**Replies:** 23\
**Last updated:** [September 12, 2026, 1:02pm UTC](https://discourse.julialang.org/t/ann-vinecopulas-jl-c-vines-d-vines-and-experimental-r-vines-in-julia/137930 "2026-09-12T13:02:52Z")

</div>

Hi everyone, I’m happy to announce that VineCopulas.jl is now registered in the Julia General registry. VineCopulas.jl is a pure-Julia package for explicit vine copula models, built on top of Copulas.jl. The current re…

---

## [\[ANN\] AdditionalDistributions.jl — Extending Distributions.jl with Advanced Probability Models](https://discourse.julialang.org/t/ann-additionaldistributions-jl-extending-distributions-jl-with-advanced-probability-models/133531)

<div class="topic-metadata">

**Author:** [@Santymax98](https://discourse.julialang.org/u/Santymax98)\
**Replies:** 8\
**Last updated:** [August 25, 2026, 7:32pm UTC](https://discourse.julialang.org/t/ann-additionaldistributions-jl-extending-distributions-jl-with-advanced-probability-models/133531 "2026-08-25T19:32:38Z")

</div>

We are pleased to announce the release of AdditionalDistributions.jl — a registered Julia package extending the capabilities of Distributions.jl. This package provides a research-grade collection of additional probabili…

---

## [Trying Julia for Analytic combinatorics](https://discourse.julialang.org/t/trying-julia-for-analytic-combinatorics/103682)

<div class="topic-metadata">

**Author:** [@fargolo](https://discourse.julialang.org/u/fargolo)\
**Replies:** 10\
**Last updated:** [July 9, 2026, 10:22pm UTC](https://discourse.julialang.org/t/trying-julia-for-analytic-combinatorics/103682 "2026-07-09T22:22:11Z")

</div>

Hello, fellow colleagues in the Julia community. This question may not be a good fit for the Julia Discourse, but any help is appreciated. I was exploring Analytic Combinatorics (by Flajolet & Sedgewick). The part abou…

---

## [\[ANN\] AdditionalDistributions.jl v0.2.1 — Multivariate Gaussian and Student-t CDFs, benchmarks, and ecosystem examples](https://discourse.julialang.org/t/ann-additionaldistributions-jl-v0-2-1-multivariate-gaussian-and-student-t-cdfs-benchmarks-and-ecosystem-examples/137895)

<div class="topic-metadata">

**Author:** [@Santymax98](https://discourse.julialang.org/u/Santymax98)\
**Replies:** 0\
**Last updated:** [July 1, 2026, 3:57pm UTC](https://discourse.julialang.org/t/ann-additionaldistributions-jl-v0-2-1-multivariate-gaussian-and-student-t-cdfs-benchmarks-and-ecosystem-examples/137895 "2026-07-01T15:57:31Z")

</div>

Hi everyone, I’m happy to announce AdditionalDistributions.jl v0.2.1. AdditionalDistributions.jl extends the Distributions.jl ecosystem with additional univariate and multivariate probability distributions. This annou…

---

## [\[ANN\]: PhaseTypeDistributions.jl, PhaseTypeDistributionsFitting.jl (and FixedSparsityMatrices.jl)](https://discourse.julialang.org/t/ann-phasetypedistributions-jl-phasetypedistributionsfitting-jl-and-fixedsparsitymatrices-jl/137631)

<div class="topic-metadata">

**Author:** [@yoninazarathy](https://discourse.julialang.org/u/yoninazarathy)\
**Replies:** 1\
**Last updated:** [June 25, 2026, 10:27am UTC](https://discourse.julialang.org/t/ann-phasetypedistributions-jl-phasetypedistributionsfitting-jl-and-fixedsparsitymatrices-jl/137631 "2026-06-25T10:27:55Z")

</div>

We’re happy to announce two new packages for phase-type (PH) distributions, plus a supporting third package for structured matrices (which may be useful in its own right). A phase-type distribution is the distribution o…

---

## [In ComplexityMeasures.jl, is there a way to use elements of an OutcomeSpace as keys for Probabilities?](https://discourse.julialang.org/t/in-complexitymeasures-jl-is-there-a-way-to-use-elements-of-an-outcomespace-as-keys-for-probabilities/132038)

<div class="topic-metadata">

**Author:** [@mikhael](https://discourse.julialang.org/u/mikhael)\
**Replies:** 0\
**Last updated:** [September 1, 2025, 9:57pm UTC](https://discourse.julialang.org/t/in-complexitymeasures-jl-is-there-a-way-to-use-elements-of-an-outcomespace-as-keys-for-probabilities/132038 "2025-09-01T21:57:09Z")

</div>

Suppose I build a Probabilities object Prs from a vector x like so: using ComplexityMeasures x = rand(\[true, false\], 10) Prs, outs = allprobabilities\_and\_outcomes(UniqueElements(), x) I would like to have a Dict-like…

---

## [Package for Non-Parametric Multivariate Discrete Distributions](https://discourse.julialang.org/t/package-for-non-parametric-multivariate-discrete-distributions/125046)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 3\
**Last updated:** [January 27, 2025, 6:48am UTC](https://discourse.julialang.org/t/package-for-non-parametric-multivariate-discrete-distributions/125046 "2025-01-27T06:48:29Z")

</div>

I’m looking for a package that implements tools for working with non-parametric multivariate discrete distributions. Ideally, this would look something like a Multivariate version of DiscreteNonParametric in Distribution…

---

## [Package for Mixed Discrete Continuous Joint Distributions](https://discourse.julialang.org/t/package-for-mixed-discrete-continuous-joint-distributions/125048)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 0\
**Last updated:** [January 21, 2025, 9:47pm UTC](https://discourse.julialang.org/t/package-for-mixed-discrete-continuous-joint-distributions/125048 "2025-01-21T21:47:01Z")

</div>

I’m looking for a package that implements tools for working with mixed multivariate discrete continuous joint distributions. A simple wikipedia definition of this can be found at https://en.wikipedia.org/wiki/Joint\_proba…

---

## [Optimizing a puzzle from the Balatro game: discarding part of a poker hand to get a pair](https://discourse.julialang.org/t/optimizing-a-puzzle-from-the-balatro-game-discarding-part-of-a-poker-hand-to-get-a-pair/121912)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 14\
**Last updated:** [October 30, 2024, 12:55am UTC](https://discourse.julialang.org/t/optimizing-a-puzzle-from-the-balatro-game-discarding-part-of-a-poker-hand-to-get-a-pair/121912 "2024-10-30T00:55:22Z")

</div>

Interesting problem from Balatro, from a hand of 8 without any pairs, if you discard n and draw n from the remaining deck of 44 cards. What’s the optimum n to maximize your chance of obtaining at least a pair? I am sure…

---

## [Multivariate Student's T distribution?](https://discourse.julialang.org/t/multivariate-students-t-distribution/119676)

<div class="topic-metadata">

**Author:** [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Replies:** 5\
**Last updated:** [September 23, 2024, 4:05pm UTC](https://discourse.julialang.org/t/multivariate-students-t-distribution/119676 "2024-09-23T16:05:47Z")

</div>

Does there exist any active implementations of a multivariate Student’s T distribution? I need one for a model I am implementing but the only information I could find was from a multi year old issue on the Distributions.…

---

## [Time-series analysis - Probabilistic inference on RQA ( SymbolicInference.jl)](https://discourse.julialang.org/t/time-series-analysis-probabilistic-inference-on-rqa-symbolicinference-jl/114701)

<div class="topic-metadata">

**Author:** [@fargolo](https://discourse.julialang.org/u/fargolo)\
**Replies:** 0\
**Last updated:** [May 24, 2024, 8:15pm UTC](https://discourse.julialang.org/t/time-series-analysis-probabilistic-inference-on-rqa-symbolicinference-jl/114701 "2024-05-24T20:15:40Z")

</div>

How it started The SymbolicInference.jl package uses Analytic Combinatorics to perform probabilistic inference over certain combinatorial classes. The first application is explained in this white paper Probabilistic in…

---

## [Book on probability distributions?](https://discourse.julialang.org/t/book-on-probability-distributions/101977)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 6\
**Last updated:** [July 26, 2023, 2:16am UTC](https://discourse.julialang.org/t/book-on-probability-distributions/101977 "2023-07-26T02:16:29Z")

</div>

I discovered a book online a while back that specifically was about probability distributions the connections between them and some generalized forms that captured big families of distributions. I believe someone linked …

---

## [Introduction to Probability for Data Science: collaborative effort to translate code to Julia](https://discourse.julialang.org/t/introduction-to-probability-for-data-science-collaborative-effort-to-translate-code-to-julia/69614)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 29\
**Last updated:** [July 23, 2023, 1:05pm UTC](https://discourse.julialang.org/t/introduction-to-probability-for-data-science-collaborative-effort-to-translate-code-to-julia/69614 "2023-07-23T13:05:38Z")

</div>

There is a collaborative effort underway to translate to Julia the Python and Matlab code that accompanies Stanley H. Chan’s textbook Introduction to Probability for Data Science. This effort is authorized by Dr. Chan. T…

---

## [How to intrepret the results from the 'cdf()\` and \`quantile()\` function?](https://discourse.julialang.org/t/how-to-intrepret-the-results-from-the-cdf-and-quantile-function/99354)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 1\
**Last updated:** [May 24, 2023, 11:12pm UTC](https://discourse.julialang.org/t/how-to-intrepret-the-results-from-the-cdf-and-quantile-function/99354 "2023-05-24T23:12:55Z")

</div>

Hey, folks I’d like some help understanding the cdf and quantile functions. Let x \\in \\mathbb{R}^n be a data vector. using Random Random.seed!(12345) x = rand(Uniform(100, 500), 10000) Now, I want to calculate the c…

---

## [How can I combine different density plots in a 3D plot?](https://discourse.julialang.org/t/how-can-i-combine-different-density-plots-in-a-3d-plot/96194)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 8\
**Last updated:** [March 20, 2023, 10:36pm UTC](https://discourse.julialang.org/t/how-can-i-combine-different-density-plots-in-a-3d-plot/96194 "2023-03-20T22:36:15Z")

</div>

Hi all! I’m analyzing some data that follows a more-or-less-linear dependency. Here’s a picture: I’d like to show the dispersion around the mean for each of the vertical bins you see. What I need is (I think) the den…

---

## [Characteristic Functions --\> pdf using fft?](https://discourse.julialang.org/t/characteristic-functions-pdf-using-fft/91060)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 11\
**Last updated:** [December 5, 2022, 1:16pm UTC](https://discourse.julialang.org/t/characteristic-functions-pdf-using-fft/91060 "2022-12-05T13:16:04Z")

</div>

I have to work on a problem that requires me to use characteristic functions to represent random variables, as these particular rv’s have no close form distribution. The last time I did something remotely similar was at …

---

## [Why does Julia 1.6.5 and 1.7.1 generate differnent random values using the same seed?](https://discourse.julialang.org/t/why-does-julia-1-6-5-and-1-7-1-generate-differnent-random-values-using-the-same-seed/84482)

<div class="topic-metadata">

**Author:** [@etorkia](https://discourse.julialang.org/u/etorkia)\
**Replies:** 4\
**Last updated:** [July 19, 2022, 9:02pm UTC](https://discourse.julialang.org/t/why-does-julia-1-6-5-and-1-7-1-generate-differnent-random-values-using-the-same-seed/84482 "2022-07-19T21:02:11Z")

</div>

I found that if you start a fresh session in both 1.6.5. and 1.7.1 you get different results. I found this glitch while running doctests… and I will never be able to run Documenter.jl with this kind of craziness. using …

---

## [Using Turing for MCMC estimation](https://discourse.julialang.org/t/using-turing-for-mcmc-estimation/84137)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 4\
**Last updated:** [July 13, 2022, 6:30am UTC](https://discourse.julialang.org/t/using-turing-for-mcmc-estimation/84137 "2022-07-13T06:30:38Z")

</div>

Hi, I am new to Turing PPL. I have a random variable X which is Gamma distributed, i.e., X ~Ga(α, β). And the scale β parameter of X is also obeys a Gamma law, namely, β ~ Ga(α0, β0). Then I want to infer the above par…

---

## [\[Turing\] Using a random variable as an index](https://discourse.julialang.org/t/turing-using-a-random-variable-as-an-index/66756)

<div class="topic-metadata">

**Author:** [@a\_garval](https://discourse.julialang.org/u/a_garval)\
**Replies:** 2\
**Last updated:** [November 8, 2021, 11:46am UTC](https://discourse.julialang.org/t/turing-using-a-random-variable-as-an-index/66756 "2021-11-08T11:46:21Z")

</div>

Hey everyone, I’m trying to run some examples from Bayesian Methods for Hackers. The example I’m working on is a simple Poisson model. I want to go further and investigate if we could find different a specific day on whi…

---

## [On beauty of Distributions.jl pdf interface](https://discourse.julialang.org/t/on-beauty-of-distributions-jl-pdf-interface/67895)

<div class="topic-metadata">

**Author:** [@thisismygitrepo](https://discourse.julialang.org/u/thisismygitrepo)\
**Replies:** 20\
**Last updated:** [September 14, 2021, 11:18am UTC](https://discourse.julialang.org/t/on-beauty-of-distributions-jl-pdf-interface/67895 "2021-09-14T11:18:51Z")

</div>

Julia is often touted for its syntax that resembles math notation. I have a kind of objection here. Getting values of this density function with this syntax is awkward to say the least. Shouldn’t this be simply p(0:0…

---

## [Truncated Poisson Distribution probs not adding up to one](https://discourse.julialang.org/t/truncated-poisson-distribution-probs-not-adding-up-to-one/61053)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 1\
**Last updated:** [August 28, 2021, 4:50am UTC](https://discourse.julialang.org/t/truncated-poisson-distribution-probs-not-adding-up-to-one/61053 "2021-08-28T04:50:39Z")

</div>

using Distributions λ = 2.0; #Poisson parameter zp = 0.4; #zero prob. dpoi = Poisson(λ) dzip = MixtureModel(\[Dirac(0.0), dpoi\], \[zp, 1.0-zp\]) #ZeroInflated ZIP dztp = Truncated(dpoi, 1, Inf) #Ze…

---

## [How can I avoid insatisfient random variable in Turing.jl?](https://discourse.julialang.org/t/how-can-i-avoid-insatisfient-random-variable-in-turing-jl/66397)

<div class="topic-metadata">

**Author:** [@dddd1007](https://discourse.julialang.org/u/dddd1007)\
**Replies:** 2\
**Last updated:** [August 19, 2021, 2:52am UTC](https://discourse.julialang.org/t/how-can-i-avoid-insatisfient-random-variable-in-turing-jl/66397 "2021-08-19T02:52:41Z")

</div>

Hi! I want to ask how to keep the suitable beta distribution parameters in the HMM model in Turing.jl . The details as follow: I am trying to implement Bayesian Learner Model of Tim Behrens. It’s a model like this: W…

---

## [Selecting best DAG from the family of DAGs based on AIC score](https://discourse.julialang.org/t/selecting-best-dag-from-the-family-of-dags-based-on-aic-score/62611)

<div class="topic-metadata">

**Author:** [@ashwanimalviya](https://discourse.julialang.org/u/ashwanimalviya)\
**Replies:** 6\
**Last updated:** [June 10, 2021, 6:11am UTC](https://discourse.julialang.org/t/selecting-best-dag-from-the-family-of-dags-based-on-aic-score/62611 "2021-06-10T06:11:46Z")

</div>

Thank you @Jeff Erlich for your suggestion to post my question on discourse. I would like to say to the Julia community here, I have posted a question(In the link) and have one more block regarding this Slack issue. I h…
