Chapter 2 Slides
Chapter 2 Slides
Chapter 2
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-1
Chapter Goals
After completing this chapter, you should be able to:
n Compute and interpret the mean, median, and mode for a
set of data
n Find the range, variance, standard deviation, and
coefficient of variation and know what these values mean
n Apply the empirical rule to describe the variation of
population values around the mean
n Explain the weighted mean and when to use it
n Explain how a least squares regression line estimates a
linear relationship between two variables
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-2
Chapter Topics
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-3
Chapter Topics
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-4
Statistics for
Business and Economics
8th Edition
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 1-5
Describing Data Numerically
Describing Data Numerically
Mode Variance
Standard Deviation
Coefficient of Variation
(Not covered in Econ 5)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-6
2.1
Measures of Central Tendency
Overview
Central Tendency
åx i
x= i=1
n
Arithmetic Midpoint of Most frequently
average ranked values observed value
(if one exists)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-7
Arithmetic Mean
n The arithmetic mean (mean) is the most
common measure of central tendency
n For a population of N values:
N
åx
x1 + x 2 + ! + x N
i Population
μ= = i=1
values
N N
Population size
åx i
x1 + x 2 + ! + x n Observed
x= i=1
= values
n n
Sample size
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-8
Arithmetic Mean
(continued)
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
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-9
Median
n In an ordered list, the median is the “middle”
number (50% above, 50% below)
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
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-10
Finding the Median
n +1
n Note that is not the value of the median, only the
2
position of the median in the ranked data
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-11
Mode
n A measure of central tendency
n Value that occurs most often
n Not affected by extreme values
n Used for either numerical or categorical data
n There may may be no mode
n There may be several modes
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
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-12
Review Example
$2,000,000
500,000 $500 K
300,000 $300 K
100,000
100,000
$100 K
$100 K
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-13
Review Example:
Summary Statistics
House Prices:
n Mean: ($3,000,000/5)
$2,000,000 = $600,000
500,000
300,000
100,000
100,000 n Median: middle value of ranked data
Sum 3,000,000
= $300,000
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-14
Which measure of location
is the “best”?
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-15
Shape of a Distribution
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-16
Example: Mean and Median
Wages
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-18
Statistics for
Business and Economics
8th Edition
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 1-19
Describing Data Numerically
Describing Data Numerically
Mode Variance
Standard Deviation
Coefficient of Variation
(Not covered in Econ 5)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-20
Geometric Mean
n Geometric mean
n Used to measure the rate of change of a variable
over time
x g = (x1 ´ x 2 ´ ! ´ x n ) = (x1 ´ x 2 ´ ! ´ x n )
n 1/n
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-22
Example
(continued)
Geometric
𝑟!! = (1.5×1.2)"/$−1 = 1.3416 − 1
mean rate Accurate
of return: = 0.3416 = 34.16% result
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-23
Percentiles and Quartiles
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-24
Quartiles
n Quartiles split the ranked data into 4 segments with
an equal number of values per segment (note that
the widths of the segments may be different)
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
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-25
Quartile Formulas
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-26
Quartiles
(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
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-27
Five-Number Summary
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-28
Example: Income Inequality
n Line chart on the side uses
percentiles to show that
income evolves differently for
different types of US
households
n Incomes increase the most for
households at the highest
percentile
n Incomes remain stagnant for
households at the lowest
percentile
n Next time
n Describing a data set’s variation
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-30
Statistics for
Business and Economics
8th Edition
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-31
Today
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-32
Describing Data Numerically
Describing Data Numerically
Mode Variance
Standard Deviation
Coefficient of Variation
(Not covered in Econ 5)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-33
2.2
Measures of Variability
Variation
Same center,
different variation
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-34
Range
Example:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Range = 14 - 1 = 13
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-35
Disadvantages of the Range
n Ignores the way in which data are distributed
7 8 9 10 11 12 7 8 9 10 11 12
Range = 12 - 7 = 5 Range = 12 - 7 = 5
n 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
Range = 120 - 1 = 119
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-36
Interquartile Range
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-37
Interquartile Range
IQR = Q3 - Q1
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-38
Box-and-Whisker Plot
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-39
Box-and-Whisker Plot
The plot can be oriented horizontally or vertically
Example:
X Median X
minimum Q1 (Q2) Q3 maximum
12 30 45 57 70
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-40
Example: El Nino and La Nina
n El Nino and La Nina are climate patterns
that occur every several years and
impact weather across the world
n Box-and-whisker plots on the side show
precipitation and temperature in the
Southern California Coast in December
through February during El Nino, neutral
conditions, and La Nina
n Based on the plots, what do we observe
about the effects of El Nino and La Nina?
n Compared to the neutral periods, El Nino
seems to increase, and La Nina seems to
decrease, the dispersion of precipitation
levels
n La Nina seems to also decrease the
median temperature when compared to
the neutral period
Source: [Link] accessed September 2, 2021
Copyright © 2021 UCSB Department of Economics Ch. 2-41
Key points
n Range and interquartile range give you an idea
of the dispersion of data
n Next time
n Variance; standard deviation; z-score
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-42
Statistics for
Business and Economics
8th Edition
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-43
Today
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-44
Describing Data Numerically
Describing Data Numerically
Mode Variance
Standard Deviation
Coefficient of Variation
(Not covered in Econ 5)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-45
Population Variance
σ =
2 i=1
N
Where μ = population mean
N = population size
xi = ith value of the variable x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-46
Sample Variance
s =
2 i=1
n -1
Where X = arithmetic mean
n = sample size
Xi = ith value of the variable X
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-47
Population Standard Deviation
å i
(x - μ) 2
σ= i=1
N
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-48
Sample Standard Deviation
å i
n
(x - x) 2
S= i=1
n -1
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-49
Calculation Example:
Sample Standard Deviation
Sample
Data (xi) : 10 12 14 15 17 18 18 24
n=8 Mean = x = 16
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-51
Comparing Standard Deviations
Mean = 15.5 for each data set
11 12 13 14 15 16 17 18 19 20 21
s = 3.338
(compare to the two
Data A cases below)
11 12 13 14 15 16 17 18 19 20 21
s = 0.926
(values are concentrated
Data B near the mean)
s = 4.570
11 12 13 14 15 16 17 18 19 20 21 (values are dispersed far
Data C from the mean)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-52
Advantages of Variance and
Standard Deviation
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-53
Using Microsoft Excel
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-54
Using Excel
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-55
Using Excel
n Enter input
range details
n Click OK
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-56
Excel output
Microsoft Excel
descriptive statistics output,
using the house price data:
House Prices:
$2,000,000
500,000
300,000
100,000
100,000
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-57
The Empirical Rule
68%
μ
μ ± 1σ
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-58
The Empirical Rule
(continued)
n μ ± 2σ contains about 95% of the values in
the population or the sample
n μ ± 3σ contains almost all (about 99.7%) of
the values in the population or the sample
95% 99.7%
μ ± 2σ μ ± 3σ
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-59
z-Score
xi - μ
z=
σ
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-61
z-Score
(continued)
n If intelligence is measured for a population
using an IQ score, where the mean IQ score
is 100 and the standard deviation is 15, what
is the z-score for an IQ of 121?
x i - μ 121 - 100
z= = = 1.4
σ 15
A score of 121 is 1.4 standard
deviations above the mean.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-62
Example: PISA Scores
n Program for International Student
Assessment (PISA) measures
reading, math, science, and finance
literacy of 15-year-olds in different
countries all over the world
n Screenshot on the side shows the
standard deviations of average
scores on the financial literacy scale
n Which regions have the highest standard
deviation?
n Which regions have the lowest standard
deviation?
n What does this imply about the dispersion
of scores among students from these
regions?
n Next time
n Weighted data; covariation; correlation
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-64
Statistics for
Business and Economics
8th Edition
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-65
Today
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-66
Describing Data Numerically
Describing Data Numerically
Mode Variance
Standard Deviation
Coefficient of Variation
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-67
Measures of Central Tendency
Overview
Central Tendency
åx i
x= i=1
n
Arithmetic Midpoint of Most frequently
average ranked values observed value
(if one exists)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-68
Measures of Central Tendency
Overview
Central Tendency
Mean
åx
x1 + x 2 + ! + x N
i Population
μ= = i=1
values
N N
Population size
åx i
x1 + x 2 + ! + x n Observed
x= i=1
= values
n n
Sample size
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-70
2.3
Weighted Mean
and Measures of Grouped Data
åw x i i
w 1x1 + w 2 x 2 + ! + w n x n
x= i=1
=
n n
n Where wi is the weight of the ith observation
and n = åw i
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-71
Approximations for Grouped Data
Suppose data are grouped into K classes, with
frequencies f1, f2, . . ., fK, and the midpoints of the
classes are m1, m2, . . ., mK
åfm i i
K
where n = å fi
x= i=1
i=1
n
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-72
Approximations for Grouped Data
Suppose data are grouped into K classes, with
frequencies f1, f2, . . ., fK, and the midpoints of the
classes are m1, m2, . . ., mK
åi i
f (m - x) 2
s2 = i=1
n -1
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-73
Example: GPA
n Imagine you’re taking four courses
this quarter
n Three courses are worth 4 units
each, and one course is worth 2
units
n You perform well in your 4 credit
courses and receive A- in each of
them
n Unfortunately, you get only a C+ in
your 2-credit course
n Recall that an A- contributes 3.7
grade points towards your GPA
calculation, while a C+ contributes
2.3 points
n Calculate your GPA this quarter!
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-76
Statistics for
Business and Economics
8th Edition
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-77
Today
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-78
Describing Data Numerically
Describing Data Numerically
Mode Variance
Standard Deviation
Coefficient of Variation
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-79
2.4
Measures of Relationships
Between Variables
n Covariance
n a measure of the direction of a linear relationship
between two variables
n Correlation Coefficient
n a measure of both the direction and the strength of a
linear relationship between two variables
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-80
Covariance
n The covariance measures the strength of the linear relationship
between two variables
å (x - µ i x )(y i - µ y )
Cov (x , y) = s xy = i=1
N
n The sample covariance:
n
å (x - x)(y - y)
i i
Cov (x , y) = s xy = i=1
n -1
n Only concerned with the direction of the relationship
n No causal effect is implied
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-81
Interpreting Covariance
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-82
Coefficient of Correlation
n Measures the relative strength of the linear relationship
between two variables
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-83
Features of
Correlation Coefficient, r
n Unit free
n Ranges normalized between –1 and 1
n The closer to –1, the stronger the negative linear
relationship
n The closer to 1, the stronger the positive linear
relationship
n The closer to 0, the weaker any linear relationship
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-84
Scatter Plots of Data with Various
Correlation Coefficients
Y Y Y
X X X
r = -1 r = -.6 r=0
Y
Y Y
X X X
r = +1 r = +.3 r=0
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-85
Using Excel to Find
the Correlation Coefficient
n Select Data / Data Analysis
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-86
Using Excel to Find
the Correlation Coefficient
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-87
Interpreting the Result
95
There is a relatively
Test #2 Score
90
n
85
relationship between 75
test score #1 70
70 75 80 85 90 95 100
Test #1 Score
and test score #2
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-88
Example: Gender Bias during
Economics Talks
n Are female presenters treated differently than male
presenters during economics talks?
n Dupas et al. (2021) recruit coders to watch economics
talks and report on the number of interactions between
the audience and the presenter as well as the tone of
each interaction
n “We find that even after including rich controls women
presenters are asked more questions and the
questions asked of women are more likely to be
patronizing or hostile.”
Dupas et al.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-91
Chapter Summary
n Described measures of central tendency
n Mean, median, mode
n Illustrated the shape of the distribution
n Symmetric, skewed
n Described measures of variation
n Range, interquartile range, variance and standard deviation
n Discussed measures of grouped data
n Calculated measures of relationships between
variables
n Covariance and correlation coefficient
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-92
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, electronic, mechanical, photocopying,
recording, or otherwise, without the prior written permission of the publisher.
Printed in the United States of America.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 2-93