Filtrations, martingales and stopping times
Filtration
A filtration \((\mathcal F_t)\) is an increasing family of information sets:
Filtration gives this abstract structure a concrete representation suitable for finite/discrete course exercises.
Martingale
A process \((M_n)\) is a martingale with respect to \((\mathcal F_n)\) when
The StochX object is intended for executable course-style martingale checks and examples rather than for replacing a symbolic proof system.
Stopping time
A stopping time \(T\) satisfies
StoppingTime represents the stopping rule explicitly so that measurability conditions can be checked against the supplied filtration model.
Stopped process
Given a process \(X_n\) and a stopping time \(T\), the stopped process is
from stochx.stochastic import StoppedProcess
stopped = StoppedProcess(process, stopping_time)
Practical study pattern
A useful course workflow is:
- define the filtration;
- define the process;
- state the integrability condition;
- check the martingale property;
- define the stopping rule;
- construct the stopped process;
- study empirical or finite-sample behavior only after the mathematical assumptions are clear.
API reference
See the Filtration, Martingale, StoppingTime and StoppedProcess reference pages for the concrete constructors and methods.