Sankey diagrams are very useful for the visualization of flows, especially when there is a conserved quantity. They can be tricky when some of the flows are much smaller than others. In the latest release of transitionMatrix we include an example of a log-scale version of Sankey

Using Sankey Diagrams: Sankey Diagrams are a type of flow diagram composed of interconnected arrows. The width of the arrows is proportional to the flow rate. Sankey diagrams are often used in physical sciences (physics, chemistry, biology) and engineering but also in economics. They can be used to represent the relative role and significance of various inputs and outputs in a given process.
Sankey diagrams emphasize the major transfers within a system.

Release of version 0.4.1 of the transitionMatrix package focuses on stressing transition matrices: Further building the open source OpenCPM toolkit this realease of transitionMatrix features:
Feature: Added functionality for conditioning multi-period transition matrices Training: Example calculation and visualization of conditional matrices Datasets: State space description and CGS mappings for top-6 credit rating agencies Conditional Transition Probabilities The calculation of conditional transition probabilities given an empirical transition matrix is a highly non-trivial task involving many modelling assumptions.

Release of version 0.4 of the transitionMatrix package: Further building the open source OpenCPM toolkit this realease of transitionMatrix features:
Feature: Added Aalen-Johansen Duration Estimator Documentation: Major overhaul of documentation, now targeting ReadTheDocs distribution Training: Streamlining of all examples Installation: Pypi and wheel installation options Datasets: Synthetic Datasets in long format Enjoy!

Is the IFRS 9 or CECL standard more volatile? Its all relative! Objective In this study we compare the volatility of reported profit-and-loss (PnL) for credit portfolios when those are measured (accounted for) following respectively the IFRS 9 and CECL accounting standards.
The objective is to assess the impact of a key methodological difference between the two standards, the so-called Staging approach of IFRS 9. There are further explicit differences in the two standards.

Credit Portfolio PnL volatility under IFRS 9 and CECL: Objective We explore conceptually a selection of key structural drivers of profit-and-loss (PnL) volatility for credit portfolios when profitability is measured following the principles underpinning the new IFRS 9 / CECL standards
Methodology We setup stylized calculations for a credit portfolio with the following main parameters and assumptions:
A portfolio of 200 commercial loans of uniform size and credit quality Maturities extending from one to five annual periods A stylized transition matrix producing typical multiyear credit curves Correlation between assets typical for a single business sector and geography portfolio Focusing on PnL estimates one year forward, with PnL being impacted both by Realized Losses (defaults) and Provision variability (both positive and negative).

Open Risk released version 0.1 of the Transition Matrix Library
Motivation: State transition phenomena where a system exhibits stochastic (random) migration between well defined discrete states (see picture below for an illustration) are very common in a variety of fields. Depending on the precise specification and modelling assumptions they may go under the name of multi-state models, Markov chain models or state-space models.
In financial applications a prominent example of phenomena that can be modelled using state transitions are credit rating migrations of pools of borrowers.

Summary: This course is a CrashProgram (short course) in the use of Python and the package TransitionMatrix for analysing credit migration data.
Requirements: The course is at a medium technical level. It requires some familiarity with python (and a working installation that includes the common numpy/scipy libraries). On the risk modelling side it requires knowledge of basic credit rating migration concepts.
Outcomes: Step by step we build the knowledge required to use python to analyse credit migration data: