SlideShare a Scribd company logo
1 of 8
A Report On –
EXPERIMENT - 1
(Presentation of Traffic Data Using Box Plot in Ms Excel)
Submitted by-
SHRIKRISHNA KESHARWANI
Roll no.-
22CEM3R23
Subject-
TRANSPORTATION ANALYTICS LABORATORY
Bachelor of Technology
In
TRANSPORTATION ENGINEERING
DEPARTMENT OF CIVIL ENGINEERING
NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL
SEPTEMBER, 2022
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 2
Table of Contents
1. Objectives-..........................................................................................................................3
2. Software Used- ...................................................................................................................3
3. Theory- ...............................................................................................................................3
4. Procedure-...........................................................................................................................3
5. Analysis of Data-................................................................................................................4
6. Results-...............................................................................................................................8
7. Conclusion-.........................................................................................................................8
References..................................................................................................................................8
List of Tables-
Table 1 Analysis of data ............................................................................................................4
Table 2- Five-point summary and Calculation for Boxplot using Quartiles .............................6
Table 3- Five-point summary and Calculation to obtain Boxplot using Percentiles .................6
List of Figures-
Figure 1 Bar graph .....................................................................................................................5
Figure 2 Total count pie chart....................................................................................................5
Figure 3 Mean Pie chart.............................................................................................................5
Figure 4 Box plot with quartile..................................................................................................7
Figure 5 Box plot with percentiles.............................................................................................7
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 3
1. Objectives-
Presentation of five number summary of speed data using box plot in MS Excel.
2. Software Used-
MS Excel (2016 version)
3. Theory-
The boxplot a simple alternative to the histogram that contains similar features as the
histogram, is easier to graph, and includes measures of location, spread, skewness, and a rule
for flagging outliers. The key components of the boxplot consist of Tukey’s five number
summary. These are Median, upper quartile, lower quartile, largest value, smallest value.
The box-and-whisker plot has a box at the center that contains approximately 50% of the
middle observations. The horizontal line inside the plot is the median, Q2, which provides a
nice summary measure for the data center. The upper and lower horizontal lines enclosing the
box are the values of Q3, and Q1, respectively. From these, one can obtain the interquartile
range, IQR = Q3 – Q1, which is a common robust measure of spread. Skewness can also be
observed by comparing Q3 – Q2 with Q2 – Q1. If Q2 – Q1 > Q3 – Q2 that means the curve will
be negatively skewed.
4. Procedure-
a) Count the number of data points in the array using count () function.
b) Find the minimum and maximum values in the array using functions min () and
max () respectively.
c) Find the three quartiles of the dataset using Quartile () function.
d) Now calculate Q1 – minimum, Q2 – Q1, Q3 – Q2, Maximum – Q3.
e) Repeat above calculations for all classes of the data.
f) Insert a stacked column chart using the values of Q1, Q2 – Q1, Q3 – Q2.
g) Double click on graph and change the fill of stacked to “no fill”.
h) Add error bars using more elements of the chart.
i) Add chart elements like chart title, axis titles and legends from chart elements
option.
j) Repeat same procedure when plotting box plot using percentile, just change the
function to Percentile () in step 3.
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 4
5. Analysis of Data-
Line graph-
x y
10 5
20 15
30 22
40 32
50 42
60 53
70 65
80 81
90 91
100 99
Table 1 Analysis of data
Small Cars Big Cars 2w 3W LCV HCV TOTAL
count 234 136 231 171 139 218 1129
minimum 21 28 19 21 22 22 133
maximum 80 79 43 56 67 66 391
range 59 51 24 35 45 44 258
mean 48 53 33 35 43 43 255
median 47 53 33 35 45 43 256
standard deviation 11 10 6 7 9 8 51
variance 122 107 39 45 75 63 451
5
15
22
32
42
53
65
81
91
99
0
20
40
60
80
100
120
0 20 40 60 80 100 120
No.
of
vechiles
speed (kmph)
Speed graph
SPEED
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 5
Bar graph-
Figure 1 Bar graph
Pie chart-
Figure 2 Total count pie chart
Figure 3 Mean Pie chart
0
50
100
150
200
250
count minimum maximum range mean median standard
deviation
variance
No.
of
vehicles-
Small Cars
Big Cars
2w
3W
LCV
HCV
Small Cars
21%
Big Cars
12%
2w
21%
3W
15%
LCV
12%
HCV
19%
Total count
Small Cars
Big Cars
2w
3W
LCV
HCV
Small Cars
19%
Big Cars
21%
2w
12%
3W
14%
LCV
17%
HCV
17%
mean
Small Cars
Big Cars
2w
3W
LCV
HCV
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 6
Table 2- Five-point summary and Calculation for Boxplot using Quartiles
Small
Cars
Big
Cars
2W 3W LCV HCV
Minimum 21 28 19 21 22 22
Maximum 80 79 43 56 67 66
1st quartile (array,1) 40 46.75 28 31 36 38
2nd quartile (array,2) 47 53 33 35 45 43
3rd quartile (array,3) 55 61 38 38 49 49
Minimum 21 28 19 21 22 22
Qt1- (minimum) 19 18.75 9 10 14 16
Qt2-qt1 7 6.25 5 4 9 5
Qt3-qt2 8 8 5 3 4 6
Max-qt3 25 18 5 18 18 17
Mean 48 53 33 35 43 43
Table 3- Five-point summary and Calculation to obtain Boxplot using Percentiles
Small
Cars
Big
Cars
2W 3W LCV HCV
Minimum 21 28 19 21 22 22
Maximum 80 79 43 56 67 66
15th percentile 37 43 25 29 34 35
50th percentile 47 53 33 35 45 43
85th percentile 60 65 40 41 51.3 51
Minimum 21 28 19 21 22 22
15th percentile-(minimum) 16 15 6 8 12 13
50th-15th 10 10 8 6 11 8
85th-50th 13 12 7 6 6.3 8
Max-85th 20 14 3 15 15.7 15
Mean 48 53 33 35 43 43
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 7
Figure 4 Box plot with quartile
Figure 5 Box plot with percentiles
0
10
20
30
40
50
60
70
80
90
100
Small Cars Big Cars 2w 3W LCV HCV
SPEED
(kmph)
TYPE OF VECHILE-
Box Plot (Quartile)
minimum QT1- MINIMUM QT2-QT1 QT3-QT2 MAX-QT3 Mean
0
10
20
30
40
50
60
70
80
90
100
Small Cars Big Cars 2w 3W LCV HCV
Speed
(Kmph)
Type of vehicle
Box Plot (Percentile)
MINIMUM 15TH PERCENTILE-MINIMUM 50TH-15TH 85TH-50TH MAX-85TH Mean
Transportation Analytics Laboratory
SHRIKRISHNA KESHARWANI (22CEM3R23) 8
6. Results-
 Count, minimum, maximum, range, mean, median, standard deviation, and variance
