prbnmcn-stats

Basic statistics
Library prbnmcn-stats
Module Stats . Emp . Rational
type r = Q.t

r is the type representing real numbers.

val empirical_mean : r t -> r

empirical_mean dist computes the empirical mean (or sample mean) of dist.

val empirical_mean_generic : (module Basic_structures.Basic_intf.Module with type t = 'elt and type R.t = r) -> 'elt t -> 'elt

empirical_mean_generic mod dist computes the empirical mean (or sample mean) of dist. This functions works on empirical distributions over arbitrary r-modules.

val empirical_variance : r t -> r

empirical_variance dist computes the (uncorrected) empirical variance associated to dist.