multinomial.mli 592 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
(** Two-sample multinomial tests *)

type data

val data :
  x1:int array ->
  x2:int array ->
  data

type result = {
  _T_ : float ;
  pvalue : float ;
}

module LRT : sig
  val likelihood_log_ratio : data -> float
  val asymptotic_test : data -> result
  val simulation_test : ?sample_size:int -> data -> result
end

module Sparse : sig
  val likelihood_log_ratio : data -> float
  val asymptotic_test : data -> result
  val simulation_test : ?sample_size:int -> data -> result
end

val uniformity_test :
  k:int ->
  n1:int ->
  n2:int ->
  (data -> result) ->
  unit

val example : data