has been calculated for the given data. And bar graph and pie chart has been plotted
for the same.
 Box plot is plotted for various types of vehicles as shown in the Figure 4 and
Figure 5 andDescriptive Statistics (five point summary) is tabulated in Table 2 and
Table 3.
7. Conclusion-
The Skewness of curve the speed data for different vehicles can be judged using the box plot
median bar and difference between the quartiles. If difference between first quartile and second
quartile is more than difference between third and second quartile, the data can be said t
having negative skewed (left skewness) and if difference between first quartile and second
quartile is less than difference between third and second quartile, the data can be said to having
positive skewed (right skewness). Same pattern can be said for the case of percentile too.
Percentiles gives larger box size and smaller error bars as compared to the percentiles. The
length of the error bars depends upon the range of the data, if the data has more outliers it will
give inter quartile range.
For designing the road section usually percentiles are used, i.e. we can say percentiles are
usually used for engineering purpose.
In the given dataset, Cars have high range that’s the reason they have high inter quartile ranges
as compared to the Auto and 2W.
References
Agrawal, B. L. (n.d.). Basic Statistics . New age Publications.

More Related Content

What's hot

traffic volume study Data analysis
traffic volume study Data analysistraffic volume study Data analysis
traffic volume study Data analysisAhmed Ferdous Ankon
 
