SlideShare a Scribd company logo
1 of 9
NYC Taxi Data Analysis
Sona Manukyan
This presentation will cover the following questions:
• The most pick up locations on hourly basis in a day
• How does hot weather affect to the number of taxi trips?
• How did the demand change after green taxi appearance?
• How does the fare differ of “rush hour” and “other hours”?
The most pick up locations on hourly basis in a day
(borough)
0
500000
1000000
1500000
2000000
2500000
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Bronx
Brooklyn
EWR
Manhattan
Queens
Staten Island
Unknown
(blank)
Most of hours in a day, especially after 17, Manhattan have the biggest share, though there a huge amount of
unknown and blank.
Script:
SELECT HOUR(pickup_datetime) As pickup_hour, borough, count(borough) as qty FROM [bigquery-public-
data:new_york.tlc_fhv_trips_2015] group by pickup_hour, borough
Hot weather vs number of taxi trips?
There is a slight difference between hot and normal
weather conditions taxi trips quantity (the graph show the
number of Yellow taxi trips in 2016).
Script for How hot weather affects to number of taxi trips:
SELECT date(pickup_datetime) as pickup_date, count(
pickup_datetime) as qty
FROM [bigquery-public-
data:new_york.tlc_yellow_trips_2016] group by
pickup_date
SELECT CONCAT( year, '-', mo, '-', da) as temp_date, case
when AVG(temp)>=40 then "hot" else "normal" end as
temp_hot
FROM [bigquery-public-data:noaa_gsod.gsod2016] group
by temp_date
358803
353901
351000
352000
353000
354000
355000
356000
357000
358000
359000
360000
hot normal
How did the demand change after green taxi
appearance on yearly basis
1% 9%
12%
11%
0
50000000
100000000
150000000
200000000
2009 2010 2011 2012 2013 2014 2015 2016
yellow_yearly_qty green_yearly_qty
After green taxi appearance in market the yearly quantity of yellow taxi trips decreased. The green
taxi yearly pick ups share in total amount of yellow and green taxi together in 2013 was 1% which
reached to 12% in 2015.
Script for How the demand was changed after green taxi appearance on yearly basis:
SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty
FROM [bigquery-public-data:new_york.tlc_green_trips_2013] group by green_year
SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty
FROM [bigquery-public-data:new_york.tlc_green_trips_2014] group by green_year
SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty
FROM [bigquery-public-data:new_york.tlc_green_trips_2015] group by green_year
SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty
FROM [bigquery-public-data:new_york.tlc_green_trips_2016] group by green_year
SELECT year( pickup_datetime) as yellow_year, count( pickup_datetime) FROM [nyc-tlc:yellow.trips] group by
yellow_year
SELECT year( pickup_datetime) as yellow_year, count( pickup_datetime) as qty
FROM [bigquery-public-data:new_york.tlc_yellow_trips_2016] group by yellow_year
“rush hour” and “other hours” fare difference
-
2,000,000
4,000,000
6,000,000
8,000,000
10,000,000
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hourly taxi pick ups quantity
0.00
5.00
10.00
15.00
20.00
25.00
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Hourly average fare
Script:
SELECT
Hour(pickup_datetime) AS
pickup_hour,
AVG( total_amount ) AS avg_fare,
SUM( total_amount ) AS sum_fare,
COUNT( pickup_datetime) AS qty
FROM [bigquery-public-
data:new_york.tlc_yellow_trips_2016
]
GROUP BY
pickup_hour
The previous graph shows
that, hourly average fare
didn’t change dramatically, so
the sum of fare changes is
due to the hourly changes of
pick up quantity.
What is surprising, the
average fare for rush hours is
less then for other hours
(Rush hour is defined as “if
pick up quantity greater than
the average quantity, then
the hour considers as rush
hour”).
16.3
17.1
15.8
16.0
16.2
16.4
16.6
16.8
17.0
17.2
rush hour other hours
average of fare
109907757
48720367
0
20000000
40000000
60000000
80000000
100000000
120000000
rush hour other hours
sum of fare
Thank You

More Related Content

What's hot

Simplifying it using a disciplined portfolio governance approach
Simplifying it using a disciplined portfolio governance approachSimplifying it using a disciplined portfolio governance approach
Simplifying it using a disciplined portfolio governance approach
p6academy
 
M05 Metamodel
M05 MetamodelM05 Metamodel
M05 Metamodel
Dang Tuan
 

What's hot (18)

