σμ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›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 modules27 graded labs~24 hoursBeginner → Advanced
Start skill

Prerequisites

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

  • Python
  • σStatistics

Syllabus

27 topics · open any topic, in any order
  1. 1The estimator APINot started40 minStart
  2. 2Writing your own estimatorNot startedRequires Python50 minStart
  3. 3Splits and leakage in financeNot started50 minStart
  4. 4Custom transformers and column pipelinesNot startedRequires Python50 minStart
  5. 5Leak-proof pipelinesNot startedRequires Python50 minStart
  1. 6Linear models and regularisationNot started55 minStart
  2. 7Regularisation paths in codeNot startedRequires Python50 minStart
  3. 8Logistic regression for directionNot started50 minStart
  4. 9Fitting and judging a direction classifierNot startedRequires Python50 minStart
  5. 10Trees and random forestsNot started55 minStart
  6. 11Forests and boosting in codeNot startedRequires Python55 minStart
  1. 12scikit-learn pipelines for returnsNot startedRequires Python1 hrStart
  2. 13Feature engineering for financial dataNot startedRequires Python1 hrStart
  3. 14Walk-forward validationNot startedRequires Python1 hrStart
  4. 15Purged and embargoed cross-validationNot started1 hrStart
  5. 16A purged and embargoed splitterNot startedRequires Python1 hrStart
  6. 17Information coefficient hit rate and calibrationNot started50 minStart
  7. 18Calibrating probabilitiesNot startedRequires Python50 minStart
  8. 19Hyperparameter search without overfittingNot started50 minStart
  9. 20A search that does not fool youNot startedRequires Python50 minStart
  1. 21Clustering for regimes and peersNot started50 minStart
  2. 22Finding market regimes and peer groupsNot startedRequires Python50 minStart
  3. 23Dimensionality reduction with PCA and kernel PCANot started45 minStart
  4. 24Principal components of returnsNot startedRequires Python50 minStart
  5. 25Feature importance and permutationNot started50 minStart
  6. 26Joblib caching and saved modelsNot startedRequires Python45 minStart
  7. 27Capstone: a cross-sectional return model honestly evaluatedNot started1 hr 40 minStart

Completion

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

0 / 270%

Prerequisites

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

  • Python
  • σStatistics

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

XGBoostLive
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