Traffic Simulation Model
Traffic Simulation Model Traffic Simulation Model
Traffic Simulation Model HmkNazrulHakimi
 
TRAFFIC VOLUME STUDIES
TRAFFIC VOLUME STUDIESTRAFFIC VOLUME STUDIES
TRAFFIC VOLUME STUDIEStp jayamohan
 
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION Mr. Lucky
 
Analysis of Flexible Pavement Using IIT PAVE software
Analysis of Flexible Pavement Using IIT PAVE softwareAnalysis of Flexible Pavement Using IIT PAVE software
Analysis of Flexible Pavement Using IIT PAVE softwareUnknownUser704294
 
project work presentation on road feasibility study (need to be corrected but...
project work presentation on road feasibility study (need to be corrected but...project work presentation on road feasibility study (need to be corrected but...
project work presentation on road feasibility study (need to be corrected but...Rakesh Sunari Magar
 
Traffic studies ORIGIN AND DESTINATION STUDIES
Traffic studies ORIGIN AND DESTINATION STUDIESTraffic studies ORIGIN AND DESTINATION STUDIES
Traffic studies ORIGIN AND DESTINATION STUDIESDavinderpal Singh
 
Traffic volume study report by pronob ghosh buet 1204011
Traffic volume study report by pronob ghosh buet 1204011 Traffic volume study report by pronob ghosh buet 1204011
Traffic volume study report by pronob ghosh buet 1204011 Pronob Ghosh
 
2. Geometric Design of Highways.pdf
2. Geometric Design of Highways.pdf2. Geometric Design of Highways.pdf
2. Geometric Design of Highways.pdfRoshani Shahi
 
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided RoadsVehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided RoadsAM Publications
 
Airport Engineering Syllabus
Airport  Engineering SyllabusAirport  Engineering Syllabus
Airport Engineering Syllabusakrur1
 
List of various_IRCs_&_sps
List of various_IRCs_&_spsList of various_IRCs_&_sps
List of various_IRCs_&_spsPralhad Kore
 
TRIP GENERATION Survey and ORIGIN / DESTINATION STUDY
TRIP GENERATION Survey and ORIGIN / DESTINATION STUDYTRIP GENERATION Survey and ORIGIN / DESTINATION STUDY
TRIP GENERATION Survey and ORIGIN / DESTINATION STUDYGrant Johnson, PE
 

What's hot (20)

BSTM-MM in VISUM
BSTM-MM in VISUMBSTM-MM in VISUM
BSTM-MM in VISUM
 
traffic volume study Data analysis
traffic volume study Data analysistraffic volume study Data analysis
traffic volume study Data analysis
 
Traffic speed study
Traffic speed studyTraffic speed study
Traffic speed study
 
Una introducción a HDM-4
Una introducción a HDM-4Una introducción a HDM-4
Una introducción a HDM-4
 
Traffic Simulation Model
Traffic Simulation Model Traffic Simulation Model
Traffic Simulation Model
 
TRAFFIC VOLUME STUDIES
TRAFFIC VOLUME STUDIESTRAFFIC VOLUME STUDIES
TRAFFIC VOLUME STUDIES
 
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
INTELLIGENT TRANSPORTATION SYSTEM(ITS) PRESENTATION
 
Analysis of Flexible Pavement Using IIT PAVE software
Analysis of Flexible Pavement Using IIT PAVE softwareAnalysis of Flexible Pavement Using IIT PAVE software
Analysis of Flexible Pavement Using IIT PAVE software
 
project work presentation on road feasibility study (need to be corrected but...
project work presentation on road feasibility study (need to be corrected but...project work presentation on road feasibility study (need to be corrected but...
project work presentation on road feasibility study (need to be corrected but...
 
Traffic studies ORIGIN AND DESTINATION STUDIES
Traffic studies ORIGIN AND DESTINATION STUDIESTraffic studies ORIGIN AND DESTINATION STUDIES
Traffic studies ORIGIN AND DESTINATION STUDIES
 
Traffic volume study report by pronob ghosh buet 1204011
Traffic volume study report by pronob ghosh buet 1204011 Traffic volume study report by pronob ghosh buet 1204011
Traffic volume study report by pronob ghosh buet 1204011
 
2. Geometric Design of Highways.pdf
2. Geometric Design of Highways.pdf2. Geometric Design of Highways.pdf
2. Geometric Design of Highways.pdf
 
Unit 3
Unit 3Unit 3
Unit 3
 
Traffic Barriers
Traffic BarriersTraffic Barriers
Traffic Barriers
 
04 transport modelling
04 transport modelling04 transport modelling
04 transport modelling
 
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided RoadsVehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
Vehicle Headway Distribution Models on Two-Lane Two-Way Undivided Roads
 
Airport Engineering Syllabus
Airport  Engineering SyllabusAirport  Engineering Syllabus
Airport Engineering Syllabus
 
List of various_IRCs_&_sps
List of various_IRCs_&_spsList of various_IRCs_&_sps
List of various_IRCs_&_sps
 
Intelligent Traffic Management
Intelligent Traffic ManagementIntelligent Traffic Management
Intelligent Traffic Management
 
TRIP GENERATION Survey and ORIGIN / DESTINATION STUDY
TRIP GENERATION Survey and ORIGIN / DESTINATION STUDYTRIP GENERATION Survey and ORIGIN / DESTINATION STUDY
TRIP GENERATION Survey and ORIGIN / DESTINATION STUDY
 

More from shrikrishna kesharwani

Redesigning of Pochamma Maidan Junction, Warangal
Redesigning of Pochamma Maidan Junction, WarangalRedesigning of Pochamma Maidan Junction, Warangal
Redesigning of Pochamma Maidan Junction, Warangalshrikrishna kesharwani
 
Urban Design Project Of Redesigning Prem Pura Ghat
Urban Design Project Of Redesigning Prem Pura Ghat Urban Design Project Of Redesigning Prem Pura Ghat
Urban Design Project Of Redesigning Prem Pura Ghat shrikrishna kesharwani
 
TRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARE
TRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARETRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARE
TRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWAREshrikrishna kesharwani
 
urban Renewal and Conservation Studio assignment
urban Renewal and Conservation Studio assignment urban Renewal and Conservation Studio assignment
urban Renewal and Conservation Studio assignment shrikrishna kesharwani
 
PLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLY
PLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLYPLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLY
PLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLYshrikrishna kesharwani
 
SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...
SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...
SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...shrikrishna kesharwani
 
Evaluation of Pedestrian Safety and Road Crossing Behavior at Midblock Crosswalk
Evaluation of Pedestrian Safety and Road Crossing Behavior at Midblock CrosswalkEvaluation of Pedestrian Safety and Road Crossing Behavior at Midblock Crosswalk
Evaluation of Pedestrian Safety and Road Crossing Behavior at Midblock Crosswalkshrikrishna kesharwani
 
Application of GIS in Transportation Planning
Application of GIS in Transportation Planning Application of GIS in Transportation Planning
Application of GIS in Transportation Planning shrikrishna kesharwani
 
A CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIA
A CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIAA CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIA
A CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIAshrikrishna kesharwani
 
Correation, Linear Regression and Multilinear Regression using R software
Correation, Linear Regression and Multilinear Regression using R softwareCorreation, Linear Regression and Multilinear Regression using R software
Correation, Linear Regression and Multilinear Regression using R softwareshrikrishna kesharwani
 
Impact of transportation system on environent
Impact of transportation system on environentImpact of transportation system on environent
Impact of transportation system on environentshrikrishna kesharwani
 
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPT
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPTZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPT
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPTshrikrishna kesharwani
 
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL
ZONAL DEVELOPMENT  PLAN OF  HERITAGE ZONE  BHOPAL ZONAL DEVELOPMENT  PLAN OF  HERITAGE ZONE  BHOPAL
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL shrikrishna kesharwani
 

More from shrikrishna kesharwani (20)

Redesigning of Pochamma Maidan Junction, Warangal
Redesigning of Pochamma Maidan Junction, WarangalRedesigning of Pochamma Maidan Junction, Warangal
Redesigning of Pochamma Maidan Junction, Warangal
 
Innovations in Public Transportation
Innovations in Public TransportationInnovations in Public Transportation
Innovations in Public Transportation
 
Urban Design Project Of Redesigning Prem Pura Ghat
Urban Design Project Of Redesigning Prem Pura Ghat Urban Design Project Of Redesigning Prem Pura Ghat
Urban Design Project Of Redesigning Prem Pura Ghat
 
TRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARE
TRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARETRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARE
TRAFFIC SIMULATION AT TOLL ROAD SECTION USING VISSIM SOFTWARE
 
SUMO simulation CODES AND STEPS
SUMO simulation CODES AND STEPSSUMO simulation CODES AND STEPS
SUMO simulation CODES AND STEPS
 
SUMO ( SIMULATION OF URBAN MOBILITY)
SUMO ( SIMULATION OF URBAN MOBILITY)SUMO ( SIMULATION OF URBAN MOBILITY)
SUMO ( SIMULATION OF URBAN MOBILITY)
 
urban Renewal and Conservation Studio assignment
urban Renewal and Conservation Studio assignment urban Renewal and Conservation Studio assignment
urban Renewal and Conservation Studio assignment
 
PLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLY
PLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLYPLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLY
PLANNING FOR SELF RELIANT AND SUSTAINABLE CITY IN TERMS OF WATER SUPPLY
 
Noise assessment
Noise assessment Noise assessment
Noise assessment
 
SURAT METRO RAIL PROJECT
SURAT METRO RAIL PROJECTSURAT METRO RAIL PROJECT
SURAT METRO RAIL PROJECT
 
Transit Oriented Development.
Transit Oriented Development.Transit Oriented Development.
Transit Oriented Development.
 
SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...
SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...
SUSTAINABLE TRANSPORTATION: VARIOUS PLOICIES FORMULATED IN INDIA IN REALISING...
 
Evaluation of Pedestrian Safety and Road Crossing Behavior at Midblock Crosswalk
Evaluation of Pedestrian Safety and Road Crossing Behavior at Midblock CrosswalkEvaluation of Pedestrian Safety and Road Crossing Behavior at Midblock Crosswalk
Evaluation of Pedestrian Safety and Road Crossing Behavior at Midblock Crosswalk
 
Application of GIS in Transportation Planning
Application of GIS in Transportation Planning Application of GIS in Transportation Planning
Application of GIS in Transportation Planning
 
A CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIA
A CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIAA CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIA
A CRITICAL REVIEW ON SELECTION OF BINDER FOR PAVING PROJECTS IN INDIA
 
Correation, Linear Regression and Multilinear Regression using R software
Correation, Linear Regression and Multilinear Regression using R softwareCorreation, Linear Regression and Multilinear Regression using R software
Correation, Linear Regression and Multilinear Regression using R software
 
SUSTAINABALE TRANSPORTATION
SUSTAINABALE TRANSPORTATIONSUSTAINABALE TRANSPORTATION
SUSTAINABALE TRANSPORTATION
 
Impact of transportation system on environent
Impact of transportation system on environentImpact of transportation system on environent
Impact of transportation system on environent
 
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPT
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPTZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPT
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL PPT
 
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL
ZONAL DEVELOPMENT  PLAN OF  HERITAGE ZONE  BHOPAL ZONAL DEVELOPMENT  PLAN OF  HERITAGE ZONE  BHOPAL
ZONAL DEVELOPMENT PLAN OF HERITAGE ZONE BHOPAL
 

PRESENTATION OF TRAFFIC DATA USING BOX PLOT METHOD

  • 1. A Report On – EXPERIMENT - 1 (Presentation of Traffic Data Using Box Plot in Ms Excel) Submitted by- SHRIKRISHNA KESHARWANI Roll no.- 22CEM3R23 Subject- TRANSPORTATION ANALYTICS LABORATORY Bachelor of Technology In TRANSPORTATION ENGINEERING DEPARTMENT OF CIVIL ENGINEERING NATIONAL INSTITUTE OF TECHNOLOGY WARANGAL SEPTEMBER, 2022
  • 2. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 2 Table of Contents 1. Objectives-..........................................................................................................................3 2. Software Used- ...................................................................................................................3 3. Theory- ...............................................................................................................................3 4. Procedure-...........................................................................................................................3 5. Analysis of Data-................................................................................................................4 6. Results-...............................................................................................................................8 7. Conclusion-.........................................................................................................................8 References..................................................................................................................................8 List of Tables- Table 1 Analysis of data ............................................................................................................4 Table 2- Five-point summary and Calculation for Boxplot using Quartiles .............................6 Table 3- Five-point summary and Calculation to obtain Boxplot using Percentiles .................6 List of Figures- Figure 1 Bar graph .....................................................................................................................5 Figure 2 Total count pie chart....................................................................................................5 Figure 3 Mean Pie chart.............................................................................................................5 Figure 4 Box plot with quartile..................................................................................................7 Figure 5 Box plot with percentiles.............................................................................................7
  • 3. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 3 1. Objectives- Presentation of five number summary of speed data using box plot in MS Excel. 2. Software Used- MS Excel (2016 version) 3. Theory- The boxplot a simple alternative to the histogram that contains similar features as the histogram, is easier to graph, and includes measures of location, spread, skewness, and a rule for flagging outliers. The key components of the boxplot consist of Tukey’s five number summary. These are Median, upper quartile, lower quartile, largest value, smallest value. The box-and-whisker plot has a box at the center that contains approximately 50% of the middle observations. The horizontal line inside the plot is the median, Q2, which provides a nice summary measure for the data center. The upper and lower horizontal lines enclosing the box are the values of Q3, and Q1, respectively. From these, one can obtain the interquartile range, IQR = Q3 – Q1, which is a common robust measure of spread. Skewness can also be observed by comparing Q3 – Q2 with Q2 – Q1. If Q2 – Q1 > Q3 – Q2 that means the curve will be negatively skewed. 4. Procedure- a) Count the number of data points in the array using count () function. b) Find the minimum and maximum values in the array using functions min () and max () respectively. c) Find the three quartiles of the dataset using Quartile () function. d) Now calculate Q1 – minimum, Q2 – Q1, Q3 – Q2, Maximum – Q3. e) Repeat above calculations for all classes of the data. f) Insert a stacked column chart using the values of Q1, Q2 – Q1, Q3 – Q2. g) Double click on graph and change the fill of stacked to “no fill”. h) Add error bars using more elements of the chart. i) Add chart elements like chart title, axis titles and legends from chart elements option. j) Repeat same procedure when plotting box plot using percentile, just change the function to Percentile () in step 3.
  • 4. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 4 5. Analysis of Data- Line graph- x y 10 5 20 15 30 22 40 32 50 42 60 53 70 65 80 81 90 91 100 99 Table 1 Analysis of data Small Cars Big Cars 2w 3W LCV HCV TOTAL count 234 136 231 171 139 218 1129 minimum 21 28 19 21 22 22 133 maximum 80 79 43 56 67 66 391 range 59 51 24 35 45 44 258 mean 48 53 33 35 43 43 255 median 47 53 33 35 45 43 256 standard deviation 11 10 6 7 9 8 51 variance 122 107 39 45 75 63 451 5 15 22 32 42 53 65 81 91 99 0 20 40 60 80 100 120 0 20 40 60 80 100 120 No. of vechiles speed (kmph) Speed graph SPEED
  • 5. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 5 Bar graph- Figure 1 Bar graph Pie chart- Figure 2 Total count pie chart Figure 3 Mean Pie chart 0 50 100 150 200 250 count minimum maximum range mean median standard deviation variance No. of vehicles- Small Cars Big Cars 2w 3W LCV HCV Small Cars 21% Big Cars 12% 2w 21% 3W 15% LCV 12% HCV 19% Total count Small Cars Big Cars 2w 3W LCV HCV Small Cars 19% Big Cars 21% 2w 12% 3W 14% LCV 17% HCV 17% mean Small Cars Big Cars 2w 3W LCV HCV
  • 6. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 6 Table 2- Five-point summary and Calculation for Boxplot using Quartiles Small Cars Big Cars 2W 3W LCV HCV Minimum 21 28 19 21 22 22 Maximum 80 79 43 56 67 66 1st quartile (array,1) 40 46.75 28 31 36 38 2nd quartile (array,2) 47 53 33 35 45 43 3rd quartile (array,3) 55 61 38 38 49 49 Minimum 21 28 19 21 22 22 Qt1- (minimum) 19 18.75 9 10 14 16 Qt2-qt1 7 6.25 5 4 9 5 Qt3-qt2 8 8 5 3 4 6 Max-qt3 25 18 5 18 18 17 Mean 48 53 33 35 43 43 Table 3- Five-point summary and Calculation to obtain Boxplot using Percentiles Small Cars Big Cars 2W 3W LCV HCV Minimum 21 28 19 21 22 22 Maximum 80 79 43 56 67 66 15th percentile 37 43 25 29 34 35 50th percentile 47 53 33 35 45 43 85th percentile 60 65 40 41 51.3 51 Minimum 21 28 19 21 22 22 15th percentile-(minimum) 16 15 6 8 12 13 50th-15th 10 10 8 6 11 8 85th-50th 13 12 7 6 6.3 8 Max-85th 20 14 3 15 15.7 15 Mean 48 53 33 35 43 43
  • 7. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 7 Figure 4 Box plot with quartile Figure 5 Box plot with percentiles 0 10 20 30 40 50 60 70 80 90 100 Small Cars Big Cars 2w 3W LCV HCV SPEED (kmph) TYPE OF VECHILE- Box Plot (Quartile) minimum QT1- MINIMUM QT2-QT1 QT3-QT2 MAX-QT3 Mean 0 10 20 30 40 50 60 70 80 90 100 Small Cars Big Cars 2w 3W LCV HCV Speed (Kmph) Type of vehicle Box Plot (Percentile) MINIMUM 15TH PERCENTILE-MINIMUM 50TH-15TH 85TH-50TH MAX-85TH Mean
  • 8. Transportation Analytics Laboratory SHRIKRISHNA KESHARWANI (22CEM3R23) 8 6. Results-  Count, minimum, maximum, range, mean, median, standard deviation, and variance has been calculated for the given data. And bar graph and pie chart has been plotted for the same.  Box plot is plotted for various types of vehicles as shown in the Figure 4 and Figure 5 andDescriptive Statistics (five point summary) is tabulated in Table 2 and Table 3. 7. Conclusion- The Skewness of curve the speed data for different vehicles can be judged using the box plot median bar and difference between the quartiles. If difference between first quartile and second quartile is more than difference between third and second quartile, the data can be said t having negative skewed (left skewness) and if difference between first quartile and second quartile is less than difference between third and second quartile, the data can be said to having positive skewed (right skewness). Same pattern can be said for the case of percentile too. Percentiles gives larger box size and smaller error bars as compared to the percentiles. The length of the error bars depends upon the range of the data, if the data has more outliers it will give inter quartile range. For designing the road section usually percentiles are used, i.e. we can say percentiles are usually used for engineering purpose. In the given dataset, Cars have high range that’s the reason they have high inter quartile ranges as compared to the Auto and 2W. References Agrawal, B. L. (n.d.). Basic Statistics . New age Publications.