EC 285 - 2026-09-15 - Lecture 02

EC 285 - Lecture 02 - 2026-09-15

Introductory Statistics · Zara Liaqat · SB 106

Week 2 · 15:59-17:17 · 77 min · Full transcript · Flashcards

Overview

This lecture finished Chapter 1 and started Chapter 2. It covered why we sample, the two sampling methods you are responsible for, descriptive versus inferential statistics, the types of variables, and how a histogram differs from a bar chart. Chapter 2 then began with the two big families of summary numbers, centre and spread. The lecture worked through the mean, median and mode with a practice problem, and ended on percentiles and quartiles. Variance, standard deviation, covariance and correlation are on the Chapter 2 slides but were not reached yet.

Why we sample

This finishes the Chapter 1 slides. Part of it reviews Lecture 1, and it uses the same terms (population, sample, representative).

Why we need a sample

Statistics gives us tools to process (collect), summarize, analyze and interpret data. We collect data from a sample and use it to learn about the larger population. We can't just survey the whole population because it takes too much time and money. Often it isn't even possible, because of non-response: many people ignore survey requests. The lecturer said that when she is busy she deletes survey emails without opening them. A small chance to win a $25 gift card doesn't change that for her, but a guaranteed one does.
Why: Since we only ever see part of the population, any claim we make about the population stays uncertain, even with a good sample.

Representative samples

A representative sample looks like the larger population. For example, it should not be all very old people, all middle-aged people or all women. A bigger sample helps, but being representative matters more. Statistics Canada makes its samples representative by stratifying. It sets shares in advance (for example 20% from smaller provinces or rural areas) and then picks at random within each group.
Why: If the sample is lopsided, your claims about the population are lopsided too, however big the sample is.

Exam

Stratified sampling was only described as background. The lecturer said "just focus on these two" (simple random and systematic) and "ignore the other method that is in the book." "You're responsible for only these two types of sampling methods."

Simple random sampling

Individuals or items are picked from the population strictly by chance.

Systematic sampling

First, arrange the population in an order that has nothing to do with what you are studying. (For example, if you're trying to study about how age affects something, don't arrange the population by age). Then, pick a random starting point among the first J items, and take every Jth item after that. It is more organized than simple random sampling, but the random start keeps some chance in it.
Why: The random start keeps the selection chance-based. The fixed step spreads the sample evenly across the whole list. The order must not be related to your question, so if you are studying income, don't sort by income.

J=Nn

where N (capital) is the population size and n (lowercase) is the sample size.
Not on any formula sheet, so memorise it.

Example: picking 9 items from 72

You want a sample of n=9 from a population of N=72 items, numbered 1 to 72.

  1. J=Nn=729 -- put in the sizes
  2. J=8 -- so take every 8th item
  3. Pick a random number from 1 to 8: say 3 -- this is the only random step
  4. 3, 3+8=11, 11+8=19, 27, 35, 43, 51, 59, 67 -- keep adding 8

Answer: The sample is items 3, 11, 19, 27, 35, 43, 51, 59 and 67. That makes nine items, and the last one is 67.

Exam

Simple random sampling and systematic sampling are the only two sampling methods you are responsible for. The lecturer called this 72-and-9 example "the best one to understand how it works."

Descriptive and inferential statistics

Two branches of statistics

Why: Description tells you what your sample looks like. Inference is how you get from the sample to a claim about the whole population, which is the goal of the course.

Exam

"It's a math course, not an economics course." Exams will have "numerical questions where you have to find the probability and the area under the graph." She also said: "If you want to do well on exams, you should know every single thing that's mentioned on the slides." But "I'm not going to test you on something that wasn't part of the lectures." She also said it is important to keep comprehensive notes to go with the slides.

Types of variables

Discrete and continuous variables

Why: The type of variable decides which charts and summaries make sense.

Exam

"Lots of new terms in this chapter, and you should know all of them." "Anything that's in bold is especially important... I might ask multiple-choice questions on these terms." You don't have to recite definitions word for word, but you need to be able to pick the right option.

Categorical variables

A categorical variable sorts things into groups instead of measuring a number. Examples are hospital units, gender, relationship status, and hair or eye colour.
Why: You can't average categories, so they get their own charts and summaries.

Charts for each type

Bar charts and pie charts are the most common charts for categorical variables. Numerical variables have more options, including the histogram. Bar charts can show numerical variables too.

Exam

Only study the chart types listed on the slides. Skip the box-and-whisker plot and the other extra charts in the book: "I won't be testing you on those."

Frequency distributions and histograms

Frequency distribution table

This is a two-column table. The first column lists the values (for example 0, 1, 2, 3... children). The second column shows the frequency, meaning how many observations have each value (for example how many families have no children, one child, and so on). In this example both columns are discrete, because you can't have 5.5 instances. When you group values into ranges like 10 to 20 and 20 to 30, those ranges are the class intervals, and their edges are the class boundaries.
Why: For long data sets, a table or histogram is much easier to read than a raw list. The lecturer said it is also important when calculating averages.

