transitionMatrix

A Python powered library for statistical analysis and visualization of state transition phenomena


Keywords
credit-rating, credit-risk, credit-scoring, markov-chain, python, rating-migration, state-space, transition-matrix
License
Apache-2.0
Install
pip install transitionMatrix==0.5.1

Documentation

Gitter Documentation Status

Intro

transitionMatrix is a Python powered library for the statistical analysis and visualization of state transition phenomena. It can be used to analyze any dataset that captures timestamped transitions in a discrete state space. Use cases include credit rating transitions, system state event logs etc.

You can use transitionMatrix to

  • Estimate transition matrices from historical event data using a variety of estimators
  • Manipulate transition matrices (generators, comparisons etc.)
  • Visualize event data and transition matrices
  • Provide standardized data sets for testing
  • Model transitions using threshold processes
  • Map credit ratings using mapping tables between popularly used rating systems

Key Information

NB: transitionMatrix is still in active development. If you encounter issues or have suggestions please raise them in our github repository or come discuss at our discourse server

Support and Training

Examples

The code documentation includes a large number of examples, jupyter notebooks and more.

Plotting individual transition trajectories

single entity

Sampling transition data

sampled histories

Estimation of transition matrices using cohort methods

estimation

Estimation of transition matrices using duration methods

transition probabilities

Visualization of a transition matrix

transition matrix

Visualization using a Logarithmic Sankey diagram

logarithmic sankey

Generating stochastic process transition thresholds

thresholds

Stressing Transition Matrices

stressing transition matrices

Computation and Visualization of Credit Curves

credit curves

Working with credit states

image