mcd-regression
Python implementation of robust linear regression in the multiple regression and multivariate regression cases using the minimum covariance determinant (MCD).
Usage (docs/examples/example.ipynb):
>>> from mcd_regression import MCDRegression
>>> mcdr = MCDRegression()
>>> x = data[:, 0, None] # n x d_x, must be 2D
>>> y = data[:, 1:] # n x d_y, must be 2D
>>> mcdr.fit(x, y)
>>> residuals = y - mcdr.predict(x)
>>> slope = mcdr.beta
>>> intercept = mcdr.alpha
Installation:
- Available via PyPI as
mcd-regression
$ python -m pip install mcd-regression
- Development
$ git clone https://github.com/stevenstetzler/mcd_regression.git
$ python -m pip install -e mcd_regression
References:
- Peter J Rousseeuw, Stefan Van Aelst, Katrien Van Driessen & Jose A Gulló (2004) Robust Multivariate Regression, Technometrics, 46:3, 293-305, DOI: 10.1198/004017004000000329
Metadata
Release files for mcd-regression 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcd_regression-0.1.1.tar.gz | 75.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcd_regression-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.1 kB
Release files / mcd_regression-0.1.1.tar.gz
| Download URL | mcd_regression-0.1.1.tar.gz |
|---|---|
| Size | 75.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fc968c123fa22420c5147ffcd0437b87216ff4ccbe9848857dd37b62343444a
|
|
BLAKE2b-256 checksum How to use checksums |
9ad0514260b92180374202f4c85b1855d4e859443b991b218c4a358a4b2660e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2025.
Transparency logRelease files / mcd_regression-0.1.1-py3-none-any.whl
| Download URL | mcd_regression-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b19eaad8503ad200f046d0a39b521658ffca28f9efe998ee7f4fae80c2a69c10
|
|
BLAKE2b-256 checksum How to use checksums |
98684c5432959dda3990238e995d8da4c039c900f497de11d3693d7ea5831f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2025.
Transparency log