Lecture 2: The Concept of Enterprise Architecture
Lecture 2: The Concept of Enterprise ArchitectureLecture 2: The Concept of Enterprise Architecture
Lecture 2: The Concept of Enterprise Architecture
 
Smart Inventory Management - EN
Smart Inventory Management - ENSmart Inventory Management - EN
Smart Inventory Management - EN
 
Practical DoDAF Presentation to INCOSE WMA
Practical DoDAF Presentation to INCOSE WMA Practical DoDAF Presentation to INCOSE WMA
Practical DoDAF Presentation to INCOSE WMA
 
Ch18 service oriented software engineering
Ch18 service oriented software engineeringCh18 service oriented software engineering
Ch18 service oriented software engineering
 
Enterprise Architecture - TOGAF Overview
Enterprise Architecture - TOGAF OverviewEnterprise Architecture - TOGAF Overview
Enterprise Architecture - TOGAF Overview
 
TOGAF
TOGAFTOGAF
TOGAF
 
ICT Strategy vs Governance Framework vs Enterprise Architecture
ICT Strategy vs Governance Framework vs Enterprise ArchitectureICT Strategy vs Governance Framework vs Enterprise Architecture
ICT Strategy vs Governance Framework vs Enterprise Architecture
 
Lecture 3: The Role of Enterprise Architecture Practice
Lecture 3: The Role of Enterprise Architecture PracticeLecture 3: The Role of Enterprise Architecture Practice
Lecture 3: The Role of Enterprise Architecture Practice
 
Simplifying it using a disciplined portfolio governance approach
Simplifying it using a disciplined portfolio governance approachSimplifying it using a disciplined portfolio governance approach
Simplifying it using a disciplined portfolio governance approach
 
Ch16 component based software engineering
Ch16 component based software engineeringCh16 component based software engineering
Ch16 component based software engineering
 
TOGAF 9.2 - Transforming Business
TOGAF 9.2  -  Transforming BusinessTOGAF 9.2  -  Transforming Business
TOGAF 9.2 - Transforming Business
 
BiSL® - Business Information Services Library - Foundation
BiSL® - Business Information Services Library - FoundationBiSL® - Business Information Services Library - Foundation
BiSL® - Business Information Services Library - Foundation
 
M05 Metamodel
M05 MetamodelM05 Metamodel
M05 Metamodel
 
OOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMSOOAD UNIT I UML DIAGRAMS
OOAD UNIT I UML DIAGRAMS
 
Software Architecture
Software ArchitectureSoftware Architecture
Software Architecture
 
Domain specific Software Architecture
Domain specific Software Architecture Domain specific Software Architecture
Domain specific Software Architecture
 
Low Level Design
Low Level DesignLow Level Design
Low Level Design
 
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
Model-based Automotive Software Development using Autosar, UML, and Domain-Sp...
 

Similar to NYC Taxi

HAOLI-UBPL756 Desoto Travel Demand Models
HAOLI-UBPL756 Desoto Travel Demand ModelsHAOLI-UBPL756 Desoto Travel Demand Models
HAOLI-UBPL756 Desoto Travel Demand Models
Hao Li
 
2016_tlc_factbook
2016_tlc_factbook2016_tlc_factbook
2016_tlc_factbook
Jeff Roth
 
foresight-47-congestion-charging-north-america
foresight-47-congestion-charging-north-americaforesight-47-congestion-charging-north-america
foresight-47-congestion-charging-north-america
Clark Savolaine
 
A Wish Called $quander
A Wish Called $quanderA Wish Called $quander
A Wish Called $quander
Catalystian
 
Chapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docx
Chapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docxChapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docx
Chapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docx
sleeperharwell
 
San Francisco Transportation Plan Overview - Fall 2010
San Francisco Transportation Plan Overview - Fall 2010San Francisco Transportation Plan Overview - Fall 2010
San Francisco Transportation Plan Overview - Fall 2010
SanFranciscoTA
 
Effect of Weather on Uber Ridership_rev1 (1)
Effect of Weather on Uber Ridership_rev1 (1)Effect of Weather on Uber Ridership_rev1 (1)
Effect of Weather on Uber Ridership_rev1 (1)
Anusha Mamillapalli
 

Similar to NYC Taxi (20)

鄭世昐/未來城市的任意門 (Mobility on Demand for Future Cities)
鄭世昐/未來城市的任意門 (Mobility on Demand for Future Cities)鄭世昐/未來城市的任意門 (Mobility on Demand for Future Cities)
鄭世昐/未來城市的任意門 (Mobility on Demand for Future Cities)
 
