dart_statistics library
This is the dart_statistics
library.
Currently it contains the statistics necessary for doing a chi-squared test, for comparing two distributions.
Other contributions are welcome
Functions
-
calculateChiSquaredStatistic(
List< double> observations, List<double> expectations) → Result - Calculates all terms of the chi-squared distribution
-
calculateSingleChiSquaredTerm(
double observed, double expected) → double - Calculates the difference squared divided by the expectation
-
chiCDF(
double z, int df) → double - The chi CDF (Cumulative Distribution Function)
-
chiGCF(
double x, double a) → double - The chi GCF function
-
chiGser(
double x, double a) → double - The chi Gser function
-
chiPDF(
double x, double k) → double - A chi PDF (Probability Distribution Function)
-
chiSquaredTest(
List< double> observations, List<double> expectations, {int degreesOfFreedomReduction = 1}) → Result - Runs a chi-squared test and returns the chi-squared results for each term, the total, as well as the probability
-
gamma(
double z) → double - Gamma function
-
gammaCDF(
double x, double a) → double - The gamma CDF (Cumulative Distribution Function)
-
lngamma(
double z) → double - Spouge approximation (suitable for large arguments)