EC 285 - 2026-09-17 - Lecture 03
EC 285 - Lecture 03 - 2026-09-17
Week 2 · 16:08-17:27 · 78 min · Full transcript · Flashcards
Overview
This lecture finished Chapter 2 (Descriptive Statistics). It started with a quick review of the measures of center and spread and a look at the range. Next it went through variance and standard deviation in detail: what the formula means, why it squares the gaps, and the population and sample symbols. Then it covered the coefficient of variation, covariance and correlation, and ended with a practice problem that finds the mean, standard deviation and percentiles from a frequency table.
Review: center and spread
This section picks up where Lecture 02 stopped, which was at percentiles and quartiles.
Center and spread
- Measures of central tendency (mean, median and mode) tell you where the center of the data is. The mean and the median are the most widely used.
- Measures of variation tell you how spread out the rest of the data is around that center. The five in this course are the range, the interquartile range, the variance, the standard deviation and the coefficient of variation.
Why: Once you know roughly where the middle is, the next question is how far the other values sit from it. Two data sets can have the same center and very different spread.
Range
The range is the maximum value minus the minimum value.
Why: It is quick to compute, but it only uses the two most extreme values. So it is driven by outliers and tells you nothing about how the values between them are spread. The lecturer said that in her opinion it is "not very useful". You can still report it.
where
Not on any formula sheet, so memorise it.
The highest grade in a class is 90 and the lowest is 10.
-- subtract the minimum from the maximum
Answer: 80 -- this doesn't say whether most students scored near 50 or were split between the two ends.
She had skipped the range last class because it is simple: "well, you should know that."
Quartiles
Quartiles are special percentiles that split the ranked data into four parts, each holding 25% of the values.
Why:
Variance and standard deviation
These are the two most widely used measures of spread. They show up in every chapter from here to the end of the course.
Variance and standard deviation
The variance is the average of the squared deviations (gaps) of the values from the mean. The standard deviation is the square root of the variance. Both measure how much the data spread out around the average.
Why: Here is the lecturer's way to remember it: "the average of squared deviations from the average." Take each value's gap from the mean, square it, add them up, and average. The gaps are squared because some values sit below the mean and some above. Without squaring, the positive and negative gaps would cancel out. In fact, the gaps from the mean always add up to exactly 0. On slide 12 they are
Population:
Sample:
where
Not on any formula sheet (population or sample), so memorise all four.
A student mentioned the empirical rule. For bell-shaped data, about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three. The lecturer said about 99% fall within three, which matches the standard 99.7% once rounded. The lecturer said it was "too complicated" for now and moved on.
The sample data are 10, 12, 14, 15, 17, 18, 18 and 24, so
-- find the mean first, because the formula needs it - Deviations:
-- subtract 16 from each value - Squared:
-- square each gap so they can't cancel -- add them up (this is the numerator) -- divide by to get the variance -- take the square root to get the standard deviation
Answer:
The variance and standard deviation formulas are "not going to be listed on the formula sheet and there will almost certainly be questions on the exam, so you should remember the formula." She said to practise until you can write the formula without looking.
On calculators: "a lot of students know how it's done, but they make a mistake on the calculator. They forget to put a bracket or square it for one of the terms." On a multiple-choice question, one slip loses all the points. Bring the calculator you'll use on the exam, work the numerator first, and "do it once, and then do it one more time." Don't miss any observation, the square, the
Population and sample symbols
- Population (parameters):
is the population mean, is the population standard deviation, is the population variance and (capital) is the population size. These are usually unknown. - Sample (statistics):
("x-bar") is the sample mean, is the sample standard deviation, is the sample variance and (lowercase) is the sample size. You can compute these from your data. and : means "each observation". The sum from to means "do this for every observation from the first to the last". In the example above, runs from 1 to 8. - Uppercase X and lowercase x: for now they mean the same thing. Later, uppercase
will be a random variable (like "your grade") and lowercase will be one specific value of it.
Why: This is the parameter versus statistic idea from Lecture 01. The memory trick is "S stands for sample." Greek letters are for the population, which we almost never observe, so in this course you will nearly always use the sample formulas.
"All the symbols, the letters that you see on this slide, you should remember. Memorize all of them." Even when a formula is on the formula sheet, "I won't define them. So you should know what they are."
Why divide by n minus 1
The sample variance divides by
Why: The lecturer said statisticians have proved that
"We will always be dealing with samples, so you have to subtract 1."
Coefficient of variation
This is the fifth and last measure of spread.
Coefficient of variation
The coefficient of variation (CV) is the standard deviation divided by the mean, written as a percentage.
Why: A standard deviation is in the data's own units, which could be dollars, millions or months. So you can't directly compare the spread of two data sets measured differently. The CV has no units because it is always a percent, which makes it useful for comparing several data sets. The higher the CV, the bigger the spread around the average. She described it as a number between 0 and 100. It usually is, but it can go above 100% when the standard deviation is bigger than the mean. You'll only ever use the sample version, because the population values are unknown.
where
The sample CV is on the formula sheet for: Midterm 1. The population CV is not on any formula sheet.
She suggested finding the CV for the standard deviation example but didn't work it. That data had
-- put the standard deviation over the mean -- divide -- turn it into a percent
Answer:
Covariance and correlation
These don't measure spread. They measure how two variables, X and Y, move together.
Covariance
Covariance measures the direction of the linear relationship between two variables.
- Positive: X and Y move in the same direction.
- Negative: they move in opposite directions.
- Zero: the lecturer said "independent", meaning no relationship. The last block in this section adds a caveat: zero really means no straight-line relationship.
Why: For each observation, you multiply X's gap from its mean by Y's gap from its mean. When both are above or both are below their means, the product is positive. When one is above and the other below, it is negative. Averaging these products shows which case dominates.
where
The population version (
"There's a complicated formula to find covariance. I'll put that on the formula sheet so you don't have to remember this." You still need to know what each symbol means.
Correlation coefficient
The correlation coefficient measures both the direction and the strength of the linear relationship. It is always between
- Negative: an inverse (negative) relationship.
- Positive: a direct (positive) relationship.
- Near zero: no evidence of a strong linear relationship.
- Close to
or : a very strong linear relationship.
Why: Covariance depends on the units of X and Y, so its size is hard to interpret. Dividing by both standard deviations removes the units and squeezes the result into the range from
where
The population version (
Examples from class:
- Positive: temperature and ice cream sales. When it's hotter, people buy more ice cream.
- Negative: the law of demand. When the price goes up, the quantity demanded goes down, all else equal. The lecturer said that with price and quantity data you could use this formula to find the slope of the demand curve and say how much less people buy, which connects to elastic versus inelastic demand. (Strictly, correlation only tells you how closely the points follow a straight line. It is not the slope, and it does not give you the elasticity. The slope comes from the regression line in Chapter 13.)
- Negative: time spent on social media and grades.
- Slide 18:
is a very strong negative linear relationship. That could be the demand curve, or grades against social media time.
Five people (A to E). Weekly grocery spending
-- mean of x -- mean of y : and : -- the gaps from each mean - Products:
-- multiply each person's x gap by their y gap -- add the products -- divide by -- standard deviation of x -- standard deviation of y -- divide the covariance by both standard deviations
Answer:
She showed this table to show how the formula is applied step by step (she built it in Excel). She said that without a computer on the exam, "I won't ask you to do this" by hand.
The correlation formula will be on the formula sheet: "I will put this formula on the formula sheet." She won't define the symbols there, so know that the bottom is the standard deviation of x times the standard deviation of y.
Correlation and causation
Even when two variables are correlated, one doesn't necessarily cause the other. This is the same distinction as in Lecture 01.
- Social media and happiness: in happiness economics, people rate their life satisfaction on a scale such as 0 to 10. A study she read found that people who spend more time on social media feel worse about their lives. That is a correlation. It could be that scrolling makes you unhappy, or that unhappy people scroll more. The study argued the link was causal. She thinks the same applies to LinkedIn.
- Income and life satisfaction: a study across countries (GDP per person against happiness) found a positive relationship at first. Above a certain income, the curve goes almost flat. In other words, money raises happiness up to the point where basic needs are covered, and then the correlation is almost nil. She thinks this holds for individuals too, somewhere around $100k to $200k. She also said a relationship may hold at one point in time or for some populations, but not for everyone.
Correlation only sees straight lines
Correlation and covariance only measure the strength of a linear (straight-line) relationship. A correlation near zero doesn't mean there is no relationship. It means there is no straight-line relationship.
Why: On slide 19,
Nobody in the room could answer this, and she said: "I also note that down that nobody was able to answer that, so potentially I ask this on the exam." Know that "correlation goes to zero doesn't always mean that there's no relationship."
Practice problem: pairs of shoes
This problem is from the textbook and mixes Chapters 1 and 2. Randomly chosen people were asked how many pairs of shoes they own. X is the number of pairs and f is the frequency.
| x | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| f | 2 | 5 | 8 | 12 | 12 | 0 | 1 |
Questions: (a) the sample mean and standard deviation, (b) a histogram, (c) the first quartile and the median, (d) the percent who own at least five pairs, (e) the 90th percentile. She added the mode as an extra question.
Reading a frequency table
The x row lists the possible answers. The f row counts how many people gave each answer. For example, 12 people said "five pairs". The sample size is the sum of all the frequencies. Because the people were randomly selected, this is a sample, so use the sample formulas.
- Mode: the highest frequency is 12, which appears for both
and -- the mode is the x value, not the count -- add the frequencies to count the people
Answer: The mode is 4 and 5, so the data are bimodal. 40 people were surveyed.
Students in class answered "12" for the mode and "7" or "8" for the sample size. Both are wrong. "Your mean, median, mode must be in units of x." "Make sure you can read a chart like this, you understand what f means, what x means."
Weighted mean
When data come in a frequency table, you multiply each value by how often it appears, add the results, and divide by the total count.
Why: The table is shorthand for the raw list: two 1s, five 2s, eight 3s, and so on. Multiplying by
where
Not on any formula sheet, so memorise it.
-- weight each value by its frequency -- add the products -- divide by , not by 7
Answer:
Standard deviation from a frequency table
This is the same sample standard deviation formula, except each squared gap is multiplied by its frequency before you add them up.
Why: It is still "the average of squared deviations from the average". Each value's squared gap just needs to be counted as many times as that value appears.
where
Not on any formula sheet, so memorise it.
She gave only the final answer (1.29). These are the steps, using
: -- squared gap times its frequency : : : : : -- nobody answered 6 : -- add them up -- divide by -- take the square root
Answer:
Percentiles from a frequency table
The
Why: A percentile is the value with
where
Not on any formula sheet, so memorise it.
The running totals for this table are 2, 7, 15, 27, 39, 39 and 40. So positions 1–2 hold x = 1, positions 3–7 hold x = 2, positions 8–15 hold x = 3, positions 16–27 hold x = 4 and positions 28–39 hold x = 5.
-- is the 25th percentile, so find its position - Count down:
, , -- position 10.25 falls between 8 and 15
Answer:
-- the median is the 50th percentile - Count down:
, then -- position 20.5 falls between 16 and 27
Answer: Median = 4 pairs.
-- the position of the 90th percentile - Count down:
, then -- position 36.9 falls between 28 and 39
Answer: 90th percentile = 5 pairs.
-- people with 5, 6 or 7 pairs -- divide by the sample size
Answer: 32.5% own at least five pairs.
Histogram
She didn't work part (b) in class. She called it easy because every bar is a single x value with equal widths: x along the bottom and frequency as the height.
These are the steps, since she didn't draw it.
- Put x (pairs of shoes, 1 to 7) along the bottom -- one bar per x value, all the same width
- Put frequency (f) up the side, from 0 to 12 -- the biggest f is 12
- Make each bar as tall as its f: 2, 5, 8, 12, 12, 0, 1 -- the bars sit side by side with no gaps
- Leave x = 6 empty -- nobody owns six pairs, so its height is 0, but 6 still keeps its spot on the axis
Answer: the histogram below. The two tallest bars, at 4 and 5, are the two modes you found above.
\begin{document}
\begin{tikzpicture}[x=1cm, y=0.4cm]
% Light grid every 2 people, so bar heights are easy to read.
\foreach \y in {2,4,...,12}
\draw[black!40, dashed] (0.5,\y) -- (7.5,\y);
% One bar per x value. Each bar is 1 wide and centred on its x, so neighbours touch.
% x = 6 has f = 0: no bar, but it keeps its place on the axis.
\foreach \x/\h in {1/2, 2/5, 3/8, 4/12, 5/12, 6/0, 7/1} {
\ifnum\h>0
\filldraw[fill=blue!45!white, draw=black] (\x-0.5,0) rectangle (\x+0.5,\h);
\fi
\node[above] at (\x,\h) {\small $\h$};
\node[below] at (\x,0) {$\x$};
}
% Axes and labels.
\draw[->] (0.5,0) -- (7.9,0);
\draw[->] (0.5,0) -- (0.5,13.6);
\foreach \y in {0,2,...,12}
\node[left] at (0.5,\y) {\small $\y$};
\node at (4,-2.6) {Pairs of shoes owned ($x$)};
\node[rotate=90] at (-0.6,6.5) {Frequency ($f$)};
\end{tikzpicture}
\end{document}
"Your concepts should be very clear on what quartiles, percentiles, median, what do they mean, and the process of finding it." First put the data in ascending order. Then use the formula to get the position. Then find the x at that position: "this is not the answer. It's not the final answer." She called the whole problem "a really good question because it's testing everything". Solve it all at home.
Exam checklist
- #Center and spread: know the five measures of spread by name.
- #Range: max minus min. Its weakness is outliers.
- #Variance and standard deviation: memorize the formula because it is not on the formula sheet. Watch brackets and squares on the calculator, and round to two decimals.
- #Population and sample symbols: know every symbol. The formula sheet won't define them.
- #Why divide by n minus 1: samples always use
. - #Covariance: the population formula is on the sheet, but the sample one (divide by
) is not. Know what each sign means. - #Correlation only sees straight lines: a correlation near 0 can hide a curved relationship. She flagged this as a likely exam question.
- #Reading a frequency table: the mode is an x value (4 and 5, not 12), and
is the sum of f. - #Percentiles from a frequency table:
gives a position, then read off the x.
Admin & deadlines
- Midterm 1: October 4, 12:00–1:00 PM (syllabus). It covers Chapters 1, 2 and 3 only. Chapter 4 will be taught before October 4 but will be tested on Midterm 2. She called Midterm 1 the easiest of the three exams, so aim high on it.
- Midterm 2: November 21, 3:00–4:00 PM (syllabus). It is not cumulative, so Chapters 1–3 won't be on it.
- Final exam: cumulative. It is worth 35%, or 55% if the lower midterm is dropped (syllabus).
- Weights (syllabus): each midterm is worth 20%, the two assignments are 7.5% each, and tutorial participation is 10%. Your two lowest tutorial grades are dropped.
- Tutorial tonight (September 17): Tutorial 3, 7:00–8:20 PM, LH1011. There is one mini-quiz question that could come from anywhere in Chapters 1–2. It is open-note, with no AI and no devices. You don't need a laptop with Stata running. The first three tutorials are Stata labs, and later ones are extra practice questions. Tutorial questions are marked 0.5 for submitting and 1 for a correct answer (syllabus).
- No tutorials on October 8 and 9 (the Thursday and Friday after Midterm 1; she said "I think" these are the dates, so check MyLS), and none during the Midterm 2 week either.
- Reading: read Chapters 1 and 2 over the weekend and review your notes before each class. Only read about the measures discussed in class, and skip any others in the book.
- Homework: do the whole shoe problem at home, plus more practice problems from the textbook.
- Bring the calculator you'll use on the exam. Sit near the front, because she uses the board.
- Next class: Chapter 3 (probability): Venn diagrams, probability and likelihood, mutually exclusive events, union and intersection, and permutations and combinations. Expect examples with dice, coins and a 52-card deck instead of economics examples. You can ask questions about today's material at the start of that class.
Transcribed automatically from the lecture recording. Slides used: EC 285 - Ch. 02 - Descriptive Statistics (slides).pdf. Course info used: EC 285 - Syllabus - Fall 2026.pdf. Audio archived at /mnt/porsche/configs/lectures/archive/2026-09/EC 285 - 2026-09-17 - Lecture 03.opus.