Histogram versus bar chart

In a histogram, the area of each rectangle is proportional to the frequency. Interval widths don't have to be equal. You can merge empty or sparse intervals into one wider bar, as long as you lower its height so the area still matches the frequency. In a bar chart every bar has the same width, and only the height changes. Histograms also need numerical data, and the x-axis has to be in order. You can't draw a histogram for a categorical variable. Some answers from class did not count as the difference, because a bar chart can have them too: no gaps between the bars, multiple bars, and a variable on each axis.
Why: Because area carries the frequency, the researcher is free to choose the intervals without distorting the picture.

Example: merging two intervals

The intervals are 10 wide. The lecturer merges 20 to 30 and 30 to 40 into a single bar from 20 to 40 that holds a frequency of 11.

  1. new width=2×old width -- two intervals merged into one
  2. height=112=5.5 -- divide by 2 so the area stays at 11
  3. area=5.5×2=11 -- area (in old-width units) matches the frequency

Answer: The bar's height is 5.5, not 11. The bar is twice as wide, so its area still equals the frequency of 11.

Exam

This got a long discussion in class, and the lecturer pointed out that "this is not explained in the book." The phrase she was looking for is "the area of the rectangle that you end up with should be proportional to the frequency."

Describing data numerically

This starts Chapter 2. Everything here is descriptive statistics.

Centre and spread

The first two things to check in any data set are where the centre is (measures of central tendency) and how spread out the data is around it (measures of variation). The lecturer showed a bell-shaped frequency curve of midterm grades: grade on the x-axis, how often each grade occurs on the y-axis. It is smooth because grades there are treated as a continuous variable. Whether a small spread is "good" depends on the centre. A small spread around a 70 average is ideal. Around a 40 average it would mean most people failed. In that case she would rather see a bigger spread around the low average. Around a 90 it might mean the exam was too easy. The lecturer said one line in Stata (summarize grade, or sum grade) gives the mean, median, minimum, maximum and other summaries in an instant. (In Stata itself, plain summarize shows the count, mean, standard deviation, minimum and maximum. You need summarize grade, detail to get the median and percentiles, and neither version shows the mode. This only matters for the assignments, since there are no Stata questions on exams.)
Why: The average alone hides how typical it is. Two data sets can share a centre and have very different spreads.

Exam

"There will be questions on the first exam where I ask you to find these numbers or define them." Midterm 1 is October 4, 12:00 to 1:00 PM (from the syllabus).

Measures of variation

There are five: range, interquartile range, variance, standard deviation and coefficient of variation. They describe how spread out the data values are. Their formulas are on the slides but were not covered yet.
Why: They tell you whether a given value is close to or far from the centre.

Exam

"You should be familiar with all five of them." She called variance and standard deviation "important terms," and said "we will talk about these throughout the course. For every probability distribution theorem, there is going to be a formula for variance and standard deviation."

Measures of central tendency

Mean

The arithmetic mean is the average: the sum of all observations divided by the number of observations.
Why: It uses every value, so it is the natural "typical value." That same fact is why extreme values pull it around.

x¯=∑i=1nxin

where x¯ (the bar) means the average, xi is the i-th value, n is the number of observations, and ∑i=1n means add up x1,x2,…,xn.
Not on any formula sheet, so memorise it.

Example: mean number of employees

A population of seven companies has 1, 2, 2, 3, 4, 4, 5 employees.

  1. x¯=1+2+2+3+4+4+57 -- add all values, divide by the count
  2. x¯=217 -- the sum is 21
  3. x¯=3 -- divide

Answer: The mean is 3 employees.

Median

The median is the middle value once the data is sorted in ascending order. It is also called the 50th percentile, because half the observations are below it and half are above it. With an even number of observations, take the average of the two middle values.
Why: Outliers and extreme values move the mean but not the median. That makes the median useful when data is skewed or has outliers.

Example: median number of employees

Same seven companies: 1, 2, 2, 3, 4, 4, 5. The data is already sorted.

  1. n=7 is odd, so there is one middle value -- the 4th
  2. The 4th value is 3 -- count 1, 2, 2, 3

Answer: The median is 3, the same as the mean here.

Example: median with an eighth company

Add an eighth company with 7 employees: 1, 2, 2, 3, 4, 4, 5, 7.

  1. n=8 is even, so there are two middle values -- the 4th and 5th
  2. The middle values are 3 and 4
  3. median=3+42=3.5 -- average them

Answer: The median is 3.5.

Exam

For an even count, the lecturer will accept 3.5, and "if you say it's 3 and 4, I would consider that correct as well." (3.5 is the standard answer, so give that one on a test.)

