![[Experimental]](figures/lifecycle-experimental.svg)
Determines whether a probability distribution is symmetric around its center.
Arguments
- x
The distribution(s).
- ...
Additional arguments used by methods.
Value
A logical value indicating whether the distribution is symmetric.
Examples
# Normal distribution is symmetric
has_symmetry(dist_normal(mu = 0, sigma = 1))
#> [1] TRUE
has_symmetry(dist_normal(mu = 5, sigma = 2))
#> [1] TRUE
# Beta distribution symmetry depends on parameters
has_symmetry(dist_beta(shape1 = 2, shape2 = 2)) # symmetric
#> [1] TRUE
has_symmetry(dist_beta(shape1 = 2, shape2 = 5)) # not symmetric
#> [1] FALSE