32 #ifndef HYPOTHESIS_HPP
33 #define HYPOTHESIS_HPP
68 double populationMean);
77 const std::vector<double> &sample2);
84 static double ANOVA(
const std::vector<std::vector<double>> &samples);
94 const std::vector<std::vector<double>> &expected);
113 const std::vector<double> &sample2);
122 const std::vector<double> &sample2);
129 static double fisher_test(
const std::vector<std::vector<int>> &table);
138 const std::vector<double> &sample2);
147 const std::vector<double> &sample2);
162 static double runs_test(
const std::vector<bool> &sequence);
A class for conducting various statistical hypothesis tests.
static int factorial(int n)
Helper method to calculate factorial.
~HypothesisTest()
Destructor.
static double fisher_test(const std::vector< std::vector< int >> &table)
Fisher's Exact Test.
static double mann_whitney_test(const std::vector< double > &sample1, const std::vector< double > &sample2)
Mann-Whitney U test.
static double two_sample_ttest(const std::vector< double > &sample1, const std::vector< double > &sample2)
Two-sample t-test.
static double chi_square_test(const std::vector< std::vector< int >> &observed, const std::vector< std::vector< double >> &expected)
Chi-square test of independence.
static double runs_test(const std::vector< bool > &sequence)
Runs Test.
static double kol_smirnov_test(const std::vector< double > &sample1, const std::vector< double > &sample2)
Kolmogorov-Smirnov Test.
static double ANOVA(const std::vector< std::vector< double >> &samples)
Analysis of Variance (ANOVA)
static double one_sample_ttest(const std::vector< double > &sample, double populationMean)
One-sample t-test.
static double proportion_z_test(double p1, double p2, double n1, double n2)
Z-test for proportions.
HypothesisTest()
Constructor.
static double kruskal_wallis_test(const std::vector< std::vector< double >> &samples)
Kruskal-Wallis Test.
static double wilcoxon_rank_test(const std::vector< double > &sample1, const std::vector< double > &sample2)
Wilcoxon signed-rank test.
static double wilcoxon_rank_sum_test(const std::vector< double > &sample1, const std::vector< double > &sample2)
Wilcoxon Rank Sum Test (Mann-Whitney U Test)
The source C++ openGPMP namespace.