Mix and Match: Markov Chains and Mixing Times for Matching in Rideshare

Michael J. Curry, John P. Dickerson, Karthik Abinav Sankararaman, Aravind Srinivasan, Yuhao Wan, Pan Xu

Abstract

This paper investigates the "limit assumption" in rideshare dispatching—the idea that driver distributions quickly reach a steady state. We analyze natural dispatch policies under common urban "hot-spot" conditions and prove that these systems converge exponentially fast to their stationary distributions. This rapid mixing makes simple, stable policies competitive with complex reinforcement learning approaches, providing theoretical justification for their use in real-time dispatching.

Introduction

Rideshare platforms like Uber and Lyft manage a massive, dynamic coordination problem: matching a moving supply of drivers to a shifting demand of riders. Researchers often model this using Markov chains, where the "state" represents the current distribution of drivers across a city grid.

A common assumption in literature is that these systems reach a stationary distribution (a long-term steady state) almost instantly. However, if the system takes too long to "mix" (reach that state), any optimization strategy based on that limit is practically useless. Given the exponential number of possible states in a city-wide grid, "slow mixing" would be a significant hurdle for real-time dispatching. This paper addresses the fundamental question: How long does it actually take for a rideshare system to reach equilibrium?

Methods

The authors model the city as a grid and the dispatching process as a Markov chain. They analyze two specific classes of non-adaptive dispatch policies:

  1. Samp($\alpha$): When a request arrives at location $u$, the platform checks for a driver at $u$ with probability $\alpha$, or checks one of its neighbors with probability $(1-\alpha)/4$.
  2. Rand-Perm($\phi$): The platform checks the request's origin first; if no driver is there, it checks neighbors in a fixed, randomized order.
Illustration of a state transition in the Markov chain model.

To prove rapid convergence, the authors rely on a "hot-spot" assumption: the existence of at least one location (like a downtown core or airport) that frequently sends and receives trips from everywhere else. Mathematically, they use Path Coupling to demonstrate that the "distance" between any two possible driver distributions shrinks exponentially over time.

Datasets and Evaluation

The study utilizes two primary data sources:

  • Synthetic Data: A simulated 5x5 grid with 10 cars, used to verify exact theoretical convergence rates under uniform arrival conditions.
  • Real-World Data: Trip records for New York City Yellow Cabs (January 2013). These records were mapped to a 21x11 grid of Manhattan to learn realistic arrival rates for different times of day (Morning, Afternoon, Evening).

Key Insights

  • The "Hot-Spot" as a Catalyst: The presence of a "hot-spot" ensures the Markov chain is irreducible and aperiodic, allowing the system to recover from any initial state and reach equilibrium quickly.
  • Rapid Mixing: Despite the vast state space, the system is "rapidly mixing," with convergence occurring in $O(poly \log |\Omega|)$ time. This validates the "limit assumption" for practical applications.
  • Stability vs. Optimization: While Reinforcement Learning (DQN) can find higher-profit paths, it often lacks stability. Simple policies like Samp($\alpha$) provide guaranteed performance levels and reach a stable state much faster and more reliably.

Results

The authors proved that the error between the current state and the steady state vanishes at an exponential rate of $\Theta(\beta^t)$, where $\beta < 1$. In simulations, the Samp(0.8) policy converged exactly to predicted values.

Comparison of driver distributions on the NYC Manhattan grid.

On the NYC dataset, these simple policies tracked the performance of the "Greedy" algorithm (always picking the closest driver) very closely, while providing the added benefit of theoretical convergence guarantees. Even when theoretical assumptions like IID arrivals were relaxed, the system exhibited strong empirical stability.

Conclusion and Future Work

This work confirms that the "limit assumption" is a safe bet for rideshare practitioners due to the rapid mixing properties of urban driver distributions. Future research may expand this model to include driver churn (open-world systems), non-instantaneous trip times, and formal theories for non-stationary demand.

Summary updated

BibTeX
@inproceedings{curry2019mix,
  author = {Michael J. Curry and John P. Dickerson and Karthik Abinav Sankararaman and Aravind Srinivasan and Yuhao Wan and Pan Xu},
  title = {{Mix and Match: Markov Chains and Mixing Times for Matching in Rideshare}},
  booktitle = {WINE},
  year = {2019},
  url = {https://openreview.net/forum?id=PudE2jmOgLL},
}
Figure