← 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

Batch, Stochastic and Mini-Batch Gradient Descent

Original interpretation · Match confidence: medium

Company use unverified
About this question’s source match

The title with subcategory Optimization 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.

For loss L(w)=mean_i (w-y_i)^2/2 and targets [0,2,4,6], start at w=0 with learning rate .1. Compute one full-batch update, one SGD update using only target 6, and one mini-batch update using targets [0,2]. Are these sequential updates directly comparable to one epoch?

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.

Examples

batch targets=[0,2], w=0, eta=.1
→ w=.1

Average gradient is -1.

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.

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