PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Two Sigma

How to forecast bike dock demand

Last updated: Mar 29, 2026

Quick Overview

This question evaluates competency in time-series forecasting and demand prediction, including feature engineering, model selection and evaluation, handling nonstationarity, data leakage, overfitting, and operational failure modes.

  • easy
  • Two Sigma
  • Machine Learning
  • Data Scientist

How to forecast bike dock demand

Company: Two Sigma

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Technical Screen

You operate a shared city-bike system. For a given dock (station), you want to **predict demand in the next hour**. ## Task Design an approach to predict: - **Target:** number of bike check-outs (or net bike outflow) from this dock in the next **1 hour**. ## Data (assume available) - Historical trips: `trip_id, start_station_id, end_station_id, start_time, end_time` - Station metadata: `station_id, lat, lon, capacity` - Exogenous signals (optional but common): weather, holidays/events, nearby transit, current dock inventory (bikes available / docks available) ## Questions 1. How would you **formulate** the prediction problem (regression vs classification vs time series)? 2. What **features** would you build (time-based, lagged, seasonality, spatial, inventory constraints, weather)? 3. What model families would you consider (baselines to advanced), and how would you **evaluate** them (metrics + train/validation split)? 4. How would you **prevent overfitting** in this setting (feature design, regularization, validation strategy, leakage prevention)? 5. What are key **failure modes / edge cases** (cold-start stations, special events, missing data, concept drift)?

Quick Answer: This question evaluates competency in time-series forecasting and demand prediction, including feature engineering, model selection and evaluation, handling nonstationarity, data leakage, overfitting, and operational failure modes.

Related Interview Questions

  • Analyze Temperatures and Update Regression - Two Sigma (medium)
  • How would you forecast bike demand? - Two Sigma (hard)
  • Predict Bike Dock Demand - Two Sigma (hard)
  • Predict bike demand and avoid overfitting - Two Sigma (hard)
  • How detect duplicate card records? - Two Sigma (medium)
|Home/Machine Learning/Two Sigma

How to forecast bike dock demand

Two Sigma logo
Two Sigma
Feb 13, 2026, 3:44 PM
easyData ScientistTechnical ScreenMachine Learning
4
0
Loading...

You operate a shared city-bike system. For a given dock (station), you want to predict demand in the next hour.

Task

Design an approach to predict:

  • Target: number of bike check-outs (or net bike outflow) from this dock in the next 1 hour .

Data (assume available)

  • Historical trips: trip_id, start_station_id, end_station_id, start_time, end_time
  • Station metadata: station_id, lat, lon, capacity
  • Exogenous signals (optional but common): weather, holidays/events, nearby transit, current dock inventory (bikes available / docks available)

Questions

  1. How would you formulate the prediction problem (regression vs classification vs time series)?
  2. What features would you build (time-based, lagged, seasonality, spatial, inventory constraints, weather)?
  3. What model families would you consider (baselines to advanced), and how would you evaluate them (metrics + train/validation split)?
  4. How would you prevent overfitting in this setting (feature design, regularization, validation strategy, leakage prevention)?
  5. What are key failure modes / edge cases (cold-start stations, special events, missing data, concept drift)?
Loading comments...

Browse More Questions

More Machine Learning•More Two Sigma•More Data Scientist•Two Sigma Data Scientist•Two Sigma 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,000+ 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.