← Quant playground

Free practice library

Interview practice

Solve complete questions with progressive hints, worked solutions and Python implementations. Each question explains its assumptions and source match. Original interpretations are labelled explicitly.

752

Ready to practise

174

Not yet playable

926

Catalogue titles

Public standard problems and original exercises; hidden Trading Interview questions have not been verified.

174 titles have been investigated but remain unresolved. Their missing details are recorded without adding substitute exercises. Every playable question has a guided animated answer; selected questions also have custom diagrams.

Practise Learnr’s own questions →Follow a role-specific curriculum →

752 matching entries · page 1 of 16

Machine Learning · Medium

Leakage-Free Pipeline

Original interpretation · Match confidence: medium

Company use unverified
About this question’s source match

The title with subcategory Coding specifies the method assessed. This is an original worked scenario using the standard method documented in the public reference. The inaccessible Trading Interview statement has not been verified; numerical data, conventions and framing are newly authored rather than claimed source reproductions.

Implement a one-feature leakage-free preprocessing function. Fit a median imputer on past training data, impute training values, then fit population-mean/standard-deviation scaling on imputed training values. Transform only future values with stored statistics. None denotes missing. Reject an empty or all-missing training set and nonfinite observed values. Use scale 1 for zero training variance. Evaluate train=[1,None,3], future=[None,4].

Assumptions and constraints

  • All data and timing conventions are those explicitly stated in the prompt.
  • Show intermediate calculations; use the specified normalization and boundary conventions.
  • Inputs must be small enough that sums, products and updates remain finite in Python floating-point arithmetic.

Examples

train=[1,None,3],future=[None,4]
→ [0,sqrt(6)]

Only past values determine imputation and scaling.

Company evidence · unverified

No company-specific source has been matched to this exercise. Its references support the topic or solution method; they do not establish employer use.

References

Read the supporting material without leaving your question.

  • scikit-learn.org

    scikit-learn: common_pitfalls

    Standard method and mathematical definitions; not the hidden catalogue question or the newly authored numerical data.

Catalogue metadata captured 2026-10-12. Metadata source.