σμ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 skillscikit-learn skillstatsmodels skillSciPy 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›scikit-learn

scikit-learn Skill

LiveStart here

A model that looks good in a notebook can be worthless in trading, and the usual reason is not the algorithm but the evaluation. This skill teaches scikit-learn as a way of working, with short checks (numbers you compute, steps you order, concepts you match) and finance examples: why a scaler must be fitted on the training days only, how overlapping labels leak the future and how purging and an embargo remove it, what ridge and lasso do to coefficients, why a logistic regression for direction barely beats always guessing up, how a forest overfits a weak signal, how to score a return model with the information coefficient, how many fits an honest hyperparameter search needs, and what clustering, PCA and permutation importance can and cannot tell you. The capstone is a code lab where you build the purged walk-forward splitter, the cross-sectional features and the scoring of a monthly stock model.

4 modules18 graded labs~16 hoursBeginner → Advanced
Start skill

Prerequisites

Comfort with Python, NumPy and pandas is expected, together with basic statistics (mean, variance, correlation, regression).

  • Python
  • SStatistics

Syllabus

18 topics · open any topic, in any order
  1. 1The estimator APINot started40 minStart
  2. 2Lab: writing your own estimatorNot started50 minStart
  3. 3Splits and leakage in financeNot started50 minStart
  4. 4Lab: custom transformers and column pipelinesNot started50 minStart
  5. 5Lab: leak-proof pipelinesNot started50 minStart
  1. 6Linear models and regularisationNot started55 minStart
  2. 7Logistic regression for directionNot started50 minStart
  3. 8Trees and random forestsNot started55 minStart
  1. 9scikit-learn pipelines for returnsNot startedRequires Python1 hrStart
  2. 10Feature engineering for financial dataNot startedRequires Python1 hrStart
  3. 11Walk-forward validationNot startedRequires Python1 hrStart
  4. 12Purged and embargoed cross-validationNot started1 hrStart
  5. 13Information coefficient hit rate and calibrationNot started50 minStart
  6. 14Hyperparameter search without overfittingNot started50 minStart
  1. 15Clustering for regimes and peersNot started50 minStart
  2. 16Dimensionality reduction with PCA and kernel PCANot started45 minStart
  3. 17Feature importance and permutationNot started50 minStart
  4. 18Capstone: a cross-sectional return model honestly evaluatedNot started1 hr 40 minStart

Completion

Pass all 18 labs with a score of 70+ to complete the skill and earn the scikit-learn badge on your profile.

0 / 180%

Prerequisites

Comfort with Python, NumPy and pandas is expected, together with basic statistics (mean, variance, correlation, regression).

  • Python
  • SStatistics

Tools you'll use

Pythonscikit-learnNumPypandaspytest

What you'll learn

  • Use the fit, predict and transform contract correctly and know which numbers an estimator learns
  • Spot leakage in financial data and split by time, with purging and an embargo when labels overlap
  • Fit ridge, lasso, logistic regression and forests, and say what each does to a weak signal
  • Score a return model with the information coefficient and calibration, and search hyperparameters without overfitting
  • Use clustering, PCA and permutation importance on real stocks and avoid over-reading them

Next skill

statsmodelsLive
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 skillscikit-learn skillstatsmodels skillSciPy skill
Support
Give us feedbackBuy us a Coffee
Legal
Privacy policyTerms of service
© 2026 QuantCraft Solutions. All rights reserved.
QuantCraft
LoginJoin ↗
Login