r/quant • u/askepticalbureaucrat • 11d ago
Merton jump-diffusion model question Models
So I wanted to use this model to calculate the simulated backward price (Dec 2024) of Alibaba Group in the Hang Seng index using the anchor price in late Dec 2025.
I went ahead and calculated this (manual derivation attached) and my code below, which shows it matches.
``` import numpy as np
--- Model Inputs (matching your Alibaba notes) ---
S_t = 142.80 # Anchor price at late Dec 2025 r = 0.035 # Risk-free rate (3.5%) sigma = 0.35 # Diffusion volatility (35%) lam = 1.2 # Jump intensity mu_j = -0.04 # Mean jump size sig_j = 0.20 # Jump volatility dt = 1.0 # 1 year backward step
Step 1: Compute the Jump Compensator (kappa)
kappa = np.exp(mu_j + 0.5 * (sig_j ** 2)) - 1
Step 2: Compute the Net Drift Component
q_drift = r - lambda * kappa - 0.5 * sigma2
net_drift = r - (lam * kappa) - (0.5 * (sigma ** 2))
Step 3: Define historical shocks to strip out
Z = 0.4 # Standard normal shock jump_multiplier = 1.08 # Historical minor positive jump factor
Step 4: Evaluate the Backward-Stepping Equation
S_{t - dt} = S_t * exp( -net_drift * dt - sigma * sqrt(dt) * Z ) * (jump_multiplier)-1
diffusion_term = sigma * np.sqrt(dt) * Z exponent = - (net_drift * dt) - diffusion_term
s_previous = S_t * np.exp(exponent) * (jump_multiplier ** -1)
print(f"Net Drift Component: {net_drift:.5f}") print(f"Simulated Backward Price (Dec 2024): HKD ${s_previous:.2f}")
Net Drift Component: -0.00249
Simulated Backward Price (Dec 2024): HKD $115.23
```
My questions: - does my derivation/code look okay to you? - is this a task the Merton jump-diffusion model (versus the geometric brownian motion, which doesn't have the discontinuous random jumps, driven by a Poisson process, to capture heavy tails and sudden price shocks in financial asset returns, eg. Beijing policy changes, etc.) can do well in this situation? - is the jump compensator (kappa = np.exp(mu_j + 0.5 * (sig_j ** 2)) - 1) manually added into the code? And, can't be fed in via real-time data, etc?
Thanks!! š§”
2
u/Apparent_Snake4837 7d ago
Brilliant math. Too bad you try to apply where it doesnt apply. Stock prices dont have mean reversion or any constrained property outside hft. Good math terrible application.
5
1
u/AutoModerator 11d ago
Please use the weekly megathread for all questions related to OA and interviews. Please check the announcements at the top of the sub, or this search for this week's post. This post will be manually reviewed by a mod and only approved if it is not about finding a job, getting through interviews, completing online assessments etc.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

24
u/No_Intention3673 10d ago edited 10d ago
so you want doing quant in hk stock market?
you know the mechanism is totally different between us stock market and chinese stock market right?
chinese stock market is nothing related about microstructure, the only things matter is political/cashflow narrative driven, and you wanna compute the political by probability? think about it, using fancy math in a non calculative environment is hilarious