Skip to main content

Papilon: A Statistical Mechanics Framework for Causal Data Simulation

Project description

Papilon 🦋

Papilon is a Python library for exploring the statistical mechanics of complex systems. Inspired by the butterfly effect and chaos theory, Papilon enables researchers and data scientists to simulate, analyze, and optimize dynamic systems through entropy modeling, causal inference, and scenario generation.

Butterfly Effect

✨ Features

  • 📊 Entropy & Energy Modeling — quantify system uncertainty
  • 🔄 Causal Inference — reveal hidden directional relationships
  • 🔬 Scenario Simulation — generate alternative state evolutions
  • 🧠 Optimization Engine — search for efficient configurations
  • 🧩 Relationship Discovery — mutual information & correlation
  • 📈 Optional MMM & Regression — model outcome influence

📦 Installation

git clone https://github.com/YOUR_USERNAME/papilon.git
cd papilon
pip install -e .

Requires: Python 3.8+, numpy, pandas, matplotlib, seaborn, scikit-learn, networkx, statsmodels

🚀 Example Usage

from papilon import (
    shannon_entropy,
    simulate_kde_scenarios,
    analyze_relationships,
    infer_causal_structure,
    grid_search_optimize
)

See examples/ for a full end-to-end complex systems notebook.

📘 Use Cases

  • Studying dynamic system behavior (ecology, traffic, climate)
  • Testing interventions under causal feedback
  • Finding stable/efficient parameter regimes
  • Teaching entropy, causality, and complexity science

🧪 Example Output

Sample causal graph

📝 License

MIT License


Developed with curiosity and chaos in mind.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

papilon-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

papilon-0.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file papilon-0.2.0.tar.gz.

File metadata

  • Download URL: papilon-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.7

File hashes

Hashes for papilon-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7543a9a84aacf924a88748d9aa4a0713e676a10512a07f4a5fd517bd300d5d4c
MD5 86037342463e9842ed1ff6a12ff62499
BLAKE2b-256 e1e6977c89478d2988b9aab167c9871b54c8083d1250bc18eede8bb5bc5bc326

See more details on using hashes here.

File details

Details for the file papilon-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: papilon-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.7

File hashes

Hashes for papilon-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83bc82b7d1453ec4cfa695a14d00a4b003316b1e32aec30cd36ed35dad6bac5c
MD5 f26722b35659041be1234ffa1d0c4e92
BLAKE2b-256 dc6eacb9a791902502d0a3231ee574dc0e6443237e892f60e83ae8f9c74dbc89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page