Skip to main content

PRIME: A New Measure for Variable Importance

Paper · Code and results · R package

PRIME estimates proportional global variable importance from noisy data with dependent predictors. It combines local-linear residual-variance estimation, response-relevant variable selection, and proportional allocation on the selected coordinates.

Installation

Requires Python 3.10 or newer. NumPy and SciPy are installed as dependencies.

python -m pip install prime-importance

For optional Matplotlib plots:

python -m pip install "prime-importance[plot]"

Quick example

import numpy as np
import prime

rng = np.random.default_rng(5)
X = rng.uniform(-1, 1, size=(300, 8))
y = X[:, 0] - X[:, 1] + X[:, 4] ** 2 + rng.normal(0, 0.08, size=300)

fit = prime.fit(X, y)
print(fit.selected_names)
print(fit.effects)

Use prime.screen(X, y) for selection diagnostics and prime.plot(fit) for an importance plot.

Citation

Cho, Y., and Joseph, V. R. (2026). Measuring Variable Importance Using Proportional Inclusive Marginal Effects. arXiv:2610.17053. DOI: 10.48550/arXiv.2610.17053.

Documentation and license

License: MIT. Authors: Youngseo Cho and V. Roshan Joseph.

Metadata

Release files for prime-importance 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prime-importance 0.2.1
File Size Uploaded Provenance Actions
prime_importance-0.2.1.tar.gz 418.4 kB With provenance Details for prime_importance-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prime-importance 0.2.1
File Interpreter ABI Platform Actions
prime_importance-0.2.1-py3-none-any.whl Python 3 none any Details for prime_importance-0.2.1-py3-none-any.whl

Total release size: 435.6 kB

Release files / prime_importance-0.2.1.tar.gz

Download URL prime_importance-0.2.1.tar.gz
Size 418.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2b5ac6c8a12e1c8979bdb466e3b0193ffcfb5c3b63321161ea195cbcc327220d
BLAKE2b-256 checksum
How to use checksums
eeade0c4a6293bdf38da6b4f6d20f98d8a6cc053a37997bdc0efe07708e31f7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Release files / prime_importance-0.2.1-py3-none-any.whl

Download URL prime_importance-0.2.1-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c04a3696495d1b9d47d44ed9b045c7032f604f848671220434e6aff0ed7f3642
BLAKE2b-256 checksum
How to use checksums
72989cdcc1db64d95c250860152de7fb2d6dadca983fa50529efa46654582954
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Security for prime-importance 0.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prime_importance-0.2.1.tar.gz

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 Oct 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page