-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathStatistics.tla
18 lines (15 loc) · 989 Bytes
/
Statistics.tla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
------------------------- MODULE Statistics -------------------------
EXTENDS Naturals
ChiSquare(expected, actual, alpha) ==
(***************************************************************************)
(* Performs a Chi-square goodness of fit test evaluating the null *)
(* hypothesis that the observed counts conform to the frequency *)
(* distribution described by the expected counts, with significance level *)
(* alpha. *)
(* From: *)
(* https://commons.apache.org/proper/commons-math/javadocs/api-3.6.1/ *)
(* org/apache/commons/math3/stat/inference/ChiSquareTest.html *)
(***************************************************************************)
\* TODO: specify the ChiSquare test
TRUE
=========================================================================