Main Content

假设检验

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

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

分布检验(如安德森-达林检验和单样本柯尔莫哥洛夫-斯米尔诺夫检验)可以检验样本数据是否来自具有特定分布的总体。双样本柯尔莫哥洛夫-斯米尔诺夫检验可以检验两组样本数据是否具有相同的分布。

位置检验(如 z 检验和单样本 t 检验)可以检验样本数据是否来自具有特定均值或中位数的总体。双样本 t 检验或多重比较检验可以检验两组或多组样本数据是否具有相同的位置值。

散度检验(如卡方方差检验)可以检验样本数据是否来自具有特定方差的总体。双样本 F 检验或多样本检验可以比较两个或多个样本数据集的方差。

通过交叉表分析和随机性游程检验确定样本数据的其他特征,并确定假设检验的样本大小和幂。

函数

全部展开

adtestAnderson-Darling test
chi2gofChi-square goodness-of-fit test
crosstabCross-tabulation
dwtestDurbin-Watson test with residual inputs
fishertestFisher’s exact test
jbtestJarque-Bera test
kstestOne-sample Kolmogorov-Smirnov test
kstest2Two-sample Kolmogorov-Smirnov test
lillietestLilliefors test
runstestRun test for randomness
friedmanFriedman’s test
kruskalwallisKruskal-Wallis test
multcompareMultiple comparison test
ranksum威尔科克森秩和检验
sampsizepwrSample size and power of test
signrankWilcoxon signed rank test
signtestSign test
ttest单样本和配对样本 t 检验
ttest2双样本 t 检验
ztestz 检验
ansaribradleyAnsari-Bradley test
barttestBartlett’s test
sampsizepwrSample size and power of test
vartestChi-square variance test
vartest2Two-sample F-test for equal variances
vartestn Multiple-sample tests for equal variances
meanEffectSizeOne-sample or two-sample effect size computations (自 R2022a 起)
gardnerAltmanPlotGardner-Altman plot for two-sample effect size (自 R2022a 起)

检测漂移

detectdriftDetect drifts between baseline and target data using permutation testing (自 R2022a 起)

访问测试结果

DriftDiagnosticsDiagnostics information for batch drift detection (自 R2022a 起)

检查测试结果

summarySummary table for DriftDiagnostics object (自 R2022a 起)
ecdfCompute empirical cumulative distribution function (ecdf) for baseline and target data specified for data drift detection (自 R2022a 起)
histcountsCompute histogram bin counts for specified variables in baseline and target data for drift detection (自 R2022a 起)
plotDriftStatusPlot p-values and confidence intervals for variables tested for data drift (自 R2022a 起)
plotEmpiricalCDFPlot empirical cumulative distribution function (ecdf) of a variable specified for data drift detection (自 R2022a 起)
plotHistogramPlot histogram of a variable specified for data drift detection (自 R2022a 起)
plotPermutationResultsPlot histogram of permutation results for a variable specified for data drift detection (自 R2022a 起)

主题