Git Product home page Git Product logo

credit-risk-modelling's People

Contributors

djbolder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

credit-risk-modelling's Issues

package depends on R GIGrvg

File "D:\Anaconda3\lib\site-packages\rpy2\robjects\packages.py", line 471, in importr
raise PackageNotInstalledError(

PackageNotInstalledError: The R package "GIGrvg" is not installed.

default probabilities and exposures

Hi David,

Files exposures.npy and defaultProbabilites.npy are not functioning properly. Hope you see this and can get them updated.

Thank you

object of type 'float' has no len()

def computeRiskMeasures(M,lossDistribution,alpha):
expectedLoss = np.mean(lossDistribution)
unExpectedLoss = np.std(lossDistribution)
expectedShortfall = np.zeros([len(alpha)])
var = np.zeros([len(alpha)])
for n in range(0,len(alpha)):
expectedShortfall[n] = np.mean(lossDistribution[np.ceil(alpha[n](M-1)).astype(int):M-1])
var[n] = lossDistribution[np.ceil(alpha[n]
(M-1)).astype(int)]
return expectedLoss,unExpectedLoss,var,expectedShortfall

computeRiskMeasures(100,lossDistribution,0.05)

Is Alpha like 0.01 0.05 ?

Chapter 3 crPlusMultifactor usage

If anyone could add crPlusMultifactor call to the codebase, that would be great. I'm a bit perplexed about wMat parameter usage in particular. Thank you.

threshold and mertonmodel modules cause dead kernel in Jupyter

Hi

Import threshold and mertonmodel modules cause dead kernel in jupyter.

I cannot get most of the exercises to run as I get dead kernel likely related to above issue.

I am using python 3.7 and have installed rpy2 and r-GIGrvg as well as all the other packages and have isntalled R in the environment. I have tried on two separate pc with anaconda and get this same problem.

Any suggestions please?

TransitionMatrix Request

Hi Dr. Bolder, how are you? I hope doing well.

Recently, I bought the book "Credit-Risk Modelling - Theoretical Foundations, Diagnostic Tools, Practical Examples, and Numerical Recipes in Python" written by you. First of all, I'd like to say this book is awesome! Thanks so much for your contribution!.

I have tried to develop something in Python aiming to calculate the transition matrix for a specific sample considering the cohort and hazard rate approaches, and also some confidence levels using bootstrap. Unfortunately, I'm not a Python expert, and at this point I wasn't able to accomplish it in Python.

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. I would be so grateful if you are able to send me a code developed in Python in order to achieve the same results.

Input_RatingTransitionMatrix.txt
Output_RatingTransitionMatrix.xlsx

Thanks in advance.
Best regards,
Raphael

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.