Statistics Traffic Data Analysis
Statistics Traffic Data Analysis
SAB3843
STATISTICS & TRAFFIC
DATA ANALYSIS
∑( f X )
i =1
i i
X= n
∑f i =1
i
where i = 1,2,3,…….. n
Measures of central tendency
2. Median
The median of a set of measurements is the middle value
when the measurements are arranged in order of
magnitude. It, therefore, divides a histogram and a
frequency polygon into two equal areas.
eg. 15, 15, 20, 21, 30, 12, 11, 5, 40, 40, 26
80
Cumulative frequency, %
70
60 (b) 50th percentile of X = b
50
40
30
20 (c) 15th percentile of X = c
10
0
(c) (b) (a)
X
Measures of Scatter
3) Variance (S2) n
∑ i
X 2
− nX 2
S2 = i =1
n −1
or
2
n
n
∑ fX i ∑ fX i
2
S 2 = i =1 − i =1
∑ f ∑ f
Measures of Scatter
4) Standard Deviation (SD)
Frequency (numbers)
100
90
Cumulative frequency, %
80
70
60
50
40
30
20
10
0
Speed (Xi), km/h
Example 1 – Spot speed analysis
Analyse the following spot speed data based on a sample of 172
vehicles traversing a section of sub-urban roadway.
Speed class Frequency
(km/h) fi
20 - 25 1
25 - 30 3
30 - 35 6
35 - 40 13
40 - 45 25
45 - 50 34
50 - 55 31
55 - 60 27
60 - 65 18
65 - 70 9
70 - 75 4
75 - 80 1
Total 172
Solution 1 – tabulate data as follows
Speed class Mid point Frequency Cum. Cum.
• Mean speed = ∑( f v )
i =1
i i = 8745/172 = 50.84 km/h
v= n
∑f i =1
i
• Std deviation: n 2
n
∑ fi vi ∑ fi vi
2
2
462325 8745
SD = i =1 − i =1 =
−
∑f ∑f 172 172
= 10.16 km/h
Can you compute the variance and standard error for the data?
What can you say about this result?
Solution 1 – plot the histogram for the data
Examine the plot & answer
these:
• Do you think that the 40
F re q u e n c y (n u m b e rs )
25
• Do you think that the data
20
should follow a normal
distribution curve? 15
10
• Is the expected mean lies
5
somewhere in the middle
of the plot? 0
5
0
-2
-3
-3
-4
-4
-5
-5
-6
-6
-7
-7
-8
• What if it is not so?
20
25
30
35
40
45
50
55
60
65
70
75
speed class (km/h)
Solution 1 – plot cumulative curve
100
70
Cumulative frequency, %
60
(b) 50th percentile of v = b
50
40
30
10
0
(c) (b) (a)
0 10 20 30 40 50 60 70 80
Speed, km/h
• Compare the calculated mean & median, should both values are equal? Which
value to report?
• Establish the required speeds at various percentiles, in what way these values will
be used?
Example 2
Evaluate the following traffic data obtained for 7 consecutive
days on a stretch of road section.
(a) Determine the ADT and AADT on that particular road section.
(b) State the AADT in PCU/day if the average composition is 45% cars, 20%
medium lorries, 10% buses, 7% heavy lorries & 18% motorcycles.
References
1. Garber, N.J., Hoel, L.A., TRAFFIC AND HIGHWAY ENGINEERING,4th Edition,
SI Version., Cengage Learning (2010).
2. Currin, T. R., INTRODUCTION TO TRAFFIC ENGINEERING – A Manual for
Data Collection and Analysis, Brooks/Cole (2001).
3. Kadiyali, L.R., TRAFFIC ENGINEERING AND TRANSPORT PLANNING,
Khanna Publishers (1987) .
4. Othman Che Puan. Modul Kuliah Kejuruteraan Lalu Lintas. Published for
Internal Circulation. (2004).
5. Dorina Astana, Othman Che Puan, Che Ros Ismail, TRAFFIC ENGINEERING
NOTES, Published for Internal Circulation. (2011)
25