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.

Download files

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

Source Distribution

decision_security-0.1.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

decision_security-0.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file decision_security-0.1.0.tar.gz.

File metadata

  • Download URL: decision_security-0.1.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for decision_security-0.1.0.tar.gz
Algorithm Hash digest
SHA256 916b2aaaaa4691095ab3b7ccaa42b4b138b76a28b0fef7ab37d8e4370f0f3aee
MD5 60febb0b9b0f4e3977371069c858644e
BLAKE2b-256 9c9db44771ccd7afb910822f2454329becc42a09a33da601ec612caa92174972

See more details on using hashes here.

File details

Details for the file decision_security-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for decision_security-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcf84f5f10494d8caafd41886ccedb6d1ce1bde7ff170dbe656f7ac04f4bbf5a
MD5 4355ce5e4e3776542184839c62546453
BLAKE2b-256 ba68ee2b4e46cf1e239aa4e3ac01b59933196cfa3e5a4e9f3ff2302bec557a7c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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