Module Ppl__.Evaluation
type 'a samples= 'a Ppl.Empirical.Discrete.ttype 'a dist= 'a Ppl.Dist.dist
KL-Divergence
val kl_discrete : ?n:int -> 'a Ppl.Primitive.t -> 'a dist -> floatFind the KL divergence for two discrete distributions
val kl_continuous : ?n:int -> float Ppl.Primitive.t -> float dist -> floatFind the KL divergence for two continuous distributions
val kl_cum_discrete : int array -> bool Ppl.Primitive.t -> bool dist -> (int * float) arrayval kl_cum_continuous : int array -> float Ppl.Primitive.t -> float dist -> (int * float) array
Hypothesis Tests
val kolmogorov_smirnov : ?n:int -> ?alpha:float -> float dist -> float Ppl.Primitive.t -> Owl_stats.hypothesisPerform kolmogorov smirnov test, returns a
hypothesiswhich is true if the null hypothesis is rejected
val chi_sq : ?n:int -> ?alpha:float -> 'a dist -> 'a Ppl.Primitive.t -> Owl_stats.hypothesisPerform chi-squared test, returns a
hypothesiswhich is true if the null hypothesis is rejected