# 假设检验

t 检验、F 检验、卡方拟合优度检验等

Statistics and Machine Learning Toolbox™ 提供参数化假设检验和非参数化假设检验，帮助您确定样本数据是否来自具有特定特征的总体。

## 函数

 `adtest` Anderson-Darling test `chi2gof` Chi-square goodness-of-fit test `crosstab` Cross-tabulation `dwtest` Durbin-Watson test with residual inputs `fishertest` Fisher’s exact test `jbtest` Jarque-Bera test `kstest` One-sample Kolmogorov-Smirnov test `kstest2` Two-sample Kolmogorov-Smirnov test `lillietest` Lilliefors test `runstest` Run test for randomness
 `friedman` Friedman’s test `kruskalwallis` Kruskal-Wallis test `multcompare` Multiple comparison test `ranksum` Wilcoxon rank sum test `sampsizepwr` Sample size and power of test `signrank` Wilcoxon signed rank test `signtest` Sign test `ttest` 单样本和配对样本 t 检验 `ttest2` 双样本 t 检验 `ztest` z 检验
 `ansaribradley` Ansari-Bradley test `barttest` Bartlett’s test `sampsizepwr` Sample size and power of test `vartest` Chi-square variance test `vartest2` Two-sample F-test for equal variances `vartestn` Multiple-sample tests for equal variances
 `meanEffectSize` One-sample or two-sample effect size computations （自 R2022a 起） `gardnerAltmanPlot` Gardner-Altman plot for two-sample effect size （自 R2022a 起）

#### 检测漂移

 `detectdrift` Detect drifts between baseline and target data using permutation testing （自 R2022a 起）

#### 访问测试结果

 `DriftDiagnostics` Diagnostics information for batch drift detection （自 R2022a 起）

#### 检查测试结果

 `summary` Summary table for `DriftDiagnostics` object （自 R2022a 起） `ecdf` Compute empirical cumulative distribution function (ecdf) for baseline and target data specified for data drift detection （自 R2022a 起） `histcounts` Compute histogram bin counts for specified variables in baseline and target data for drift detection （自 R2022a 起） `plotDriftStatus` Plot p-values and confidence intervals for variables tested for data drift （自 R2022a 起） `plotEmpiricalCDF` Plot empirical cumulative distribution function (ecdf) of a variable specified for data drift detection （自 R2022a 起） `plotHistogram` Plot histogram of a variable specified for data drift detection （自 R2022a 起） `plotPermutationResults` Plot histogram of permutation results for a variable specified for data drift detection （自 R2022a 起）