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.
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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP