X

Latex for Financial Engineering Mathematics Formula Monte-Carlo Simulations and Interest Rate Models

Navigation

In this blog, we will summarize the latex code of most popular formulas and equations for Financial Engineering Formula and Equation Monte-Carlo Simulations and Interest Rate Models. We will cover important topics including Monte-Carlo Simulations, Bonds and Interest Rates, Black-Derman-Toy (BDT) model and Cox-Ingersoll-Ross (CIR) model.

1. Simulations and Variance

  • Monte-Carlo Simulations

    Financial,Economics

    Equation



    Latex Code

                S(T) = S(0) e^{(a - \delta - \frac{\sigma^2}{2})T + \sigma \sqrt{T} z} \\
                S(T) = S(t) e^{(a - \delta - \frac{\sigma^2}{2})(T-t) + \sigma (Z(T) - Z(t))} \\
                \text{Variance} \\
                e^{-2rT} \times \frac{s^{2}}{n} \\
                s^{2} = \frac{1}{n-1} \sum [(g(S_{i}) - \bar{g})]^{2}
            

    Explanation

    Latex code for the Monte-Carlo Simulations of stock prices. I will briefly introduce the notations in this formulation. Monte-Carlo simulation simulates stock prices, calculate the payoff the option for each of those simulated prices, find the average payoff, and then discount the average payoff. Firstly, we start with iid uniform numbers u_{1} to u_{n}, calculate standard normal variable z_{i} as , convert to normal variable . The variance of the Monte-Carlo estimate is calculated as .

    • : The stock price at time T
    • : The stock price at time t, which is nearer to final stage stock price S(T)
    • : The i-th simulated payoff
    • : The variance of stock price

    Related Documents

    Related Videos

  • Bonds and Interest Rates

    Financial,Economics

    Equation



    Latex Code

                P(0, S) = \frac{1}{[1 + r(0, s)]^{s}} \text{or} e^{-r(0,s)s} \\
                \text{Forward bond price} \\
                F_{t,T}[P(T, T+s)] = \frac{P(t, T+s)}{P(t, T)} \\
                P(t, T)[1 + r_{t}(T, T+s)]^{-s} = P(t, T+s)
            

    Explanation

    Latex code for the Bonds and Interest Rates. The price of an s-year zero is P(0, S). The forward bond price formula is calculated as . And the non-continuous annualized rate is .

    • : Price of an s-year zero.
    • : Forward Bond Price
    • : Non-continuous annualized rate

    Related Documents

    Related Videos

  • Black-Derman-Toy BDT

    Financial,Economics

    Equation



    Latex Code

                \text{First Node: 1-year bond price} \\
                P_{0} = \frac{1}{1 + R_{0}} \\
                \text{Second Node} \\
                P_{1} = \frac{1}{1+R_{0}} [\frac{1}{2} P(1,2,r_{u}) + \frac{1}{2} P(1,2,r_{d})] \\
                = \frac{1}{1+R_{0}} [\frac{1}{2(1 + R_{1}e^{2\sigma_{1}})} + \frac{1}{2(1 + R_{1})}] \\
                R_{0} = \frac{1}{2} \ln (\frac{R_{1} e^{2\sigma_{1}} }{R_{1}})
            

    Explanation

    Latex code for the Black-Derman-Toy BDT model. The BDT model is a commonly used interest rate model. The basic idea of the BDT model is to compute a binomial tree of short-term interest rates, with a flexible enough structure to match the data. Black, Derman, and Toy describe their tree as driven by the short-term rate, which they assume is lognormally distributed. Constructing the black-Derman-Toy tree, the first node is given by the prevailing 1-year rate R0. The yield volatility for period-3 is .

    • : 1-year interest rate.
    • : 1-year bond price
    • : year-1 price of a 1-year bond, depending on the movement of the interest rate moving up and down.
    • : Observed year-1 price of a 1-year bond

    Related Documents

    Related Videos

  • Cox-Ingersoll-Ross CIR

    Financial,Economics

    Equation



    Latex Code

                \mathrm{d} r(t) = a[b - r(t)]  \mathrm{d} t + \sigma \sqrt{r(t)} \mathrm{d} Z(t) \\
                P(r, t, T) = A(T-t)e^{-rB(T-t)} \\
                \gamma = \sqrt{(a-\bar{\phi})^{2} + 2 \sigma^{2}} \\
                q(r, t, T) = \sigma \sqrt{r} B(T-t) \\
                \text{yield to maturity} \\
                \frac{2ab}{ a - \bar{\phi} + \gamma}
            

    Explanation

    Latex code for the Cox-Ingersoll-Ross model.

    • : 1-year interest rate.
    • : 1-year bond price
    • : year-1 price of a 1-year bond, depending on the movement of the interest rate moving up and down.
    • : Observed year-1 price of a 1-year bond

    Related Documents

    Related Videos

Comments

Write Your Comment

Upload Pictures and Videos