Analyzing rideshare data

栏目: IT技术 · 发布时间: 4年前

内容简介:Over the past decade, ride-hailing services such as Uber, Lyft, Gett, Juno, and Via have revolutionized the transportation space. However, profitability for drivers varies across all these platforms in complicated ways. Drivers are forced to make mental ca

The process of building the quantitative backbone for an app

Feb 9 ·6min read

Analyzing rideshare data

Original app description

Over the past decade, ride-hailing services such as Uber, Lyft, Gett, Juno, and Via have revolutionized the transportation space. However, profitability for drivers varies across all these platforms in complicated ways. Drivers are forced to make mental calculations based on the time of day, surge rate, wait time to pick up a rider, etc. for each driving service, and choose to ride for a given service at any point based on the optimization of such factors. As a result of this difficult optimization problem — given the number of potential factors as well as the many unknowns — the driver has no certainty that they have chosen the most profitable service with which to ride. Ride King eliminates such uncertainty by pooling historical and to-date data for each driving service based on the driver’s location as well as the time at which the driver is looking to drive. The ultimate goal with Ride King is to eventually extend this optimization service to riders, such that they may be able to select the cheapest rideshare company with which to ride at any given point. The convergence of the respective optimizations for riders and drivers will hopefully detract enough from each rideshare service to engender a better sense of transparency and/or greater payouts for drivers.

Ride King: Ride Intelligently

A look at the raw data

The data collection for this app idea was by no means straightforward. To avoid having their information used for competitive purposes, most rideshare companies will do everything in their power to protect their data. However, with some deliberation, we can actually discover a couple backdoor methods to access these data. All rideshare apps in NYC are under the Taxi and Limousine Commission (TLC) and are required by law to submit data on every ride that occurs. With some investigation, the keen observer will find that TLC is part of the NYC Open Data initiative, which was established to increase transparency in state and city affairs. While the data these rideshare companies do provide are incredibly shallow (minimal information per ride), we can still pull quite a bit of information from them. To start us off, however, I‘m using Uber data from April 2014 (provided generously by the company, fivethirtyeight ) that have a slightly different format to the TLC dataset.

Analyzing rideshare data

Example rows from fivethirtyeight Uber NYC April 2014 dataset

From a quick glance, we can see that each row in this set provides the date, time, location of pickup (in geographic coordinates), and ‘base’. We will get to the last column a bit later—for now, let’s just look at the raw data. Please note that, while we could just plot the raw geographic coordinates, I’ve actually overlaid NYC neighborhood boundary data that was generously made public by Zillow. This now has added another dimension to our data!

Analyzing rideshare data

All Uber pickups from April 2014 in mid/lower Manhattan

Okay, cool. So we can now see all the Uber pickups from April 2014 in Manhattan (zoomed, for readability) with neighborhood boundaries and all! Since the goal of this project is to try and predict the profitability of a rideshare service based on the time of day and location, we’ve only scratched the surface so far, but we can already see that rides are definitely not distributed evenly!


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

数据结构与算法

数据结构与算法

许卓群、杨冬青、唐世渭、张铭 / 高等教育出版社 / 2004-1 / 29.50元

《数据结构与算法》把数据结构的原理和算法分析技术有机地结合在一起,系统地介绍了各种类型的数据结构和排序、检索的各种算法,还引入了一些比较高级的数据结构及相关的算法分析技术。.《数据结构与算法》分为基本数据结构、排序和检索、高级数据结构三部分。借助抽象数据类型,从逻辑结构的角度系统地介绍了线性表、字符串、二叉树、树和图等各种基本数据结构;从算法的角度讨论排序、检索和索引算法;从应用的角度介绍了一些复......一起来看看 《数据结构与算法》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具