gabinou / 2dks Goto Github PK
View Code? Open in Web Editor NEW2 Dimensional Kolmogorov-Smirnov test for goodness-of-fit
License: MIT License
2 Dimensional Kolmogorov-Smirnov test for goodness-of-fit
License: MIT License
Thank you for making your 2D KS implementation code public!
TL;DR: For many applications, it would be helpful to decrease the default prec
parameter in the Qks
function to a value below 1e-17, instead of the current 1e-06.
In the field that I work in (astronomy), it is common to report significance in terms of the number of standard deviations away from the mean of a Normal distribution. A significance level of at least 5σ is standard practice for rejecting null hypotheses. For example, a 5σ significance correspond to a p-value of 5.733e-07.
2DKS
calculates the equivalent p-value for the 2D KS test in the Qks
function. The default precision in the convergence criterion is 1e-06, which means that the function exits and reports a p-value of 0 for equivalent significances above ~4.6σ. For many physics and astronomy applications, it would be very helpful to decrease the default prec
parameter to a lower value.
I tested the code with a range of input values and the function Qks
converges well with the default 100 iterations and prec=1e-17. This would ensure 2DKS
reports accurate p-values even for very high significance scenarios.
Thank you!
Hello,
first thank you very much for this implementation, I have looked for something similar for a very long time and this will help me a lot in my master's thesis (of course I have given credit to you for the code). I have a few questions regarding how to understand the results of two tests I have done on populations:
The results I got are, respectively:
For both prob = 0, so I can obviously reject the null hypothesis. But can I refer to this value as the p-value like when I do an univariate K-S test? Also, can I understand the difference in D value, that distribution of C is more different from A than B? Finally, does the D in your code refer to D_BKS or Z_n in the original Foseno-Franceschini paper, or to another value?
Thank you in advance for your help.
Best regards
Przemek
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.