Skip to main content

PyPI Python versions CI OpenSSF Scorecard License: MIT Linkedin Badge

Decision Security

Reusable decision-science utilities for security — Monte Carlo risk bands, Bayesian updates & calibration, survival helpers, Value of Information, light causal helpers, and visualization.

Part of Apropos Security · Notebooks · Playground · Blog

Install

pip install --pre decision-security

Quickstart

import numpy as np
from decision_security.montecarlo import risk_bands, var_es, make_lognormal_severity, simulate_aggregate_losses

sev = make_lognormal_severity(meanlog=8.0, sdlog=1.2)
losses = simulate_aggregate_losses(n_periods=10000, lam=0.6, severity_sampler=sev)
print(risk_bands(losses))      # {'p50': ..., 'p90': ..., 'p95': ...}
print(var_es(losses))          # (VaR95, ES95)

Modules

  • synth — synthetic data (heavy-tail losses, counts, mixtures, survival with censoring, categorical/Dirichlet)
  • montecarlo — Poisson frequency + severity, risk bands, VaR/ES
  • bayes — Beta-Binomial & Normal(known σ) updates, calibration helpers
  • survival — simple Kaplan-Meier & Nelson-Aalen estimates
  • voi — Expected Value of Perfect Information (EVPI) and simple ROI selection
  • causal — tiny DAG utilities (parents, descendants, naive backdoor set)
  • viz — small matplotlib helpers (loss distribution, risk bands, KM curves)

Status

0.x pre-release (APIs may change).

Docs & examples

Contributing

Issues and PRs welcome. For non-public questions, contact via LinkedIn.

Metadata

Release files for decision-security 0.1.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 decision-security 0.1.0
File Size Uploaded Provenance
decision_security-0.1.0.tar.gz 10.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for decision-security 0.1.0
File Interpreter ABI Platform
decision_security-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 kB

Release files / decision_security-0.1.0.tar.gz

Download URL decision_security-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
916b2aaaaa4691095ab3b7ccaa42b4b138b76a28b0fef7ab37d8e4370f0f3aee
BLAKE2b-256 checksum
How to use checksums
9c9db44771ccd7afb910822f2454329becc42a09a33da601ec612caa92174972
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.12

Release files / decision_security-0.1.0-py3-none-any.whl

Download URL decision_security-0.1.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcf84f5f10494d8caafd41886ccedb6d1ce1bde7ff170dbe656f7ac04f4bbf5a
BLAKE2b-256 checksum
How to use checksums
ba68ee2b4e46cf1e239aa4e3ac01b59933196cfa3e5a4e9f3ff2302bec557a7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.12

Security for decision-security 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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