Documente Academic
Documente Profesional
Documente Cultură
Topic 2: What Do Skydiving & Stock Prices Have In Common? Lecture 3: Measures of Location & Variation
Reading: Chapters 4 (4.1, 4.2), 6 (249-50)
ECON10005
Lecture 3 - Slide 2
ECON10005
Lecture 3 - Slide 3
x
n
42 + 45 + 40 + 46 + 44 + 40 + 43 = 42.857 7
To find the median, order the observations from lowest to highest: 40, 40, 42, 43, 44, 45, 46 The median is the middle observation: 43 The mode is the most frequent or common value: 40
ECON10005
Lecture 3 - Slide 5
x
=
i=1
A sample mean x is an estimate of the population mean . Furthermore, x gives us the sampling error. We expect that as n increases, the sample becomes more representative of the population, and x converges on .
ECON10005 Measures of Location & Variation Lecture 3 - Slide 6
ECON10005
Lecture 3 - Slide 7
ECON10005
Lecture 3 - Slide 8
This distribution is symmetric about its mean: For this distribution, mean = median = mode = 4 The distribution is plotted on the next slide.
ECON10005
Lecture 3 - Slide 9
0.12
0.1 Frequency
0.08
0.06
0.04
0.02
0 1 2 3 4 Observation 5 6 7
ECON10005
Lecture 3 - Slide 12
ECON10005
Lecture 3 - Slide 14
Measures of Variation
Observations may be widely dispersed about the average value, or they may exhibit low variation and cluster tightly about the average value. Consider the following sample data on the percentage returns to different stocks in two portfolios, A and B:
A B 12 3 13 9 14 14 15 19 16 25
The mean return for A is 14. The mean return for B is also 14, but the returns are much more spread out around the mean value.
ECON10005 Measures of Location & Variation Lecture 3 - Slide 15
s2 =
1 n 2 ( xi x ) n 1 i=1
And so, s2 =
ECON10005
Coefficient of Variation
The coefficient of variation measures the variation in a sample (given by its standard deviation) relative to that samples mean. Denoted CV, it is expressed as a percentage, providing a unit-free measure: s CV = 100 % x This lets us compare the relative variation in different samples without having to worry about differences in units or scale.
ECON10005 Measures of Location & Variation Lecture 3 - Slide 21
How might knowing the sample variance, standard deviation and coefficients of variation for each portfolio help you decide which portfolio you would want to invest in?
ECON10005
Lecture 3 - Slide 22
You should be able to show that portfolio A has a mean of 14, a variance of 2.5, a standard deviation of 1.58 and a coefficient of variation of around 11%. How might this information help you decide which portfolio you would want to invest in?
ECON10005
Lecture 3 - Slide 23
Next Time...
Measures of location, variation and association Lecture 3 Measures of Location Mean, Median & Mode Location & Skewness Measures of Variation Variance & Standard Deviation The Coefficient of Variation Lecture 4 Measures of Association Covariance Correlation
ECON10005
Lecture 3 - Slide 25
Suppose we want to calculate the mean, median and mode for household income (in column D).
ECON10005 Measures of Location & Variation Lecture 3 - Slide 27
Press enter, and Excel will return the value 71,927.77 To obtain the median, pick an empty cell and type the following command:
=MEDIAN(D2:D2001)
Press enter, and Excel will return the value 58,852 To obtain the mode in Excel, pick an empty cell and type the following command:
=MODE(D2:D2001)
ECON10005
Lecture 3 - Slide 29
ECON10005
Lecture 3 - Slide 30
10
Excel Output
Excel generates a range of descriptive statistics. These include the mean, median and mode, which are identical to the values returned from entering direct commands. Note this output also contains measures of variation such as the sample variance and standard deviation.
ECON10005 Measures of Location & Variation Lecture 3 - Slide 31
return
the
value
To obtain the sample standard deviation, pick an empty cell and type the following command:
=STDEV(D2:D2001)
Press enter, and Excel will return the value 62,056.80 If you have population data and want the population values, use the commands VARP or STDEVP instead.
ECON10005 Measures of Location & Variation Lecture 3 - Slide 32
ECON10005
Lecture 3 - Slide 33
11