HAOLI-UBPL756 Desoto Travel Demand Models
HAOLI-UBPL756 Desoto Travel Demand ModelsHAOLI-UBPL756 Desoto Travel Demand Models
HAOLI-UBPL756 Desoto Travel Demand Models
 
2016_tlc_factbook
2016_tlc_factbook2016_tlc_factbook
2016_tlc_factbook
 
San Francisco Transportation Plan - May 30, 2013 Board Workshop Presentations
San Francisco Transportation Plan - May 30, 2013 Board Workshop PresentationsSan Francisco Transportation Plan - May 30, 2013 Board Workshop Presentations
San Francisco Transportation Plan - May 30, 2013 Board Workshop Presentations
 
A travel behaviour change framework for the city of Cape Town.pdf
A travel behaviour change framework for the city of Cape Town.pdfA travel behaviour change framework for the city of Cape Town.pdf
A travel behaviour change framework for the city of Cape Town.pdf
 
foresight-47-congestion-charging-north-america
foresight-47-congestion-charging-north-americaforesight-47-congestion-charging-north-america
foresight-47-congestion-charging-north-america
 
Next Generation Intelligent Transportation: Solutions for Smart Cities
Next Generation Intelligent Transportation: Solutions for Smart CitiesNext Generation Intelligent Transportation: Solutions for Smart Cities
Next Generation Intelligent Transportation: Solutions for Smart Cities
 
Case Studies in Managing Traffic in a Developing Country with Privacy-Preserv...
Case Studies in Managing Traffic in a Developing Country with Privacy-Preserv...Case Studies in Managing Traffic in a Developing Country with Privacy-Preserv...
Case Studies in Managing Traffic in a Developing Country with Privacy-Preserv...
 
San Francisco Smart City Challenge
San Francisco Smart City Challenge San Francisco Smart City Challenge
San Francisco Smart City Challenge
 
A Wish Called $quander
A Wish Called $quanderA Wish Called $quander
A Wish Called $quander
 
Global traffic scorecard di Inrix
Global traffic scorecard di InrixGlobal traffic scorecard di Inrix
Global traffic scorecard di Inrix
 
Chapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docx
Chapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docxChapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docx
Chapter 1 IntroductionIn The High Cost of Free Parking, Dr. Danie.docx
 
Government Policies – Transit - Canada - February 2018
Government Policies – Transit -  Canada - February 2018Government Policies – Transit -  Canada - February 2018
Government Policies – Transit - Canada - February 2018
 
Cahier_Traffic_volume.pptx
Cahier_Traffic_volume.pptxCahier_Traffic_volume.pptx
Cahier_Traffic_volume.pptx
 
Transit - Ridership and Transit Revenue - Canada - May 2018
Transit - Ridership and Transit Revenue - Canada - May 2018Transit - Ridership and Transit Revenue - Canada - May 2018
Transit - Ridership and Transit Revenue - Canada - May 2018
 
Marketing Analytics Final Project
Marketing Analytics Final ProjectMarketing Analytics Final Project
Marketing Analytics Final Project
 
San Francisco Transportation Plan Overview - Fall 2010
San Francisco Transportation Plan Overview - Fall 2010San Francisco Transportation Plan Overview - Fall 2010
San Francisco Transportation Plan Overview - Fall 2010
 
A Tale of Two Forecasts
A Tale of Two ForecastsA Tale of Two Forecasts
A Tale of Two Forecasts
 
Effect of Weather on Uber Ridership_rev1 (1)
Effect of Weather on Uber Ridership_rev1 (1)Effect of Weather on Uber Ridership_rev1 (1)
Effect of Weather on Uber Ridership_rev1 (1)
 
Transportasi kota malang
Transportasi kota malangTransportasi kota malang
Transportasi kota malang
 

Recently uploaded

Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Bertram Ludäscher
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted KitAbortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh +966572737505 get cytotec
 
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get CytotecAbortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontangobat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
siskavia95
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
23050636
 
bams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxbams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptx
JocylDuran
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
yulianti213969
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 

Recently uploaded (20)

DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTSDBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
DAA Assignment Solution.pdf is the best1
DAA Assignment Solution.pdf is the best1DAA Assignment Solution.pdf is the best1
DAA Assignment Solution.pdf is the best1
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
Solution manual for managerial accounting 8th edition by john wild ken shaw b...
Solution manual for managerial accounting 8th edition by john wild ken shaw b...Solution manual for managerial accounting 8th edition by john wild ken shaw b...
Solution manual for managerial accounting 8th edition by john wild ken shaw b...
 
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted KitAbortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
Abortion pills in Riyadh Saudi Arabia| +966572737505 | Get Cytotec, Unwanted Kit
 
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get CytotecAbortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
Abortion pills in Doha {{ QATAR }} +966572737505) Get Cytotec
 
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontangobat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
bams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxbams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptx
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 

NYC Taxi

  • 1. NYC Taxi Data Analysis Sona Manukyan
  • 2. This presentation will cover the following questions: • The most pick up locations on hourly basis in a day • How does hot weather affect to the number of taxi trips? • How did the demand change after green taxi appearance? • How does the fare differ of “rush hour” and “other hours”?
  • 3. The most pick up locations on hourly basis in a day (borough) 0 500000 1000000 1500000 2000000 2500000 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Bronx Brooklyn EWR Manhattan Queens Staten Island Unknown (blank) Most of hours in a day, especially after 17, Manhattan have the biggest share, though there a huge amount of unknown and blank. Script: SELECT HOUR(pickup_datetime) As pickup_hour, borough, count(borough) as qty FROM [bigquery-public- data:new_york.tlc_fhv_trips_2015] group by pickup_hour, borough
  • 4. Hot weather vs number of taxi trips? There is a slight difference between hot and normal weather conditions taxi trips quantity (the graph show the number of Yellow taxi trips in 2016). Script for How hot weather affects to number of taxi trips: SELECT date(pickup_datetime) as pickup_date, count( pickup_datetime) as qty FROM [bigquery-public- data:new_york.tlc_yellow_trips_2016] group by pickup_date SELECT CONCAT( year, '-', mo, '-', da) as temp_date, case when AVG(temp)>=40 then "hot" else "normal" end as temp_hot FROM [bigquery-public-data:noaa_gsod.gsod2016] group by temp_date 358803 353901 351000 352000 353000 354000 355000 356000 357000 358000 359000 360000 hot normal
  • 5. How did the demand change after green taxi appearance on yearly basis 1% 9% 12% 11% 0 50000000 100000000 150000000 200000000 2009 2010 2011 2012 2013 2014 2015 2016 yellow_yearly_qty green_yearly_qty After green taxi appearance in market the yearly quantity of yellow taxi trips decreased. The green taxi yearly pick ups share in total amount of yellow and green taxi together in 2013 was 1% which reached to 12% in 2015.
  • 6. Script for How the demand was changed after green taxi appearance on yearly basis: SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty FROM [bigquery-public-data:new_york.tlc_green_trips_2013] group by green_year SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty FROM [bigquery-public-data:new_york.tlc_green_trips_2014] group by green_year SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty FROM [bigquery-public-data:new_york.tlc_green_trips_2015] group by green_year SELECT year( pickup_datetime) as green_year, count( pickup_datetime) as qty FROM [bigquery-public-data:new_york.tlc_green_trips_2016] group by green_year SELECT year( pickup_datetime) as yellow_year, count( pickup_datetime) FROM [nyc-tlc:yellow.trips] group by yellow_year SELECT year( pickup_datetime) as yellow_year, count( pickup_datetime) as qty FROM [bigquery-public-data:new_york.tlc_yellow_trips_2016] group by yellow_year
  • 7. “rush hour” and “other hours” fare difference - 2,000,000 4,000,000 6,000,000 8,000,000 10,000,000 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Hourly taxi pick ups quantity 0.00 5.00 10.00 15.00 20.00 25.00 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Hourly average fare Script: SELECT Hour(pickup_datetime) AS pickup_hour, AVG( total_amount ) AS avg_fare, SUM( total_amount ) AS sum_fare, COUNT( pickup_datetime) AS qty FROM [bigquery-public- data:new_york.tlc_yellow_trips_2016 ] GROUP BY pickup_hour
  • 8. The previous graph shows that, hourly average fare didn’t change dramatically, so the sum of fare changes is due to the hourly changes of pick up quantity. What is surprising, the average fare for rush hours is less then for other hours (Rush hour is defined as “if pick up quantity greater than the average quantity, then the hour considers as rush hour”). 16.3 17.1 15.8 16.0 16.2 16.4 16.6 16.8 17.0 17.2 rush hour other hours average of fare 109907757 48720367 0 20000000 40000000 60000000 80000000 100000000 120000000 rush hour other hours sum of fare