Professional Documents
Culture Documents
COMPUTATIONAL
TOOLS FOR
STATISTICS
D E S C R I P T I V E S TAT I S T I C S - N U M E R I C A L
MEASURE
OUTLINE
• Measure of Variation
• Measure of Position
DIFFERENT TYPES OF MEASUREMENT
Quantitative Data
Graph Measure
Standard
Mean Weighted Mean Mode Median Range Variance Percentile Quartile
Deviation
MEASURE OF CENTRAL TENDENCY This 6 feet tall
guy got drowned
• Mean: Average values of the observation(s) in a 5 feet deep
swimming pool
• Why Mean?
– Widely used in daily context
– Can be performed by someone without statistical background
Population Sample
𝑥1 + 𝑥2+⋯ + 𝑥𝑁 𝑥1 + 𝑥2+⋯ + 𝑥𝑛
𝜇= 𝑥=
𝑁 𝑛
MEASURE OF CENTRAL TENDENCY
• Mode:Value(s) with highest frequency
• Why Mode?
– Can be obtained by direct observation
• Median: values that sperate the upper and lower half of a dataset
• Why Median?
– Not affected by outliers
• The following data shows the number of minced pork rice (in bowls) sold by Ching Ching shop in
20 selected days
350 345 348 390 392 387 367 298 333 312
324 389 303 402 1001 945 322 336 334 356
• Find the mean, mode median of the number of minced pork rice (in bowls)
– Mean: 411.7
– Median: 349
– Mode: No mode
MEASURE OF CENTRAL
TENDENCY
• Weighted average: average of values which are
scaled by the weightings
VARIATION 𝑁 𝑛−1
• Why do we need to have standard deviation? To have the correct unit as it is squared in the
variance
• If there is another shop selling minced pork rice with a mean of 400 bowls a standard
deviation of 15 bowls, which shop has a relatively more stable customer flow?
– It is better to make use of Coefficient of variation to compare the two shops’ stability
𝑠𝑡𝑎𝑛𝑑𝑎𝑟𝑑 𝑑𝑒𝑣𝑖𝑎𝑡𝑖𝑜𝑛
– 𝑚𝑒𝑎𝑛
× 100%
194.605972
– CV for Ching Ching Shop = 411.7
× 100%=47.27%
15
– CV for the other shop = × 100%=3.75%
400
The other shop has a more stable flow because it has a smaller CV than Ching Ching Shop
MEASURE OF POSITION
• Percentile: the nth percentile means that n% of data have values equal of below it
Calculate the
• Find the 67th percentile and 80th percentile for problem on p.7 𝑝
position i = 𝑛
100
67
• Position of 67th percentile = × 20 = 13.4 ≈ 14
100
• 67th percentile = 387
i is an integer i is not an integer
80
• Position of 80th percentile = 100 × 20 = 16
(390+392)
• 80th percentile = = 391
2 Take the average Round up i to the
value of position i next integer and
position (i+1) take its value
MEASURE OF POSITION
• Quartile: 25th 50th 75th percentile which divide the whole dataset into 4 equal parts
• For the Ching Ching Shop example
25 (324+333)
– Position of 25th percentile (Q1) = × 20 = 5 Q1= = 328.5
100 2
50 (348+350)
– Position of 50th percentile (Q2) = 100
× 20 = 10 Q2= 2
= 349
75 (389+390)
– Position of 75th percentile (Q3) = 100
× 20 = 15 Q3= 2
= 389.5
25 % of the data 25 % of the data 25% of the data 25% of the data
Q1 Q2 Q3
ADDITIONAL NOTES