Compare Trip Speeds Across Time

Quick Overview

Derive average trip speed, test whether speed is materially the same across the weeks of the month, and develop a hypothesis for average speed as a function of time of day.

Compare Trip Speeds Across Time

Company: Capital One

Role: Software Engineer

Category: Statistics & Math

Difficulty: medium

Interview Round: Online Assessment

# Compare Trip Speeds Across Time Derive average trip speed from distance and duration. Test whether average speeds are materially the same across all weeks of September, and develop a hypothesis for how average speed varies by time of day. ### Constraints & Assumptions - State units and timezone. - Exclude or separately report nonpositive durations, negative distances, impossible timestamps, and implausible speeds. - “Materially the same” requires a practical threshold, not only a p-value. ### Clarifying Questions to Ask - How are partial weeks at the month's boundaries defined? - Is the estimand trip-weighted mean speed, distance divided by total time, or another measure? - What speed difference would matter operationally? ```hint Define the estimand before the test The mean of per-trip speeds is not the same as total distance divided by total duration. ``` ### What a Strong Answer Covers - A defensible speed calculation and quality filters. - Week definitions, exploratory summaries, and a suitable inferential method. - Effect sizes, uncertainty, multiple comparisons, and practical significance. - A time-of-day pattern evaluated against plausible confounders. ### Follow-up Questions - How would repeated traffic patterns by weekday affect the test? - How would you distinguish congestion from a changing trip-location mix?

Overview: Derive average trip speed, test whether speed is materially the same across the weeks of the month, and develop a hypothesis for average speed as a function of time of day.

|Home/Statistics & Math/Capital One
Capital One logo
Capital One
Sep 27, 2020
mediumSoftware EngineerOnline AssessmentStatistics & Math
1
0

Compare Trip Speeds Across Time

Derive average trip speed from distance and duration. Test whether average speeds are materially the same across all weeks of September, and develop a hypothesis for how average speed varies by time of day.

Constraints & Assumptions

  • State units and timezone.
  • Exclude or separately report nonpositive durations, negative distances, impossible timestamps, and implausible speeds.
  • “Materially the same” requires a practical threshold, not only a p-value.

Clarifying Questions to Ask Guidance

  • How are partial weeks at the month's boundaries defined?
  • Is the estimand trip-weighted mean speed, distance divided by total time, or another measure?
  • What speed difference would matter operationally?

What a Strong Answer Covers Guidance

  • A defensible speed calculation and quality filters.
  • Week definitions, exploratory summaries, and a suitable inferential method.
  • Effect sizes, uncertainty, multiple comparisons, and practical significance.
  • A time-of-day pattern evaluated against plausible confounders.

Follow-up Questions Guidance

  • How would repeated traffic patterns by weekday affect the test?
  • How would you distinguish congestion from a changing trip-location mix?
Loading comments...