-
Notifications
You must be signed in to change notification settings - Fork 2
Labels
Description
Family: Continuous Uniform
Naming: Uniform or ContinuousUniform (continuous uniform distribution).
Task
Implement the continuous uniform family as a ParametricFamily, add all parameterizations and analytical characteristics, and register the family in the registry.
Base parameterization
- Base parameters:
(a, b)with constrainta < b.
All other parameterizations must be expressed in terms of (a, b).
Other parameterizations and relations
-
Center–radius parameterization
(m, r):- Parameters:
m– center (real),r > 0– half-length.
- Relation to base:
a = m - rb = m + r
- Parameters:
-
Special case
[0, θ]parameterization(θ):- Parameter:
θ > 0. - Relation to base:
a = 0b = θ
- Parameter:
Any characteristic evaluation in alternative parameterizations should internally convert to (a, b).
Analytical characteristics (in terms of a, b)
Let n = b - a > 0.
-
pdf(x):pdf(x) = 1 / nifa <= x <= b,pdf(x) = 0otherwise.
-
cdf(x):cdf(x) = 0ifx < a,cdf(x) = (x - a) / nifa <= x <= b,cdf(x) = 1ifx > b.
-
ppf(u)(0 < u < 1):ppf(u) = a + u * n.
-
cf(t)(characteristic function):- for
t != 0:cf(t) = exp(i * t * a) * (exp(i * t * n) - 1) / (i * t * n), - for
t = 0:cf(0) = 1.
- for
-
mean:mean = (a + b) / 2.
-
var:var = n^2 / 12.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done