Skip to main content

pAUC Logo

pAUC: A simple Python package to calculate ROC AUC confidence intervals using DeLong’s method

pAUC is an intuitive Python library for creating, comparing, and visualizing Receiver Operating Characteristic (ROC) curves. It provides a clean, object-oriented interface designed for rigorous statistical analysis of binary and multi-class classifiers.

The library is built for researchers and data scientists who need reliable statistical tests and publication-quality plots with minimal effort. It implements several key methods for comparing models, and calculating confidence intervals.


Key Features 🔬

  • ROC Curve Generation: Easily create ROC objects from true labels and prediction scores.
  • Statistical Comparison: Compare two ROC curves using multiple methods:
    • DeLong's test for correlated or uncorrelated curves.
    • Bootstrap-based tests for flexible comparisons.
    • Venkatraman's test for a non-parametric alternative.
  • Confidence Intervals: Calculate CIs for AUC, partial AUC, and coordinates (sensitivity/specificity) using bootstrapping or DeLong's method.
  • Partial AUC (pAUC): Analyze specific regions of the ROC curve, focusing on high specificity or high sensitivity.
  • Multi-Class Analysis: Native support for one-vs-one multi-class ROC analysis using Hand & Till's method.
  • Curve Smoothing: Smooth ROC curves using polynomial or binormal methods.
  • Plotting: A simple but powerful plotting function to visualize and annotate one or more curves.

Installation 💻

To install the package, clone the repository and use pip to install it in your local environment.

git clone https://github.com/srijitseal/pauc.git
cd pauc
pip install .

For development, you can install it in "editable" mode, which links the installation to your source files:

pip install -e .

pAUC requires the following packages:

  • numpy
  • scipy
  • matplotlib

Contributing

Contributions are welcome! Whether it's bug reports, feature requests, or code contributions, please feel free to open an issue or pull request on our GitHub repository.


License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for pauc 0.2.2

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

Source distribution (sdist)

Source distribution for pauc 0.2.2
File Size Uploaded
pauc-0.2.2.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pauc 0.2.2
File Interpreter ABI Platform
pauc-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 26.9 kB

Release files / pauc-0.2.2.tar.gz

Download URL pauc-0.2.2.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
22fed1c6ca97d4e0c676e96148ec17e4afde9ef06c879fb76d6d6f1409d6480f
BLAKE2b-256 checksum
How to use checksums
baea35f41586daf7f69dbb0c3ac75a4047798c3d76f7fc39999af27336520a04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / pauc-0.2.2-py3-none-any.whl

Download URL pauc-0.2.2-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
985a11b1c331f499d4658d6f214cbb18d2c94690a9fcdcd1eb26ada7273bbfe1
BLAKE2b-256 checksum
How to use checksums
729f8ab1a78d24dd7f95a335c99706a414ced65df8bed27ed6be75284f81fb42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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