Outliers and shifts

Changing an extreme value moves the mean but not the median. Adding the same amount to every value moves both the mean and the median up by that amount.
Why: The median only depends on which value sits in the middle position. The mean depends on every value.

Example: last value becomes 10

Change the last company's 5 employees to 10: 1, 2, 2, 3, 4, 4, 10.

  1. The median is still the 4th value: 3 -- the middle position hasn't changed
  2. x¯=1+2+2+3+4+4+107=267 -- the sum rises from 21 to 26
  3. x¯≈3.71 -- divide

Answer: The median stays at 3, and the mean goes up from 3 to about 3.71.

Example: add 3 to every value

A recording error means every company actually has 3 more employees: 4, 5, 5, 6, 7, 7, 8.

  1. x¯=4+5+5+6+7+7+87=427=6 -- the mean was 3
  2. The median is the 4th value: 6 -- it was 3

Answer: Both go up by exactly 3. In the same way, giving everyone 2 bonus marks would raise the class average by 2 ("don't count on that").

Exam

The lecturer said this practice problem shows "how mean, median would be impacted if there is outliers, if there's a mistake in value itself." The outlier question has two answers: the median does not change, and the mean goes up.

Mode

The mode is the most frequently observed value. Data may have no mode if every value appears only once.
Why: It shows the most common value, and it works even for categories.

Shape and skewness

Real data is rarely perfectly symmetric. It is often skewed, meaning it has a long tail on one side.

Why: Comparing the mean and median tells you which way the data leans. That is why you report both.

Geometric mean

The geometric mean is another kind of average: the n-th root of the product of the values. It is used for average rates of return and growth (markets, investment, population).
Why: Growth compounds, so rates multiply instead of adding. A plain average of growth rates overstates the true average whenever the rates differ.

x~=(∏i=1nxi)1/n=(x1⋅x2⋯xn)1/nrs=(x1⋅x2⋯xn)1/n−1

where ∏ means multiply all the values, n is the number of values, and for rs each xi is a growth factor (1 plus that period's return).
Not on any formula sheet, but you don't need to memorise it, because it is not tested.

Made-up example: average yearly return

An investment falls 10% in year 1 and rises 60% in year 2, so the growth factors are 0.9 and 1.6.

  1. 0.9×1.6=1.44 -- multiply the growth factors
  2. (1.44)1/2=1.2 -- take the square root, since n=2
  3. rs=1.2−1=0.2 -- subtract 1 to get a rate

Answer: The average is 20% per year. Check: 100→90→144, and 100×1.22=144. The plain average of −10% and 60% is 25%, which overstates it.

Exam

This one is not tested: "You don't need to know this formula. I'm not going to test you on geometric means." She suggested putting a cross on that slide.

Percentiles and quartiles

This uses the same seven-company data. The median from the previous section turns out to be a special percentile.

Percentiles

The P-th percentile is the value that P% of the observations fall below, with the rest above. For example, an IQ at the 90th percentile means 90% of people score lower and 10% score higher. Percentiles are generally used for large data sets.
Why: A percentile shows where a value stands relative to the whole data set, not just the average.

position=P100(n+1)

where P is the percentile you want and n is the number of observations. The answer is the value sitting in that position once the data is sorted in ascending order.
Not on any formula sheet, so memorise it.

Example: 75th percentile of employees

Data: 1, 2, 2, 3, 4, 4, 5, with n=7.

  1. position=75100(7+1) -- put in P and n
  2. =0.75×8=6 -- we want the 6th position
  3. Count 1, 2, 2, 3, 4, 4: the 6th value is 4 -- read off the sorted data

Answer: The 75th percentile is 4 employees, not 6. Six is only the position.

Exam

"This is not the answer, and this is the mistake a lot of students make. The 75th percentile is not 6." "This formula here tells you what position you're looking at, not the final answer."

Quartiles

Quartiles are the special percentiles that split sorted data into four parts, each with an equal number of values. The parts can have different widths. Q1 is the 25th percentile, Q2 is the 50th percentile (the median), and Q3 is the 75th percentile. The lecturer added that Q4 is the last observation. (Most references stop at Q3 and just call the largest value the maximum.)
Why: They are the most widely used percentiles, and they also give you the interquartile range later on.

Made-up example: first quartile of employees

Same data: 1, 2, 2, 3, 4, 4, 5, with n=7.

  1. position=25100(7+1)=0.25×8=2 -- we want the 2nd position
  2. The 2nd value is 2 -- count 1, 2
  3. Check Q2: 50100(8)=4, and the 4th value is 3 -- this matches the median

Answer: Q1=2 employees, Q2=3 (the median), and Q3=4 (from the example above).

Exam checklist

Admin & deadlines


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-15 - Lecture 02.opus.