kstest_2s_2d(x1, x2, alpha)

버전 1.3.0.0 (3.7 KB) 작성자: Dylan Muir
Performs a two-sample, two-tailed, two-dimensional Kolmogorov-Smirnov test, with accurate p-values
다운로드 수: 2.1K
업데이트 날짜: 2017/10/23

라이선스 보기

The two-sample Kolmogorov-Smirnov test is a statistical test used to determine whether two sets of data arise from the same or different distributions. The null hypothesis is that both data sets were drawn from the same continuous distribution. The test included here is designed to compare two-dimensional distributions.
The algorithm in this function is taken from Peacock [1].
Usage: [H, pValue, KSstatistic] = kstest_2s_2d(x1, x2 <, alpha>)
'x1' is an [Nx2] matrix, each row containing a two-dimensional sample. 'x2' is an [Mx2] matrix, each row likewise containing a two-dimensional sample. The optional argument 'alpha' is used to set the desired significance level for rejecting the null hypothesis.
'H' is a logical value: true indicates that the null hypothesis should be rejected. 'pValue' is an estimate for the P value of the test statistic. 'KSstatistic' is the raw value for the test statistic ('D' in [1]).
In contrast to kstest2, this function can only perform a two-tailed test. This is because Peacock does not provide a method for estimating P in the one-tailed case [1]. Suggestions for a one-tailed test are welcome.

References:
[1] J. A. Peacock, "Two-dimensional goodness-of-fit testing in astronomy", Monthly Notices Royal Astronomy Society 202 (1983) 615-627. Available from: http://articles.adsabs.harvard.edu/cgi-bin/nph-iarticle_query?1983MNRAS.202..615P&defaultprint=YES&filetype=.pdf

인용 양식

Dylan Muir (2024). kstest_2s_2d(x1, x2, alpha) (https://www.mathworks.com/matlabcentral/fileexchange/38617-kstest_2s_2d-x1-x2-alpha), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Hypothesis Tests에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

Fixed a bug in estimating CDFs (thanks to Arturo Ramos and Rawan El Khateeb)

1.2.0.0

Updated description
Updated description
Updated formatting
Updated description
Updated description
Updated description

1.1.0.0

Updated description and summary

1.0.0.0