PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Machine Learning/Two Sigma

Predict Bike Dock Demand

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's competency in time-series demand forecasting, covering temporal target definition, temporal feature engineering, model family selection, evaluation metric alignment with business priorities, and handling data-quality issues like missing data, cold-starts, and distribution shifts.

  • hard
  • Two Sigma
  • Machine Learning
  • Data Scientist

Predict Bike Dock Demand

Company: Two Sigma

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Technical Screen

You are working on a docked bike-sharing system. Build a model that predicts how many bikes will be checked out from a specific dock in the next hour. Assume you have access to: - `trips(trip_id, start_time, start_station_id, end_station_id, user_type)` - `station_status(station_id, ts, bikes_available, docks_available, capacity)` - `weather(ts, temperature, precipitation, wind_speed)` - `calendar(date, is_holiday, is_weekend, special_event)` Discuss: 1. How you would define the prediction target and unit of analysis. 2. What features you would engineer without leaking future information. 3. What model family you would start with and why. 4. Which evaluation metrics you would use, and how your choice changes if the business cares more about stock-outs than raw count error. 5. How you would split train and validation data for a time-series problem. 6. How you would prevent overfitting and handle cold-start stations, missing data, and distribution shifts such as severe weather or holidays.

Quick Answer: This question evaluates a data scientist's competency in time-series demand forecasting, covering temporal target definition, temporal feature engineering, model family selection, evaluation metric alignment with business priorities, and handling data-quality issues like missing data, cold-starts, and distribution shifts.

Related Interview Questions

  • Analyze Temperatures and Update Regression - Two Sigma (medium)
  • How would you forecast bike demand? - Two Sigma (hard)
  • Predict bike demand and avoid overfitting - Two Sigma (hard)
  • How detect duplicate card records? - Two Sigma (medium)
  • How to forecast bike dock demand - Two Sigma (easy)
Two Sigma logo
Two Sigma
Mar 18, 2026, 12:00 AM
Data Scientist
Technical Screen
Machine Learning
18
0
Loading...

You are working on a docked bike-sharing system. Build a model that predicts how many bikes will be checked out from a specific dock in the next hour.

Assume you have access to:

  • trips(trip_id, start_time, start_station_id, end_station_id, user_type)
  • station_status(station_id, ts, bikes_available, docks_available, capacity)
  • weather(ts, temperature, precipitation, wind_speed)
  • calendar(date, is_holiday, is_weekend, special_event)

Discuss:

  1. How you would define the prediction target and unit of analysis.
  2. What features you would engineer without leaking future information.
  3. What model family you would start with and why.
  4. Which evaluation metrics you would use, and how your choice changes if the business cares more about stock-outs than raw count error.
  5. How you would split train and validation data for a time-series problem.
  6. How you would prevent overfitting and handle cold-start stations, missing data, and distribution shifts such as severe weather or holidays.

Solution

Show

Comments (0)

Sign in to leave a comment

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
PracHub

Master your tech interviews with 7,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
  • Compare Platforms
  • Discord Community

Support

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

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.