Mortgage Loans

How many defaults might we expect?

Let's say a bank made $100$ mortgage loans. It is possible that anywhere between $0$ and $100$ of the loans will be defaulted upon. You would like to know the probability of getting a given number of defaults, given that the probability of a default is $p = 0.05$.

Monte Carlo Simulation

  1. To investigate this, you will do a simulation.
  2. You will perform 100 Bernoulli trials and record how many defaults you get.
  3. Here, a success is a default. (Remember that the word "success" just means that the Bernoulli trial evaluates to True, i.e., did the loan recipient default?)
  4. You will do this for another $100$ Bernoulli trials.
  5. And again and again until we have tried it $1000$ times.
  6. Then, you will plot a histogram describing the probability of the number of defaults.