4. Bond Default. You hold a portfolio of 100 bonds and each has a default probability of 0.05. In this exercise, you will model default using a binomial distribution.
The binomial distribution can be used to determine the probability that some number of loans default. To calculate this probability in R, use the dbinom(k, n, p), where n is the number of bonds, k is the number of defaults, and p is the default probability for a single bond.
Calculate the probability that 3 bonds default.