σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
uantCraft Academy

Quant development, learned by doing: short lessons, graded labs and a real IDE, right in your browser.

Learn
All roadmapsAll skillsPython skillC++ skillSoonOxCaml skillSoonMarket Structure skillCalculus skillLinear Algebra skillProbability skillStatistics skillMatrix Decompositions skillOptimization skillTime Series skillStochastic Calculus skillBayesian Inference skillHidden Markov Models skillParticle filtering and non-stationary time series skill
Support
Give us feedbackBuy us a Coffee
Legal
Privacy policyTerms of service
© 2026 QuantCraft Solutions. All rights reserved.
QuantCraft
σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
Skills›Hidden Markov Models
H

Hidden Markov Models Skill

LiveStart here

Markets seem to switch between calm and stormy periods, but nobody announces the switch. A hidden Markov model gives that idea a precise form: a hidden state moves by simple probabilities and each day's return is a noisy signal of it. This skill explains the model in plain steps, with short checks (numbers you compute, steps you order, concepts you match) and finance examples: how a chain of calm and stormy days behaves in the long run, how to update your belief about today's state from today's return, how to find the most likely path of states, how the model learns its own numbers from data, how many regimes are enough, and why a regime signal that looks at the whole history is a cheat. The capstone is a code lab where you write the algorithms yourself and detect regimes in real SPY returns.

3 modules10 graded labs~10 hoursIntermediate → Advanced
Start skill

Prerequisites

Probability and basic Bayesian updating are expected (conditional probability, Bayes' rule). No Markov or HMM background is needed.

  • PProbability
  • BBayesian Inference

Syllabus

10 topics · open any topic, in any order
  1. 1Markov chains refresherNot started40 minStart
  2. 2Hidden states and emissionsNot started45 minStart
  1. 3The forward algorithmNot started1 hrStart
  2. 4Viterbi decodingNot started55 minStart
  3. 5Forward-backward smoothingNot started55 minStart
  4. 6Baum-Welch and EMNot started1 hr 10 minStart
  1. 7Gaussian emissions for returnsNot started55 minStart
  2. 8Choosing the number of regimesNot started50 minStart
  3. 9Filtering versus smoothing and the look-ahead trapNot started50 minStart
  4. 10Capstone: a bull bear and crisis regime detector on index dataNot started1 hr 40 minStart

Completion

Pass all 10 labs with a score of 70+ to complete the skill and earn the Hidden Markov models badge on your profile.

0 / 100%

Prerequisites

Probability and basic Bayesian updating are expected (conditional probability, Bayes' rule). No Markov or HMM background is needed.

  • PProbability
  • BBayesian Inference

Tools you'll use

PythonNumPypandaspytest

What you'll learn

  • Describe a Markov chain by its transition matrix and find where it settles in the long run
  • Write the forward algorithm and Viterbi decoding and say what each one answers
  • Smooth state probabilities with forward-backward and learn the model's numbers with Baum-Welch
  • Model returns with Gaussian regimes and choose how many regimes the data support
  • Detect market regimes in real returns and avoid the look-ahead trap when you test a regime signal

Next skill

PParticle filtering and non-stationary time seriesLive
uantCraft Academy

Quant development, learned by doing: short lessons, graded labs and a real IDE, right in your browser.

Learn
All roadmapsAll skillsPython skillC++ skillSoonOxCaml skillSoonMarket Structure skillCalculus skillLinear Algebra skillProbability skillStatistics skillMatrix Decompositions skillOptimization skillTime Series skillStochastic Calculus skillBayesian Inference skillHidden Markov Models skillParticle filtering and non-stationary time series skill
Support
Give us feedbackBuy us a Coffee
Legal
Privacy policyTerms of service
© 2026 QuantCraft Solutions. All rights reserved.
QuantCraft
LoginJoin ↗
Login