Kolmogorov-Smirnov (KS) Test

40 ビュー (過去 30 日間)
nana
nana 2024 年 9 月 20 日
編集済み: Torsten 2024 年 9 月 20 日
How to find k-s test for non- normal distribution like uniform, beta,expon,Gamma, and log normal distributions.

回答 (1 件)

Torsten
Torsten 2024 年 9 月 20 日
編集済み: Torsten 2024 年 9 月 20 日
From the documentation:
h = kstest(x,Name,Value) returns a test decision for the one-sample Kolmogorov-Smirnov test with additional options specified by one or more name-value pair arguments. For example, you can test for a distribution other than standard normal, change the significance level, or conduct a one-sided test.
testcdf = makedist('Normal');
x = normrnd(100,1);
%Test whether x stems from a normal distribution (result should be "true")
h = kstest(x,'CDF',testcdf)
h = logical
1
testcdf = makedist('tlocationscale','mu',75,'sigma',10,'nu',1);
%Test whether x stems from a T Location-Scale distribution (result should be "false")
h = kstest(x,'CDF',testcdf)
h = logical
0

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by