# Math Probability Models

> Build probability models — distributions, stochastic processes (Markov, Brownian, Poisson), inference — with explicit assumptions and sanity checks.

- Skill: `quantumquirkxyz/math-probability-models` (Agent Skill)
- Install (CLI): `npx skillmds@latest add quantumquirkxyz/math-probability-models`
- Raw SKILL.md: https://api.skillmd.com/api/skills/quantumquirkxyz/math-probability-models/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: quantumquirkxyz (https://skillmd.com/u/quantumquirkxyz)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/quantumquirkxyz/math-probability-models

---


## Contract

- **Input:** problem description and inputs defined by the skill body.
- **Output:** Markdown artifact with completed process steps.
- **Side effects:** none.
- **Dependencies:** none.
- **Stop condition:** all process steps executed; artifact saved with required sections.
- **Risk:** low.
- **Boundary:** produces reasoning artifact only; no system changes.


# Probability & Stochastic Modeling

Construct a **probability model** — distribution, process, or inference — with explicit assumptions and checks against known limits.

## When to use

- User asks for random variables, distributions, stochastic processes, or inference.
- A risk / quant / ML problem needs a probabilistic backbone.

## Process

### 1. Define the space

Name the sample space and events; identify if a sigma-algebra is needed (continuous spaces).

**Completion criterion:** sample space and event space explicit; independence / measurability called out if relevant.

### 2. Choose distribution / process

- Discrete (Bernoulli, Binomial, Poisson, Geometric).
- Continuous (Uniform, Normal, Exponential, Beta, Gamma, t, chi-square).
- Multivariate (Multivariate Normal, Dirichlet, Copulas).
- Stochastic processes (Markov chain, Poisson process, Brownian motion, Lévy, ARMA / GARCH).
- Bayesian: prior + likelihood → posterior.

**Completion criterion:** distribution or process named with type and parameters.

### 3. State parameters

Each parameter is named with value or estimation method (MLE, MAP, moment-matching, prior).

**Completion criterion:** parameters listed with values or estimation procedure.

### 4. Compute / simulate

- Analytical where tractable (mean, variance, CDF, moments).
- Monte Carlo with: seed, sample size N (justified), convergence check.
- For inference: posterior sampling (MCMC, variational, conjugate update).

**Completion criterion:** computation done; sample size or analytical result explicit.

### 5. Validate

- **Limits:** law of large numbers, central limit, stationary distribution, long-run mean.
- **Sanity:** small cases (n=1, 2, 3) checked by hand.
- **Cross-check:** analytical vs simulated mean / variance / tail probability.
- **Calibration:** does the model reproduce known data moments?

**Completion criterion:** validation completed; discrepancy addressed.

### 6. Deliver

Markdown artifact: model, parameters, computation, validation, and an operational interpretation ("expected return X% with std Y% over horizon T").

**Completion criterion:** artifact complete and reproducible.

