PyRKHSstats
A Python package implementing a variety of statistical/machine learning methods that rely on kernels (e.g. HSIC for independence testing).
Overview
- Independence testing with HSIC (Hilbert-Schmidt Independence Criterion), as introduced in A Kernel Statistical Test of Independence, A. Gretton, K. Fukumizu, C. Hui Teo, L. Song, B. Schölkopf, and A. Smola (NIPS 2007).
- Measurement of conditional independence with HSCIC (Hilbert-Schmidt Conditional Independence Criterion), as introduced in A Measure-Theoretic Approach to Kernel Conditional Mean Embeddings, J. Park and K. Muandet (NeurIPS 2020).
- The Kernel-based Conditional Independence Test (KCIT), as introduced in Kernel-based Conditional Independence Test and Application in Causal Discovery, K. Zhang, J. Peters, D. Janzing, B. Schölkopf (UAI 2011).
- Two-sample testing (also known as homogeneity testing) with the MMD (Maximum Mean Discrepancy), as presented in A Fast, Consistent Kernel Two-Sample Test, A. Gretton, K. Fukumizu, Z. Harchaoui, and B. K. Sriperumbudur (NIPS 2009) and in A Kernel Two-Sample Test, A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Schölkopf, and A. Smola (JMLR, volume 13, 2012).
| Resource | Description |
|---|---|
| HSIC | For independence testing |
| HSCIC | For the measurement of conditional independence |
| KCIT | For conditional independence testing |
| MMD | For two-sample testing |
Implementations available
The following table details the implementation schemes for the different resources available in the package.
| Resource | Implementation Scheme | Numpy based available | PyTorch based available |
|---|---|---|---|
| HSIC | Resampling (permuting the xi's but leaving the yi's unchanged) | Yes | No |
| HSIC | Gamma approximation | Yes | No |
| HSCIC | N/A | Yes | Yes |
| KCIT | Gamma approximation | Yes | No |
| KCIT | Monte Carlo simulation (weighted sum of χ2 random variables) | Yes | No |
| MMD | Gram matrix spectrum | Yes | No |
In development
- Joint independence testing with dHSIC.
- Goodness-of-fit testing.
- Methods for time series models.
- Bayesian statistical kernel methods.
- Regression by independence maximisation.
Metadata
Release files for PyRKHSstats 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyRKHSstats-2.1.0.tar.gz | 28.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyRKHSstats-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.4 kB
Release files / PyRKHSstats-2.1.0.tar.gz
| Download URL | PyRKHSstats-2.1.0.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11ea1962bb4c0796f798c7e2218b6badaf4b9b980feb7a743628947a45d576c5
|
|
BLAKE2b-256 checksum How to use checksums |
687f01cf21d15ef653abdd9c7bb00fb772467c8618cf19ba38944f833c4f224b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
|
Release files / PyRKHSstats-2.1.0-py3-none-any.whl
| Download URL | PyRKHSstats-2.1.0-py3-none-any.whl |
|---|---|
| Size | 54.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b130d5f14f3a98faf098489c59718ec09422612e2b6be05bd1b75a2655cd2677
|
|
BLAKE2b-256 checksum How to use checksums |
c4575c7054ed7e3b018f1166b57315bbc7722059b15fb05b03eb168a1ab28ecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
|