A Python library for explicit correction and traceability of informational bias in scientific and industrial measurement
Project description
Entropic Measurement Revolution
Features
- Universal correction of entropic bias in any measurement process
- Calculation of Shannon and Kullback-Leibler (KL) entropies
- Traceability and export of entropic cost for each measurement (CSV or JSON logs)
- Extensible, object-oriented API compatible with scientific workflows
- Ready for integration with machine learning, experiments, open data, and more
Project Structure
entropic_measurement/
├── __init__.py
├── measurement.py
├── entropy.py
├── correction.py
├── logger.py
└── utils.py
Example Usage
from entropic_measurement.utils import measure_and_correct from entropic_measurement.logger import EntropicLogger
Example data
observed_dist = [0.6, 0.4]
true_dist = [0.7, 0.3]
observed_value = 10.0
Bias correction
result = measure_and_correct(observed_value, observed_dist, true_dist, beta=1.0)
print("Result:", result)
Logging and exporting audit
logger = EntropicLogger()
logger.record(result)
logger.export("audit_log.csv", format="csv")
Quick Start: Value Proposition vs. SciPy, Statsmodels & Others
| Task | SciPy/Statsmodels | entropic_measurement | Key Value Add |
|-----------------------------------|----------------------------------|-----------------------------------|-------------------------------------------------|
| Compute mean & std | Yes (`numpy.mean`, `numpy.std`) | Indirect (basic stats) | Standard statistics only |
| Robust to distribution shape | No (assumes normality) | Yes (explicit entropy correction) | Handles multi-modal, non-Gaussian, biased data |
| Bias correction in measurement | No | Yes (info-theoretic correction) | Makes uncertainty sources explicit, corrects |
| Traceable entropic cost export | No | Yes (CSV/JSON logging) | Audit-friendly, detailed reporting |
| Designed for science & ML workflow| Limited (not traceable) | Yes (object-oriented, extensible) | Open, composable, machine learning ready |
| Entropy/KL metrics | Partially (scipy.stats.entropy) | Yes (dedicated methods, traceable)| Fully traceable & ready for bias audit |
When to Use Mean/Std vs. Entropy/Correction?- Use mean/std if:
- Data is symmetric, unimodal, and low-uncertainty
- Normality assumptions hold and you only need simple summary statistics
- Prefer entropy/correction if:
- Data is multi-modal, skewed, or structurally uncertain
- You need to detect, quantify, or correct bias/uncertainty in measurements
- Reproducibility, transparency, and traceable uncertainty matter
Applications
- Physical and chemical experiments: calibrate scientific measures with informational transparency
- AI and data science: detect, quantify and correct algorithmic bias robustly
- Medical analysis: ensure reproducibility and reliability in diagnostics
- Industrial quality control: documentation and certification with entropic measurement scores
- Open science: provide FAIR data with explicit uncertainty and bias info
Documentation
A Python library for explicit correction and traceability of informational bias in scientific and industrial measurement.
Inspired by the “Entropic Measurement Revolution” developed by Raphael Constantinis, this package enables robust, transparent, and reproducible correction of entropic bias using modern statistical entropy metrics.
Comprehensive documentation is available in the Wiki.
License
All code and methods are released in the public domain (CC0) – no copyright, patent, or exclusive ownership.
Contributing
Contributions, feedback, and interdisciplinary collaboration are welcome.
Standardize entropic metrology in your field and expand this library with new modules and applications!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file entropic_measurement-0.1.0.tar.gz.
File metadata
- Download URL: entropic_measurement-0.1.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bfb7f4d1f3193bf2734fe8a6f458752d3be8d6649075b323f648ddd81013770
|
|
| MD5 |
9e1b95ac15bad20eae2a932b8852bc45
|
|
| BLAKE2b-256 |
90589d5cfaab61262335c4a79950ad9ce68e9e891b8196b3681c694e838ffae0
|
File details
Details for the file entropic_measurement-0.1.0-py3-none-any.whl.
File metadata
- Download URL: entropic_measurement-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a70b14b49db04839a0028ee5bf11a122e172f5a130f4b5406718e22ecdee561d
|
|
| MD5 |
7333282b81cc563ea2cd168df9e229f4
|
|
| BLAKE2b-256 |
512f8850a03f264b178bb7321b4b93b4ad0911f76d806ace5c16e18d1a71b6bc
|