# Normal distribution is symmetric
has_symmetry(dist_normal(mu = 0, sigma = 1))
has_symmetry(dist_normal(mu = 5, sigma = 2))
# Beta distribution symmetry depends on parameters
has_symmetry(dist_beta(shape1 = 2, shape2 = 2)) # symmetric
has_symmetry(dist_beta(shape1 = 2, shape2 = 5)) # not symmetric
Run the code above in your browser using DataLab