Decision-science utilities for security: Monte Carlo, Bayes, Survival, Value of Information, causal helpers, and viz.
Project description
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.
pip install 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 (APIs may change). MIT License.
See docs & examples: Security Decision Science Book and the Security Decision Labs playground.
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 decision_security-0.1.0a7.tar.gz.
File metadata
- Download URL: decision_security-0.1.0a7.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7149b1f090ee8d5b7ee7945ba41defddf4ba41747083a1d9c7b483f39ef0d515
|
|
| MD5 |
04ba7dbbab6638c466a620e676368e4f
|
|
| BLAKE2b-256 |
c7229694b5b3a8ee5955f9f0451a6a5577b4fc2cc553044fcc1020ea7302df8e
|
File details
Details for the file decision_security-0.1.0a7-py3-none-any.whl.
File metadata
- Download URL: decision_security-0.1.0a7-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133b46d92acc5c941e50c6b6b791a2f79669074b8fe5c67fa2ee55c89f11ea26
|
|
| MD5 |
c7efa0107fc202af1383d30fb14ed126
|
|
| BLAKE2b-256 |
2f977ffeccf371ed76334750d68fcff3733b0e21e99cb7afdb977433865e62d3
|