cities and fleets - wordpress.com · 2018. 6. 14. · the current data science toolbox: •...

23
Cities and fleets Damon Wischik UNIVERSITY OF CAMBRIDGE Dept. of Computer Science and Technology

Upload: others

Post on 01-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

CitiesandfleetsDamonWischik

UNIVERSITY OF CAMBRIDGE

Dept.ofComputerScienceandTechnology

Page 2: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

DRIVER CITY§  canchoosewhichroutetotake§  wantsthefastesttraveltime

§  providesinfrastructure§  (hopestomaximizetotalutility)

Theclassicmodelofrouting...[Wardropequilibrium]

...canleadtoperverseoutcomes,e.g.thecitybuildsanewroad,andeveryone’straveltimegoesup[Braess’sparadox]Thisisthe“priceofanarchy”.

USER RIDESHAREFLEET CITY§  canchoosemodeoftransport

§  wantslowestprice

§  cansetorigin-basedsurgemultipliers

§  needstorebalancethefleet§  wantstomaximizeprofit

§  setspublictransitfares§  (hopestomaximizetotalutility)

Inaworldwithmoredecisionmakers...

...thereismoreanarchyhencemorewaysforthingstogowrong,&alsonewoptionsforjoined-upcitymanagement.

Page 3: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

Whatcouldgetbetter?Afleetoperator(ifit’sadominantplayer)willinternalizethecostofanarchy,soitwillavoidBraess’sparadox.

Page 4: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

A B

C D

cityreducesA→Brailfare

£3

£2

£6

£2

Whatcouldgowrong?§  Therecanbeperverseoutcomes,inthespiritofBraess’sparadox

A B

C D

totalrailpassengers=20totalrideshareprofit=£38

£6

£2

£6

£2

£0.1

£1

£0.1

10pax

10pax

12pax

12pax

totalrailpassengers=10totalrideshareprofit=£21.93

Page 5: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

Relatedwork:IntheInternet,weimplementedmultipathloadbalancing.Withtheright‘price’signals,thenetworkachievescompleteresourcepooling.

Threeflowssharefourresources,asthoughthenetworkweremadeupofasingleresource

resourcepoolingofroads

Page 6: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

Therearenewoptionsforjoined-upcitymanagement

Page 7: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

Can’talltrafficproblemsbesolvedwiththerightcongestionpricing?

Singapore’sElectronicRoadPricing

Page 8: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Thecitysimulatesavirtualroadnetworkwhosecapacityis95%ofwhat’sreallythere,andmeasurescongestion

§  Fleetoperatorsagreetosetroutesandpricesaccordingtovirtualcongestion[orairquality,…]

§  Thecitysendsreal-timevirtualcongestionsignals,andthefleetssendenoughdatathatthecitycanverifycompliance

§  Thestreetsarekeptfree-flowing

§  Inreturn,thefleetsarepermittedspecialaccesstorestrictedzones

Therearenewoptionsforjoined-upcitymanagement

Page 9: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

What’sthewayforward?•  Apps+algorithmsmovefasterthancities•  FleetoperatorshavecrackedUX

(thusthey’vegotgreatdatasets+levers)•  Eachcityhasitsown

issues,datasets,andcontrollevers

•  Weshouldn’tjustbedevisingmodels•  Weshoulddeviseadashboard

–adataplayground–foroperatorstoeasilyexploreperformance/policies/systemdesigns

•  Betterthancongestioncharging,citiesandfleetscansolveproblemstogether

Page 10: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

Whatdoyoudoinadataplayground?

WhatarethemostcommonstrategiesI’veused(asastatistician/modeller/programmer)andwhattoolswouldhavemademyjobeasier?

Page 11: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

explore“userstories”simulatenewscenarios

compareandoptimizepolicies

Whatdoyoudoinadataplayground?

Page 12: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Thedataplaygroundshowsgranulardata(reconstructed,ifneedbe,usingmachinelearning)sothattheoperatorcanseeandmeasureeverything

Page 13: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

byIanLewis,directorofsmartCambridge

§  Seereal-timedatafeedsandinferences§  Workwithallsortsofdatasets,sinceeachcityisdifferent

Page 14: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Intuitivelyexplorerichdata,especiallyabout“userstories”Example:howdotouriststravel?

Page 15: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Intuitivelyexplorerichdata,especiallyabout“userstories”Example:howdotouriststravel?

tripstothenightsafari

Page 16: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Intuitivelyexplorerichdata,especiallyabout“userstories”Example:howdotouriststravel?

safari-goers

Page 17: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Intuitivelyexplorerichdata,especiallyabout“userstories”Example:howdotouriststravel?

safari-goers

Page 18: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Intuitivelyexplorerichdata,especiallyabout“userstories”Example:howdotouriststravel?

tripsbysafari-goers

Page 19: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  Intuitivelyexplorerichdata,especiallyabout“userstories”Example:howdotouriststravel?

tripsbysafari-goerssafari-goertruefalse

§  andsupportthisexplorationwithmachinelearning

Page 20: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  i.e.thedataplaygroundprovidesaUXforinteractingwithhierarchicaldataExcelandTableauareorientedaroundtabulardataGoogleAnalyticsetc.areorientedaroundhierarchicaldatasets,buttheiranalysesarehardcoded

users

trips

waypoints

Page 21: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  “Deconstruct”thesimulatorandembeditinthedataplaygroundbytreatingitascomposableoperationsondata

Page 22: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

§  “Deconstruct”thesimulatorandembeditinthedataplayground:interactvisuallywiththesimulator’sinputandoutput

§  Short-circuitthe“data→model→simulation”pipeline:useresampleduserstoriesetc.

Page 23: Cities and fleets - WordPress.com · 2018. 6. 14. · The current data science toolbox: • emphasis on user stories • ML-powered data clustering + highlighting • composable empirical

Thecurrentdatasciencetoolbox:

•  emphasisonuserstories•  ML-powereddataclustering+highlighting•  composableempiricalsimulation

SQLplyr

pandasdata.table

ggplotd3

interactivevis

•  everyqueryhasanaturalvisualization•  interactwithviz⟺modifyquery

ThenextExcel:

spark

mlepdesim