Simulate Rating Changes
I made this function as an attempt to model the credit rating changes for a company based on increasing or decreasing intensities in upgrades and downgrades over time.
The function simulates rating changes in a continuous time Markov chain. The arrival times are distributed as a Weibull-distribution, with the scale and shape parameters of rating upgrades and downgrades given as inputs. By having a shape parameter for rating upgrades that is above 1, means in this function that the rate at which upgrades occur will increase in time. Likewise, by having a shape parameter that is below 1, means that the rate decreases over time. A shape parameter of 1, means that the intensities are constant over time and the same as the scale parameters.
The inputs are:
*Initial rating score, a positive integer where the lowest, 1, is the best rating and higher than that means a worse score.
*The time for how long the simulation is made.
*Intensities, a n-by-n matrix of intensities for changing into each ratings, rows are initial rating, and columns final rating. These are the scale parameter of each event in the Weibull distribution.
*Upgrade shape-parameter for the time-variation in rating upgrades.
*Downgrade shape-parameter for the time-variation in rating downgrades.
The outputs are:
*A m-by-2 matrix of the rating changes arrival times and the rating.
*A n-by-n matrix of the rating migrations.
Cita come
Jesper Karlsson (2026). Simulate Rating Changes (https://it.mathworks.com/matlabcentral/fileexchange/66990-simulate-rating-changes), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Radar > Phased Array System Toolbox > Beamforming and Direction of Arrival Estimation > Direction of Arrival Estimation >
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
