EC 285 - 2026-09-29 - Lecture 06
EC 285 - Lecture 06 - 2026-09-29
Week 4 · 16:01-17:16 · 74 min · Full transcript · Flashcards
Overview
This lecture started Chapter 4, Discrete Random Variables and Probability Distributions. It set out the three-step pattern used for every distribution in the rest of the course: the probability function, the expected value and the variance. It then defined random variables and built a full probability distribution for tossing two coins, with its cumulative probabilities, mean, variance and standard deviation. It ended with linear functions of random variables, which lead into portfolio analysis after the midterm. The named distributions on the slides (Bernoulli, binomial, Poisson) and joint distributions were not reached. Chapter 4 is not on Midterm 1.
How the distribution chapters work
The three-step pattern
Every probability distribution in this course, discrete or continuous, gets described in the same three steps. First comes the function, which says when to use the distribution and gives the probabilities. Second comes the expected value, which is the average. Third comes the variance, which measures the spread.
Why: Together the three steps give a complete description of a distribution. You know which values can happen and how likely each is, where the centre is, and how spread out it is.
The formula sheets for Midterm 2 and the final list each distribution by name, with its mean and variance. (Check the sheets: Bernoulli, binomial, Poisson and uniform have their mean and variance written out. The normal entry gives only its density, and the exponential gives only its density and cumulative function.) The Midterm 1 sheet does not list the distributions. It only has the normal density. She said to "use that formula sheet like the memory aid", but "you still need to know how to apply those formulas", and that is what the class examples are for. Things like standard deviations, averages and medians are not on the Midterm 1 sheet, so remember them.
Random variables
This picks up the discrete versus continuous split from Chapter 1 (Lecture 02).
Random variable
A random variable is a possible numerical value from a random experiment. It is random because you don't know the outcome ahead of time, and several outcomes are possible.
Discrete and continuous
- Discrete random variable: takes no more than a countable number of distinct values, usually whole numbers. Roll a die twice and let
be the number of 4s: is 0, 1 or 2, never 1.1 or 2.5. Toss a coin 5 times and let be the number of heads: or . - Continuous random variable: can take any value in an interval, so fractions as well as whole numbers. Examples are the weight of packages from a filling machine, the temperature of a cleaning solution, and grades.
Why: The two types need different tools. Chapter 4 is the only chapter on discrete random variables. Continuous ones start in Chapter 5 and fill most of the rest of the course.
Capital X and small x
Capital
Why: Formulas such as
"This big versus small x is consistently used throughout the course. It will always be the case that the big X is the random variable and the small x is one specific value."
Probability distributions
Probability distribution function
The probability distribution function lists every possible value of a random variable together with its probability. You can give it as a table, as a chart, or as both.
Why: The value of a random variable is unknown ahead of time, so the best full description is every value it could take and how likely each one is. That also shows the centre and the spread.
Properties: every
where
Toss two coins and let
(TT), (HT or TH), (HH) -- list every possible value of ; there is no fourth option. -- one favourable outcome (TT) out of four. -- two favourable outcomes (HT, TH) out of four. -- one favourable outcome (HH) out of four. -- check that the probabilities add to 1.
Answer:
She also drew this distribution as a bar chart, with one bar at each of 0, 1 and 2, all the same width. Plain vertical lines are fine too.
left=-0.5; right=2.5; bottom=0; top=0.6
---
(0,0.25)
(1,0.5)
(2,0.25)
x is the number of heads, and y is the probability of that number.
A discrete random variable gives a chart of separate bars like this one. A continuous random variable gives a smooth curve, often bell-shaped.
Skewness review
This came up as an aside while she sketched a continuous curve with a long right tail. It reviews "Shape and skewness" from Lecture 02. A distribution with a long right tail is right-skewed. In a right-skewed distribution the median is less than the mean.
Why: The large values in the right tail pull the average up, but they barely move the middle value.
This is Chapter 2 material, so it is fair game for Midterm 1. The class got it wrong at first: someone said left-skewed, and the answer is right-skewed. She said "These are all potential exam questions, and I'm a bit worried that nobody is able to answer them", and called it "a potential exam, an easy MCQ setting."
Cumulative probability function
The cumulative probability
where
Not on any formula sheet, so memorise it. The exponential distribution's
Properties:
where
The two cumulative probabilities can be equal. That happens when
Why: It is more information about the discrete case. For example,
Use the two-coin table:
-- no values lie below 0, so this is just . -- add to the running total. -- add ; the last value always reaches 1.
Answer:
Expected value and variance
These use the two-coin table, and they are the discrete, probability-weighted versions of the mean and variance from Chapter 2 (Lectures 02 and 03).
Expected value
The expected value of
Why: It is a weighted average. If every value were equally likely, say
where
Not on any formula sheet, so memorise it. The sheets only give
Use the table
-- multiply each value by its probability, then add. -- work out each product. -- add them.
Answer:
"It's so important… even at the end of the term, I've seen students not knowing this concept, and we are going to use this so many times." Also: "this formula is not on the formula sheet, so you have to remember this."
Variance and standard deviation
The variance
Why: It is the same idea as the Chapter 2 variance. For each value, find how far it is from the mean, square that gap, and average the squares. The only change is that the average is now weighted by probability. The slide gives the general rule
where
This is the rarely used shortcut, and it gives the same answer.
where
Not on any formula sheet, so memorise one of the two variance formulas. She prefers the first because it matches the definition: differences from the mean, squared, then averaged.
Use the table
-- subtract the mean from each value, square it, and weight it by its probability. -- work out the squared gaps. -- multiply and add. -- take the square root to get the standard deviation.
Answer:
She set this as optional homework: show that the shortcut formula gives the same variance. Use the same table, with
-- square each value and weight it by its probability. -- work out and add the products. -- subtract the squared mean.
Answer:
You only need one variance formula: "You only need to remember one." You can pick "whichever you like more." For practice, she pointed to the textbook examples, where the tables are longer and the arithmetic is harder: "This is midterm two, but still important."
Linear functions of random variables
Mean and variance of a linear function
Let
Why: The mean follows the same rule as the variable. Suppose she doubled everyone's grades: the class average would double too. Suppose she added 5 points to everyone's grade: the whole distribution would shift right by 5, so the average goes up by 5, but the spread does not change. That is why
where
Not on any formula sheet, so memorise it.
Toss two coins, with
-- apply the mean rule with and . -- the arithmetic. -- apply the variance rule; the $3 drops out. -- the arithmetic.
Answer:
Constants and scaling
These side rules explain the formulas above. The expected value of a constant is the constant itself, since it only ever takes one value. The variance of a constant is zero, since it never varies. (In class, someone guessed "the constant" or "the square root of a", but the answer is zero.) Multiplying by a constant scales the mean by that constant and the variance by its square.
Why: A constant such as 0.5 is always 0.5, so its average is 0.5 and it has no spread at all.
where
Not on any formula sheet, so memorise it.
Take the two-coin
and -- a constant is its own average and has no spread. -- multiply the mean by 4. -- multiply the variance by 4 squared.
Answer:
Portfolio analysis preview
This is the main application of linear functions, and it was only previewed. Suppose you have $1,000 to split between two stocks,
Why: It helps an investor decide how to allocate funds, depending on the stocks' average returns, how much they vary, and how risk-averse the investor is.
A worked example with real numbers is coming after the midterm, either in class or in a tutorial.
Exam checklist
- #The three-step pattern: the Midterm 2 and final sheets list the named distributions with their formulas (the mean and variance for most of them), but you must know how to apply them.
- #Capital X and small x: capital
is the random variable and small is one of its values, all course long. - #Skewness review: long right tail means right-skewed and mean greater than median (Midterm 1, likely a multiple-choice question).
- #Expected value: the expected value is the mean; the formula is not on the sheet.
- #Variance and standard deviation: memorise one of the two formulas; practise on longer textbook tables.
Admin & deadlines
- Midterm 1: Sunday, October 4, 12:00–1:00 pm (the time is from the syllabus; the lecturer only said Sunday, October 4). It was first set for the 11th and moved a week earlier so that it would not fall at the start of reading week. It covers Chapters 1, 2 and 3 only. Chapter 4 is not on it, even though the syllabus schedule lists Discrete Random Variables in the same week as Midterm 1. She said you already know where you are sitting.
- How Midterm 1 counts: It is worth 20%. If you do much better on the final, this midterm can be dropped. By the syllabus, the lower midterm can be dropped and the final then counts for 55% instead of 35%. She said this will be "the easiest of the three exams", so "give it your best shot."
- Review session: Thursday, October 1, in class. The first half hour covers the exam and any concepts you email her in advance. Then there is about an hour of sample questions, timed like an ungraded mock exam. No sample exam will be posted. Bring a calculator, and review all lecture notes and slides for Chapters 1 to 3 beforehand, because you will be expected to do most of the work.
- Start prepping now: TAs and IAs have extra office hours, but they don't answer emails on weekends. Don't leave questions to the Friday or Saturday before the exam.
- Practice: Work through the class examples, the extra questions she posted and the textbook examples. She suggests asking the course AI Tutor for similar or slightly harder questions, but check everything it says against her method.
- Tutorials: There is a tutorial this week and none next week. She cancelled next week's so that reading week starts sooner. The syllabus says there are no tutorials during midterm exam weeks.
- Chapter 4 resumes: Tuesday, October 6. She wants to finish it before reading week. It will have "plenty of questions" on Midterm 2 (November 21, 3:00–4:00 pm) and on the final.
- Optional homework: Check that the shortcut variance formula gives 0.5 for the two-coin example.
Transcribed automatically from the lecture recording. Slides used: EC 285 - Ch. 04 - Discrete Random Variables (slides).pdf. Course info used: EC 285 - Formula Sheet - Final.pdf, EC 285 - Formula Sheet - Midterm 1.pdf, EC 285 - Formula Sheet - Midterm 2.pdf, EC 285 - Syllabus - Fall 2026.pdf. Audio archived at /mnt/porsche/configs/lectures/archive/2026-09/EC 285 - 2026-09-29 - Lecture 06.opus.