Why do the results returned by calling the "simulate" function with a "creditDefaultCopula" object vary based on the order of the rows in the input data?
6 views (last 30 days)
Show older comments
MathWorks Support Team
on 12 Aug 2024
Answered: MathWorks Support Team
on 22 Aug 2024
When using "creditDefaultCopula" from Risk Management Toolbox, why are simulation results different when the rows of the data input are in different order even with the same random seed for all simulations?
Accepted Answer
MathWorks Support Team
on 12 Aug 2024
This is an expected behavior. The "creditDefaultCopula" object simulates the independent random numbers for all rows at the same time before passing them into the model. Thus, changing the row ordering of the data results in the corresponding independent random number for each row to be different.
However, the simulation results should be comparable and the relative difference between the simulation results should be small. Note that these kinds of credit simulations are slow to converge, and the functionality can handle large number of scenarios. The "creditDefaultCopula" object is expected to support very large number of simulations without running out of memory even on a single machine, and parallel computing is also supported. With more simulations, the results would be more stable, though still not exactly the same if the order of inputs change.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!