Series

Financial Engineering Programming

23 posts

  1. #1

    Call Options & Put Options [Financial Engineering Programming #1]

    A casual dive into call and put options — what they actually mean, how Black–Scholes helped options markets grow, and yes, there's a dropped-class backstory involved.

    · 8 min read
  2. #2

    Intrinsic Value & Time Value of Options [Financial Engineering Programming #2]

    Separate an option's current intrinsic payoff benchmark from its remaining time value, without confusing either with the buyer's net profit.

    · 6 min read
  3. #3

    Put-Call Parity [Financial Engineering Programming #3]

    Before jumping into the binomial model, we lock in put-call parity — the neat reason knowing a European call's price automatically pins down its put, and vice versa.

    · 3 min read
  4. #4

    Binomial Model: One Period [Financial Engineering Programming #4]

    The one-period binomial model in a nutshell — stock goes up or down, we build a risk-free portfolio, and derive the hedge ratio Δ and call option price.

    · 7 min read
  5. #5

    Binomial Model: Two Period [Financial Engineering Programming #5]

    Extending the one-period binomial model to two periods — turns out it's the same trick applied twice, and the binomial weights just fall right out naturally.

    · 4 min read
  6. #6

    Binomial Model: Generalized n-Period [Financial Engineering Programming #6]

    Turn binomial paths into terminal-node weights, work a three-step call price by summation and backward induction, then check the Python output and a put exercise.

    · 10 min read
  7. #7

    American Options [Financial Engineering Programming #7]

    Breaking down the one chunky difference between American and European options — early exercise — and how it flips the whole binomial pricing tree on its head.

    · 7 min read
  8. #8

    Wiener Process [Financial Engineering Programming #8]

    A detour through Brownian motion, the Wiener process and GBM — with a simulated Wiener path to prepare for the later Black-Scholes code.

    · 9 min read
  9. #9

    Monte Carlo Method [Financial Engineering Programming #9]

    Stumbled into a stats lecture and finally got it — turns out if you scatter enough random dots and do a little ratio math, you can actually calculate π. Wild, right?

    · 9 min read
  10. #10

    Black-Scholes Formula [Financial Engineering Programming #10]

    Can't derive it (lmao), but we can totally code it up — walking through the Black-Scholes pricing formula and computing actual call and put prices.

    · 4 min read
  11. #11

    Volatility [Financial Engineering Programming #11]

    Breaking down historical and implied volatility — what they are, why we care, and how to actually compute historical vol from weekly price data in VBA.

    · 4 min read
  12. #12

    Before Entering the Midterm Exam Room [Financial Engineering Programming #12]

    Reading the midterm sheets step by step: no-arbitrage option prices, tree recursion, VBA control flow, GBM simulation, Monte Carlo and checks on the Black-Scholes code.

    · 9 min read
  13. #13

    Implied Volatility [Financial Engineering Programming #13]

    Flip the BS formula backwards — plug in the real market price, leave σ blank, and whatever volatility makes it work? That's implied volatility, baby.

    · 3 min read
  14. #14

    Bisection Method & Weighted Bisection Method [Financial Engineering Programming #14]

    A super chill walkthrough of the bisection method — arguably the simplest root-finding algorithm ever — plus a weighted twist, then putting it to work on implied volatility, with VBA and Python code.

    · 8 min read
  15. #15

    Newton-Raphson Method [Financial Engineering Programming #15]

    We ditch bisection and let Newton-Raphson chase down implied volatility by hopping along tangent lines until it zeros in on the answer.

    · 7 min read
  16. #16

    Differentiation Fundamentals for Finite Difference Methods [Financial Engineering Programming #16]

    Before we can tackle FDM and crack open the Black-Scholes PDE numerically, we need to get our differentiation fundamentals straight — so let's run through it.

    · 7 min read
  17. #17

    Explicit Finite Difference Method (FDM) [Financial Engineering Programming #17]

    Want a numerical Black-Scholes solution? No sweat — we slice the (t, S) plane into a grid, lock down the boundary values, and sneak our way to the rest one point at a time.

    · 7 min read
  18. #18

    Implicit Finite Difference Method (FDM) [Financial Engineering Programming #18]

    A walkthrough of Implicit FDM and how swapping to a forward time difference turns the Black-Scholes PDE into a system you solve backwards — algebra included, sanity optional.

    · 4 min read
  19. #19

    LU Decomposition [Financial Engineering Programming #19]

    Starting from middle-school bike problems and building up to Gaussian elimination, we crack open LU decomposition — because computing A⁻¹ is just painful.

    · 16 min read
  20. #20

    Implicit Finite Difference Method (FDM) — Part 2 [Financial Engineering Programming #20]

    We put our Ax=b solver to work and actually price a European call with Implicit FDM, walking through how the matrix equations generalize as we slice the grid into more pieces!

    · 9 min read
  21. #21

    Crank-Nicolson Finite Difference Method (FDM) [Financial Engineering Programming #21]

    Wrapping up the FDM trilogy with Crank-Nicolson — averaging the Black-Scholes terms at two time levels to improve time accuracy.

    · 6 min read
  22. #22

    Cholesky Decomposition & Correlated Random Variables [Financial Engineering Programming #22]

    A casual walkthrough of Cholesky decomposition — from real and Hermitian matrices to positive definite covariance matrices — and how it turns independent random numbers into correlated stock prices.

    · 11 min read
  23. #23

    Estimating Pi Using the Monte Carlo Method in Python [Financial Engineering Programming #23]

    Toss enough random darts at a unit square, count the ones inside the circle, and — boom — you've got π, courtesy of the Monte Carlo method and a bit of Python.

    · 3 min read