%!demo
%! ## Compute the variance for a Multinomial distribution
%! pd = MultinomialDistribution ([0.1, 0.2, 0.3, 0.2, 0.1, 0.1]);
%! var_value = var (pd)
%!
%! ## Use this to calculate the variance, which quantifies the spread of the
%! ## outcome indices in the distribution.
