σμ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 skillsPythonMarket StructureCalculusLinear AlgebraProbabilityStatisticsMatrix DecompositionsOptimizationTime SeriesStochastic CalculusBayesian InferenceHidden Markov ModelsParticle filtering and non-stationary time series
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›XGBoost

XGBoost Skill

LiveStart here

XGBoost is a library for gradient boosted trees: it fits many small decision trees one after another, each one correcting the errors of the trees before it. This skill follows one running example, a panel of 56 US stocks with a few features known at each month-end and the return of the following month as the target. You fit your first model, write the boosting loop yourself and check that it matches the library, then learn what tree depth, the learning rate and regularisation do. You handle missing and categorical features, change the objective from a regression to a ranking, add monotone constraints that encode what an analyst already knows, read a model with feature importance and SHAP values, and validate it in time without leaking the future. The skill ends with a ranker of next-month returns judged the way a research team would judge it.

4 modules11 graded labs~10 hoursBeginner → Advanced
Start skill

Prerequisites

Comfort with Python and pandas is enough. Having met scikit-learn's fit and predict helps, but it is not required.

  • Python
  • scikit-learn

Syllabus

11 topics · open any topic, in any order
  1. 1Your first XGBoost model in a few linesNot startedRequires Python40 minStart
  2. 2Gradient boosting: the idea and a 30-line loopNot startedRequires Python55 minStart
  1. 3Tree depth and learning rateNot startedRequires Python50 minStart
  2. 4Regularisation and early stoppingNot startedRequires Python50 minStart
  1. 5Missing values and categorical featuresNot startedRequires Python45 minStart
  2. 6Objectives: regression and rankingNot startedRequires Python55 minStart
  3. 7Monotone constraints for financial priorsNot startedRequires Python50 minStart
  1. 8Feature importance: gain versus SHAPNot startedRequires Python50 minStart
  2. 9Time-aware validationNot startedRequires Python55 minStart
  3. 10Speed: histograms and model sizeNot startedRequires Python40 minStart
  4. 11Capstone: a ranker for next-month returnsNot startedRequires Python1 hr 40 minStart

Completion

Pass all 11 labs with a score of 70+ to complete the skill and earn the XGBoost badge on your profile.

0 / 110%

Prerequisites

Comfort with Python and pandas is enough. Having met scikit-learn's fit and predict helps, but it is not required.

  • Python
  • scikit-learn

Tools you'll use

PythonXGBoostNumPypandaspytest

What you'll learn

  • Fit, predict with and judge a boosted tree model against a plain baseline
  • Write the boosting loop from scratch and see that it matches the library
  • Control overfitting with tree depth, the learning rate, regularisation and early stopping
  • Handle missing and categorical features, switch the objective to ranking and add monotone constraints
  • Read a model with importance and SHAP values, and validate it in time without leaking the future

Next skill

LightGBMLive
uantCraft Academy

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

Learn
All roadmapsAll skillsPythonMarket StructureCalculusLinear AlgebraProbabilityStatisticsMatrix DecompositionsOptimizationTime SeriesStochastic CalculusBayesian InferenceHidden Markov ModelsParticle filtering and non-stationary time series
Support
Give us feedbackBuy us a Coffee
Legal
Privacy policyTerms of service
© 2026 QuantCraft Solutions. All rights reserved.
QuantCraft
LoginJoin ↗
Login