TransWikia.com

Domain of ProbabilityDistributions

Mathematica Asked by meneken17 on September 3, 2020

I am trying to do some symbolic statistics.
Is there a way to get the Domain of a distribution?
Like this

Domain[UniformDistribution[]]
>> 0<=x<=1

Domain[BinomialDistribution[n,p]]
>> 0 <= x <= n && x [elem] Integers

I assume that some kind of function like this is used by Expectation and other descriptive statiscal function.

One Answer

Use DistributionDomain[]. It's lacking documentation apparently:

DistributionDomain[TriangularDistribution[{a, b}]]
(* Interval[{a, b}] *)

DistributionDomain[NormalDistribution[m, s]]
(* Interval[{-∞, ∞}] *)

DistributionDomain[ParetoDistribution[a, 1]]
(* Interval[{a, ∞}] *)

DistributionDomain[CategoricalDistribution[{"cow", "chicken", "potato"}]]
(* {"cow", "chicken", "potato"} *)

Correct answer by flinty on September 3, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP