Skip to main content

Inferential Analysis

The book "Validity, Reliability, and Significance: Empirical Methods for NLP and Data Science", written by Stefan Riezler and Michael Hagmann, uses the inferential analysis module found at https://github.com/StatNLP/empirical_methods to conduct inferential reproducibility analyses.

The aim of this project is to offer functionality similar to that of the original inferential_analysis module, but without depending on R and lme4.

Installation

The library can be found on PyPI.

# pip
pip install inferential-analysis

# uv
uv add inferential-analysis

Usage Examples

The usage examples are based on this Jupyter notebook and can be found in the examples directory of the repository.

Limitations

Reliability

The current library does not allow analyzing per-example variance components (see issue #4). In case that is required, you can fall back to R and lme4 like so:

library(lme4)
data <- read.csv("evaluation_data/aghajanyan_cnn-all.csv")
model <- lmer(
  rouge_2 ~ 1 + (1|seed) + (1|distribution) + (1|lambda) + (1|summary_id),
  data = data[data$system == "SOTA",]
)
summary(model)

Additional Information

License

In accordance with the original implementation this library is licensed under the Apache 2.0 license.

Metadata

Release files for inferential-analysis 2.0.0

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

Source distribution (sdist)

Source distribution for inferential-analysis 2.0.0
File Size Uploaded Provenance Actions
inferential_analysis-2.0.0.tar.gz 14.7 kB With provenance Details for inferential_analysis-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inferential-analysis 2.0.0
File Interpreter ABI Platform Actions
inferential_analysis-2.0.0-py3-none-any.whl Python 3 none any Details for inferential_analysis-2.0.0-py3-none-any.whl

Total release size: 31.8 kB

Release files / inferential_analysis-2.0.0.tar.gz

Download URL inferential_analysis-2.0.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bf3380c12f82975dd89de04bb288229166824ebac0a76549a97d097ccf5f5efc
BLAKE2b-256 checksum
How to use checksums
7f1b6db6210780f83e81fefa775b67ed9d5ce8cfc2685e239eae6f574aab1ae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 18, 2026.

Transparency log

Release files / inferential_analysis-2.0.0-py3-none-any.whl

Download URL inferential_analysis-2.0.0-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f14c20caf62b7ba9934303852d1b625c9fb0830aaf16b65db3da16be36e66c06
BLAKE2b-256 checksum
How to use checksums
9a505fc31b366d3992e5fc4e4c3a4c18d63b24a7b9dc251951c6ffc570c52498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 18, 2026.

Transparency log

Security for inferential-analysis 2.0.0

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 inferential_analysis-2.0.0.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 Jun 18, 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

2.0.0 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