PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Stripe

Design a hierarchical forecast for transactions

Last updated: Mar 29, 2026

Quick Overview

This question evaluates skills in hierarchical time-series forecasting, covering model selection and reconciliation, cross-validation design, intermittent and cold-start series handling, exogenous regressor treatment, uncertainty quantification, and operational monitoring within the Machine Learning/time-series forecasting domain.

  • medium
  • Stripe
  • Machine Learning
  • Data Scientist

Design a hierarchical forecast for transactions

Company: Stripe

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Onsite

Stripe wants a country×industry daily GMV forecast for the next 90 days (2025-09-01 to 2025-11-29) using 3+ years of history. You have features: day-of-week, country holidays, marketing_spend_usd, avg_risk_score, FX rates to USD, CPI, and known product launch flags. Design an end-to-end, hierarchical solution: - Modeling: Compare ETS/Prophet-like additive seasonality vs gradient-boosted trees on TS features vs global RNN/Temporal Fusion Transformer. Pick one primary approach and specify how you’ll reconcile segment forecasts to the country and global totals (e.g., MinT, BU, TOPDOWN). Provide concrete formulas or references for reconciliation and why they fit Stripe’s cross-sectional structure. - Cross-validation: Specify rolling-origin CV with initial window, step size, and number of folds; include leakage-avoidant feature construction. Define the primary metric as wMAPE weighted by segment GMV; justify choice over RMSE/MAPE/Pinball loss. - Intermittent/sparse series: Propose a method (e.g., Croston/TSB, zero-inflated models) and how you’ll blend it with the main model via meta-learning. - Cold-start segments: Outline partial pooling or hierarchical Bayesian shrinkage across industries within a country; define priors and hyperparameters. - Exogenous regressors: Which to include, how to lag/transform FX, CPI, and marketing; how to handle non-stationarity and scale. - Outliers/regime shifts: Detect and treat events (e.g., policy change on 2024-07-01) using robust loss or event dummies; explain your decision rules. - Uncertainty: Produce calibrated 90% prediction intervals (conformal, quantile regression, or simulation); describe calibration diagnostics. - Monitoring/retraining: Define drift tests, alert thresholds, retrain cadence, and rollback criteria. - Limitations: List 3 failure modes and mitigations. Answer with a specific pipeline (data prep steps, model classes, key hyperparameters, reconciliation method, and evaluation design).

Quick Answer: This question evaluates skills in hierarchical time-series forecasting, covering model selection and reconciliation, cross-validation design, intermittent and cold-start series handling, exogenous regressor treatment, uncertainty quantification, and operational monitoring within the Machine Learning/time-series forecasting domain.

Related Interview Questions

  • Normalize targets for multitask regression - Stripe (medium)
  • Design a model for subscription adoption prediction - Stripe (hard)
  • Design a target‑user prediction system - Stripe (hard)
  • Design a leak-free time-split model - Stripe (hard)
|Home/Machine Learning/Stripe

Design a hierarchical forecast for transactions

Stripe logo
Stripe
Oct 13, 2025, 9:49 PM
mediumData ScientistOnsiteMachine Learning
2
0
Loading...

Stripe wants a country×industry daily GMV forecast for the next 90 days (2025-09-01 to 2025-11-29) using 3+ years of history. You have features: day-of-week, country holidays, marketing_spend_usd, avg_risk_score, FX rates to USD, CPI, and known product launch flags. Design an end-to-end, hierarchical solution:

  • Modeling: Compare ETS/Prophet-like additive seasonality vs gradient-boosted trees on TS features vs global RNN/Temporal Fusion Transformer. Pick one primary approach and specify how you’ll reconcile segment forecasts to the country and global totals (e.g., MinT, BU, TOPDOWN). Provide concrete formulas or references for reconciliation and why they fit Stripe’s cross-sectional structure.
  • Cross-validation: Specify rolling-origin CV with initial window, step size, and number of folds; include leakage-avoidant feature construction. Define the primary metric as wMAPE weighted by segment GMV; justify choice over RMSE/MAPE/Pinball loss.
  • Intermittent/sparse series: Propose a method (e.g., Croston/TSB, zero-inflated models) and how you’ll blend it with the main model via meta-learning.
  • Cold-start segments: Outline partial pooling or hierarchical Bayesian shrinkage across industries within a country; define priors and hyperparameters.
  • Exogenous regressors: Which to include, how to lag/transform FX, CPI, and marketing; how to handle non-stationarity and scale.
  • Outliers/regime shifts: Detect and treat events (e.g., policy change on 2024-07-01) using robust loss or event dummies; explain your decision rules.
  • Uncertainty: Produce calibrated 90% prediction intervals (conformal, quantile regression, or simulation); describe calibration diagnostics.
  • Monitoring/retraining: Define drift tests, alert thresholds, retrain cadence, and rollback criteria.
  • Limitations: List 3 failure modes and mitigations. Answer with a specific pipeline (data prep steps, model classes, key hyperparameters, reconciliation method, and evaluation design).
Loading comments...

Browse More Questions

More Machine Learning•More Stripe•More Data Scientist•Stripe Data Scientist•Stripe Machine Learning•Data Scientist Machine Learning

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.