syrte / ndtest Goto Github PK
View Code? Open in Web Editor NEWmulti-dimensional statistical test with python
License: MIT License
multi-dimensional statistical test with python
License: MIT License
Hello,
can you please explain, what is the meaning of p value as output of ks2d2s ?
Thanks.
Hello!
Thanks a lot for python implementation of 2D KS test, it is really helpful!
I also tried to use estat2d, but seems it does not work even for the example given on main page.
Changing ks2d2s to estat2d:
# generate mock samples for the test
np.random.seed(42)
x1, y1 = np.random.randn(2, 100)
x2, y2 = np.random.randn(2, 100) # same distribution as (x1, y1)
p,en,en_boot = estat2d(x1, y1, x2, y2)
print(f"{p=:.3g}")
raises an error:
p = (en_boot >= en).sum() / nboot
TypeError: '>=' not supported between instances of 'float' and 'NoneType'
UPD: It was wrong from my side. The function is actually working.
This code works for 2 dimensions. Can it be expanded to work for arbitrary number of dimensions, like over 100?
Can you please share an example on how to pass the input. On passing two 2D matrices, I am getting the error: TypeError: ks2d2s() takes at least 4 arguments (2 given).
I just found your code. Thanks for sharing it!
I would like to use it, but you don't have a license in the repo. Could you please add a license?
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.