open-risk / transitionMatrix

Statistical analysis and visualization of state transition phenomena
https://www.openriskmanagement.com/tags/transition-matrix/
Apache License 2.0
86 stars 32 forks source link

TransitionMatrix Request #20

Closed raphaelchaves closed 3 years ago

raphaelchaves commented 3 years ago

Hi all, I've started to work with python recently, and I'd be so gratefull if you are able to send me a script in Python using the transitionMatrix package, in order to estimate the following approaches: a) Transition Matrix for the attached sample, considering the Cohort approach b) Transition Matrix for the attached sample, considering the Hazard rate approach c) Confidence levels using bootstrap technique

I'm sending as an attached file the output results achieved through a Visual Basic for Applications function. I've been trying to achieve the same results using the Python transitionMatrix package.

Thanks in advance. Rgs, Raphael

Input_RatingTransitionMatrix.txt Output_RatingTransitionMatrix.xlsx

open-risk commented 3 years ago

Hi Raphael, the latest commit includes some scripts to address this test case. Unfortunately the included data set is not sufficiently documented or clean enough to allow unambiguous replication. But it still useful as an example of a realistic situation so with this update there are some scripts to illustrate: