03 Numerical Description FULL
03 Numerical Description FULL
03 Numerical Description FULL
Numerical
Facultad de
Ciencias Jurídicas y Sociales
Chapter Topics
Mode Variance
Standard Deviation
Coefficient of Variation
Measures of Central Tendency
Overview
Central Tendency
åx i
x= i=1
n
Arithmetic Midpoint of Most frequently
average ranked values observed value
Arithmetic Mean
åx i
x1 + x 2 + ! + x n Observed
x= i=1
= values
n n
Sample size
Characteristics of the Arithmetic Mean
• No calculation problems
• All sample data involved
• It has a simple and clear interpretation
• It is unique for each sample
0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10
Mean = 3 Mean = 4
1 + 2 + 3 + 4 + 5 15 1 + 2 + 3 + 4 + 10 20
= =3 = =4
5 5 5 5
Approximations for Grouped Data
åfm i i
K
where n = å fi
x= i=1 i=1
n
Weighted Mean
å w x w x + w x +!+ w x
i i
x= i=1
= 1 1 2 2 n n
• Whereå
wi is the weight of theå
w w
ith observation
i
n
G= N n1 ×
x x
1
n2 × × ×
2
nn =
xn N
Õx
i =1
ni
i
• Quantitative variables
• Suitable for averaging rates and percentages
Geometric Mean
ADVANTAGES:
• It is unique for each sample
• It uses all sample data
• It is less sensitive than the arithmetic mean to sampling
fluctuations.
DISADVANTAGES:
• It’s statistical significance is less intuitive than the
arithmetic mean.
• Its computation is (way) more difficult.
• Sometimes it cannot be determined (for example, if the
variable takes the value 0 or if it takes negative values)
Geometric Mean Example:
Let's see:
Should the "average" be 24,5%, in 2021 the total production should be:
SQR (1,5488) - 1 = G
G= 0,24450793
Harmonic Mean “H”
N N
H= =
1 1 1 n
1
n+ n + ××× + n å n
x 1
1
x 2
2
x n
n
x
i =1 i
i
• Quantitative variables
• Suitable for averaging returns
Harmonic Mean “H”
ADVANTAGES:
• It is unique for each sample
• Uses all sample data
DISADVANTAGES:
• has no clear statistical significance
• It can present calculation problems: it is very affected
by small values.
• Cannot be calculated when there is any 0 in the
sample
Median
0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10
Median = 3 Median = 3
n +1
Median position = position in the ordered data
2
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 1 2 3 4 5 6
No Mode
Mode = 9
Review Example
$2,000,000
500,000 $500 K
300,000 $300 K
100,000
100,000
$100 K
$100 K
Review Example: Summary Statistics
House Prices:
• Mean: ($3,000,000/5)
$2,000,000 = $600,000
500,000
300,000
100,000
100,000
• Median: middle value of ranked data
= $300,000
Sum 3,000,000
Variation
Same center,
different variation
Range
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Range = 14 - 1 = 13
Disadvantages of the Range
7 8 9 10 11 12 7 8 9 10 11 12
Range = 12 - 7 = 5 Range = 12 - 7 = 5
• Sensitive to outliers
1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,5
Range = 5 - 1 = 4
1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,120
• IQR = Q3 – Q1
Interquartile Range
Example:
Median X
X Q1 Q3
(Q2) maximum
minimum
25% 25% 25% 25%
12 30 45 57 70
Interquartile range
= 57 – 30 = 27
Quartiles
Q1 Q2 Q3
n The first quartile, Q1, is the value for which 25% of the
observations are smaller and 75% are larger
n Q2 is the same as the median (50% are smaller, 50% are
larger)
n Only 25% of the observations are greater than the third
quartile
Quartile Formulas
(n = 9)
Q1 = is in the 0.25(9+1) = 2.5 position of the ranked data
so use the value half way between the 2nd and 3rd values,
so Q1 = 12.5
Variance
å ( x - x)
n 2
i ni
s =2 i =1
n
ni
= å ( xi - x)
2
S= s =
2
i =1 N
Calculation Example: Standard Deviation
Sample
Data (xi) : 10 12 14 15 17 18 18 24
n=8 Mean = x = 16
Data A
Mean = 15.5
11 12 13 14 15 16 17 18 19 20 21
s = 3.338
Data B
Mean = 15.5
11 12 13 14 15 16 17 18 19 20 21 s = 0.926
Data C
Mean = 15.5
11 12 13 14 15 16 17 18 19 20 21 s = 4.570
Advantages of Variance and Standard Deviation
At least within
μ ± 1σ
68%
μ
μ ± 1σ
contains about 95% of the values in
μ ± 2σ the population or the sample
contains about 99.7% of the values
μ ± 3σ in the population or the sample
95% 99.7%
μ ± 2σ μ ± 3σ
Coefficient of Variation
æ sö
CV = çç ÷÷ × 100%
èx ø
Comparing Coefficient of Variation
• Stock A:
• Average price last year = $50
• Standard deviation = $5
æs ö $5
CVA = çç ÷÷ ×100% = ×100% = 10%
èx ø $50
• Stock B:
Both stocks have
• Average price last year = $100 the same
• Standard deviation = $5 standard
deviation, but
stock B is less
variable relative
to its price
æs ö $5
CVB = çç ÷÷ ×100% = ×100% = 5%
èx ø $100
Moments re. Mean
n
ni
mr = å ( xi - x)r
i =1 N
n n
0 ni ni N
m0 = å
i =1
( xi - x)
N
= å
i =1 N
=
N
=1
n
n n
n n
n N
m1 = å å å i
( xi - x) = i =1 xi N x i =1
- = x-x = x-x =0
1 i i
N
i =1 N N
n
ni
m2 = å
2
( xi - x)2
=S
i =1 N
Form analysis: Assymmetry and Kurtosis
Assymetry:
Mean < Median Mean = Median Median < Mean
Kurtosis:
x
x
Assymmetry measures
∑%#$! " 𝑛#
𝑚" 𝑥# − 𝑥̅
𝑔! = " = 𝑁
𝑆 "'
∑%#$! 𝑥# − 𝑥̅ & 𝑛# &
𝑁
Assymmetry measures
Symmetric: g1 = 0 = Ap
Assymmetric
positive: Ap = g1 > 0
Assymmetric Ap = g1 < 0
negative:
Kurtosis
m4
g2 = 4 - 3
S
• Because, in a Normal distribution:
!
𝑚! = 3𝑆
Coefficient of Kurtosis
𝑔! = 0 MESOKURTIC (NORMAL)
𝑔! > 0 LEPTOKURTIC
𝑔! < 0 MESOKURTIC