P&S Pass Guide

Probability & Statistics
Exam Pass Guide

Everything from Week 2 to Week 6 in simple words, with the professor's own examples, and all 19 sample questions from Week 7 solved step by step.

Weeks 2 to 719 solved questionsNo symbol left unexplained

How to use this page

The one idea behind the whole course

A probability is just a number between 0 and 1 that says how likely something is. 0 means "never". 1 means "always". 0.5 means "half of the time". Everything else in this course is a tool to find that number.

Plan for the 4 hours (12:00 to 4:00)

TimeWhatSample questions
12:000 · Symbols (quick look) and 1 · Sets and basic probabilityQ1, Q2, Q3, Q4
12:352 · Conditional probability, Bayes, treesQ7, Q8, Q9
1:103 · Counting and independent trialsQ5, Q6
1:304 · Random variables, PMF, the 6 familiesQ10, Q11, Q13, Q16, Q19
2:15Break, 10 minutes
2:255 · CDFQ12, Q17
2:506 · Expected value and varianceQ14, Q15 (a, b, c)
3:207 · Conditional PMFQ15 (d), Q18
3:459 · Formula sheet and traps (read together)

If you run late: never skip lessons 4, 5, 6. Most sample questions come from them.

0

Symbols dictionary

Come back here any time a symbol looks strange

Sets and events

SymbolSay itMeaning
"the set of"A list of things. Example:
"sample space"All possible results of the experiment
"is in" means 2 is inside the list
"is not in"
"A is inside B"Everything in A is also in B
"empty set"A set with nothing in it. It means "impossible"
"A or B"In A, or in B, or in both
"A and B"In A and in B at the same time. is a short way to write it
"not A"Everything that is not in A
"A minus B"In A but not in B

Probability

SymbolSay itMeaning
"probability of A"How likely A is. A number from 0 to 1
"probability of A given B"How likely A is when we already know B happened. The bar | means "given"
"n factorial". Example: . Also
"n choose k"Number of ways to pick k things out of n when order does not matter
"add up"Add all the things that follow
"at most", "at least" includes the number itself. does not

Random variables

SymbolSay itMeaning
"big X"The name of a random number. Example: X = number of heads
"small x"One value that X can take. Example: x = 2
"range of X"The list of all values X can take
"PMF of X". The probability that X is exactly x
"CDF of X". The probability that X is x or less
"expected value", "mu"The average of X. Both symbols mean the same thing
"variance"How spread out the values are
"sigma", standard deviation. The typical distance from the average
"PMF of X given B"The PMF after we learn that B happened
"small p"Probability of success in one try
"alpha", "lambda"Greek letters used in Poisson. = average per second. = average in T seconds
"e"A fixed number, about 2.718. Use the button on the calculator
"epsilon"A very, very small positive number. means "just before a"
1

Sets and basic probability

Week 2

1.1Four words you must know

WordSimple meaningDie example
ExperimentSomething we do and watchRoll a die once
OutcomeOne possible resultThe die shows 4
Sample space The list of all possible outcomes
EventA group of outcomes we care about"Roll is even"
In simple words

The sample space is the full menu. An outcome is one dish. An event is a group of dishes, like "all the spicy ones".

The slides say the sample space must be three things:

  • Finest-grain: every different result is written separately.
  • Mutually exclusive: only one outcome can happen each time.
  • Collectively exhaustive: no possible outcome is missing.
Example from the slides

Flip four coins (penny, nickel, dime, quarter). Each shows head (h) or tail (t). How many outcomes are in the sample space?

Show solution

Each coin has 2 results. There are 4 coins. Multiply:

The outcomes look like: hhhh, hhht, hhth, ..., tttt.

Answer16 outcomes

1.2The four set operations

Events are sets, so we combine them with set operations. The blue area is the result.

ABS A ∪ BA OR B (or both)
ABS A ∩ BA AND B together
ABS AᶜNOT A
ABS A − Bin A but not in B

Try them with a die. Let and .

WriteReadResult
A or B
A and B
not A
A but not B
Rules from the slides

De Morgan's law (how "not" moves inside brackets):

De Morgan in simple words

"Not (tea or coffee)" is the same as "no tea and no coffee". When "not" goes inside, or flips to and, and and flips to or.

1.3Two exam words: mutually exclusive, collectively exhaustive

WordMeaningHow to test
Mutually exclusive
(for two sets: disjoint)
They share nothing. They cannot happen together.Is ? If you find even one common outcome, the answer is no.
Collectively exhaustiveTogether they cover everything.Is ? If even one outcome of S is missing, the answer is no.

A group of events that is both is called an event space. Every outcome falls in exactly one of them.

Picture

Cut a pizza into slices. The slices do not overlap (mutually exclusive) and together they make the whole pizza (collectively exhaustive). The slices are an event space.

Quick check with a die

and . Mutually exclusive? Collectively exhaustive?

Show solution

. They share 2, so they are not mutually exclusive.

. The outcomes 3 and 5 are missing, so they are not collectively exhaustive.

1.4The rules of probability

means "the probability of event A". The whole theory stands on three basic rules, called axioms:

The 3 axioms
  1. . A probability is never negative.
  2. . Something from the sample space always happens.
  3. If events are mutually exclusive, the probability of "one or the other" is the sum:

From these we get the tools you will use in every question:

Your toolbox

Not rule:

Or rule (always works):

Or rule when disjoint (nothing shared, so ):

Split rule (cut A into the part inside B and the part outside B):

Equally likely outcomes:

Also: , and if then .

Why do we subtract in the "or" rule?

If you add and , the shared part is counted two times. So we take it away once.

Writing note: , and all mean the same thing: "A and B".

Example from the slides: fair die

Roll a six-sided die. All faces are equally likely. Find the probability of each outcome, and of: "roll 4 or higher", "roll an even number", "roll the square of an integer".

Show solution
  1. 6 outcomes, all equally likely. Each one has probability .
  2. "4 or higher" . That is 3 outcomes: .
  3. "Even" . That is 3 outcomes: .
  4. "Square of an integer" means or . So : .
Answer each; then

1.5The table trick (for questions with two labels)

Many questions describe each outcome with two labels, for example voice/data and long/brief. Draw a small table. Rows are one label, columns are the other. Each row and each column must add up to its total, and everything adds up to 1.

Example from the slides: phone calls

A call is voice (V) or data (D). It is also long (L) or brief (B). Given: , , . Find:

(1)   (2)   (3)   (4)   (5)   (6)

Show solution

Step 1. Put what you know in the table (the bold numbers). Then fill the rest by subtracting.

LBTotal
V0.350.350.7
D0.250.050.3
Total0.60.41
  • and .
  • (row V must add to 0.7).
  • (column L must add to 0.6).
  • .

Step 2. Read the answers.

  1. . Every call is voice or data.
  2. . A call cannot be long and brief together.
Trap

is "V and L" (one cell inside the table). is "V or L" (a whole row plus a whole column, with the shared cell counted once).

2

Conditional probability, Bayes, trees

Week 3, first half

2.1Conditional probability: "given that"

In simple words

Someone gives you a hint: "B happened". Now you forget everything outside B. B becomes your new, smaller world. Then you ask: inside this world, how much is A?

Rule

Read: "probability of A given B" equals "probability of both" divided by "probability of the hint". It only makes sense when .

Fast way when all outcomes are equally likely: count inside the new world.

Example from the slides: the urn

An urn has two black balls numbered 1 and 2, and two white balls numbered 3 and 4. One ball is selected, all equally likely. A = "ball is black". B = "number is even". C = "number is more than 2". Find and .

Show solution
  1. Write the sets. , , , .
  2. : the new world is . Inside it, the black balls are . So .
    With the formula:
  3. : the new world is . No black ball is in it. So .
Answer,
Trap

and are different. The thing after the bar is the hint. Always divide by the probability of the hint.

2.2The multiplication rule

Move to the other side of the last rule:

Rule

"Probability of both" = "probability of the first" × "probability of the second, given the first".

This is exactly what you do when you multiply along a branch of a tree diagram.

2.3Tree diagrams

Use a tree when the experiment happens in steps (first this, then that).

The 3 tree rules
  1. Branches that leave the same point add up to 1.
  2. Multiply along a path to get the probability of that path.
  3. Add the paths that give what you want.
Example from the slides: two traffic lights

The first light is equally likely red or green. With probability 0.8 the second light has the same colour as the first. Find: (second light is green), (you wait for at least one light), and .

0.5G₁0.8G₂G₁G₂ = 0.40.2R₂G₁R₂ = 0.10.5R₁0.2G₂R₁G₂ = 0.10.8R₂R₁R₂ = 0.4
First light, then second light. Same colour again has probability 0.8.
Show solution
  1. Second light green. Add the paths that end in :
  2. Wait for at least one light. You wait if at least one light is red. The only path with no waiting is . Use the "not" rule:
  3. First green given second red. Use the conditional rule. The hint is .

Answer, ,
The "at least one" trick

"At least one" is hard to count directly. Its opposite, "none", is one single path. So: P[at least one] = 1 − P[none]. You will use this many times.

2.4Law of total probability

In simple words

You want , but A can happen in several different situations (an event space, like the pizza slices). Find A inside each situation, weigh it by how likely that situation is, and add.

Rule

For three situations: .

In a tree: this is "add all paths that end in A".

Example from the slides: resistors

Three machines make resistors. 80% of the resistors from are acceptable (A), 90% from , 60% from . Each hour makes 3000, makes 4000, makes 3000. They are all mixed. What is the probability that a resistor is acceptable? Also: what is the probability of picking a resistor from that is not acceptable (N)?

0.3B₁0.8AB₁A = 0.240.2NB₁N = 0.060.4B₂0.9AB₂A = 0.360.1NB₂N = 0.040.3B₃0.6AB₃A = 0.180.4NB₃N = 0.12
Multiply along each path. The numbers on the right add up to 1.
Show solution
  1. Which machine? Total is . So , , .
  2. Given the machine: , , .
  3. Add all paths that end in A:
  4. From and not acceptable: one path.
Answer and

2.5Bayes' theorem: turning the question around

In simple words

You know "given the machine, how likely is a good resistor". The question asks the reverse: "given a good resistor, how likely is it from this machine?" Bayes flips the direction.

Rule

In a tree: (the one path you want) ÷ (all paths that end in A).

Example: resistors again

A resistor is acceptable. What is the probability it came from machine ?

Show solution

Top: the path . Bottom: all three paths that end in A.

2.6Independent events

In simple words

A and B are independent when knowing one tells you nothing about the other. Example: a coin flip and a die roll.

The test

A and B are independent exactly when:

Same thing, written another way: and . The hint changes nothing.

Biggest trap of this lesson

Independent is not the same as disjoint.

  • Disjoint: they cannot happen together. .
  • Independent: they do not affect each other. .

If A and B are disjoint (and both have probability more than 0), they are not independent. Why? If A happens, you know for sure B did not. That is a lot of information.

Example from the slides: three test lights

Three tests, each light is red (r) or green (g). All 8 sequences are equally likely. = second light red, = second light green, = first light red. (a) Are and independent? (b) Are and independent?

Show solution

. Each outcome has probability .

  1. (a) and . The second light cannot be red and green together, so .
    Test: . Not independent. (They are disjoint.)
  2. (b) , so .
    Test: . Equal. Independent.
Example from the slides: circuit with two tests

A circuit has a mechanical test and an electrical test. Failures are independent. Mechanical failure has probability 0.05. Electrical failure has probability 0.2. Find the probability of each of the four results.

Show solution

Independent means: multiply. Let M = mechanical fails, E = electrical fails. Then , .

E fails (0.2)E passes (0.8)
M fails (0.05)0.05 × 0.2 = 0.010.05 × 0.8 = 0.04
M passes (0.95)0.95 × 0.2 = 0.190.95 × 0.8 = 0.76

Check: .

3

Counting and independent trials

Week 3, second half

3.1The basic idea: multiply the choices

Fundamental principle of counting

If step 1 can go ways and step 2 can go ways, then both steps together can go ways.

Example from the slides: flip a coin (2 results) and roll a die (6 results). Together: outcomes.

Picture

3 shirts and 2 trousers give outfits. For every shirt you can pick any of the trousers.

3.2The two questions that pick the formula

Before any counting question, ask:

  1. Can things repeat? (Can the same item be used again?)
  2. Does order matter? (Is AB different from BA?)
SituationFormulaExample
Repeat allowed, order matters
"sampling with replacement"
4-digit PIN:
No repeat, order matters
"k-permutation"
Deal 3 cards in order:
No repeat, use all n, order mattersShuffle a deck:
No repeat, order does not matter
"k-combination"
Choose 7 cards as a hand:
Arrange n items made of groups of identical items
"multinomial"
3 A's, 5 B's, 2 C's for 10 students
What the letters mean
  • : = number of choices for each position, = number of positions.
  • and : = how many things you choose from, = how many you pick.
  • is just the first numbers counting down from . Example: .
How to compute "n choose k" by hand

On the calculator it is the nCr button: 5 nCr 3 = 10. Useful fact: , so .

3.3Examples from the slides

Cards in order

Shuffle a deck and choose three cards in order. How many outcomes?

Show solution

No repeat (a card cannot come twice), order matters. So it is a k-permutation with , :

Seven cards, no queens

We draw seven cards. What is the probability of getting a hand without any queens?

Show solution
  1. A hand is a group. Order does not matter. So use "choose".
  2. All possible hands: .
  3. Hands with no queen: remove the 4 queens. Choose 7 from the other 48: .
  4. All hands are equally likely, so divide:
Binary code words with 4 bits

Each code word has 4 bits (0 or 1), like 0110. (1) How many code words are there? (2) How many have exactly two zeroes? (3) How many begin with a zero? (4) With N = 8 bits and exactly M = 3 ones, how many code words?

Show solution
  1. Each of 4 positions has 2 choices, repeats allowed: .
  2. Choose which 2 of the 4 positions hold the zeroes: .
  3. The first bit is fixed (0). The other 3 bits are free: .
  4. Choose which 3 of the 8 positions hold the ones: .
Answer16, 6, 8, 56
Grades for 10 students

10 students take an exam. 3 of them get A, 5 get B, 2 get C. How many ways are there to distribute the grades?

Show solution

We arrange 10 grades, but the 3 A's are identical, the 5 B's are identical, the 2 C's are identical. This is the multinomial formula:

Trap

"How many words with exactly two zeroes" is not . The word "exactly" means you are choosing positions, so use .

3.4Independent trials

In simple words

Repeat the same small experiment times. Each time it is a success with probability or a failure with probability . The tries do not affect each other. What is the chance of getting exactly successes?

Rule

where is the total number of tries.

Read it in three pieces:

  • : the successes all happen.
  • : the failures all happen.
  • : the number of different orders in which they can happen.
Example from the slides: sending one bit five times

A phone sends the same bit 5 times. The receiver is right if 3 or more of the 5 are received correctly. Each bit is wrong with probability . What is the probability that the information is wrong?

Show solution
  1. The information is wrong when 3, 4 or 5 of the bits are wrong. (Then fewer than 3 are correct.)
  2. Here "success" = a bit is wrong, with . There are tries.
  3. 3 wrong:
  4. 4 wrong:
  5. 5 wrong:
  6. Add:
Answer

This rule comes back in lesson 4 with a new name: the binomial random variable.

Now solve these sample questions: Q5 · words from lettersQ6 · binary code
4

Random variables and PMF

Week 4 · the heart of the exam

4.1What is a random variable?

In simple words

A random variable is a rule that turns each outcome into a number. Outcomes are often words or letters (like "hht"). We want numbers, so we can do maths with them.

  • Capital letter : the name of the random number. Example: X = "number of heads".
  • Small letter : one value it can take. Example: .
  • is an event: "X came out equal to x".
  • : the range. The list of all values X can take.
  • Discrete random variable: you can list its values one by one (0, 1, 2, ...). The whole course is about these.
Example from the slides: three phone calls

We observe three calls. Each is voice (v) or data (d), equally likely. X = number of voice calls. Y = number of data calls. R = XY (X times Y). Write the sample space and the values of X, Y, R.

Show solution

outcomes, each with probability .

OutcomeProb.X (voice)Y (data)R = XY
ddd1/8030
ddv1/8122
dvd1/8122
dvv1/8212
vdd1/8122
vdv1/8212
vvd1/8212
vvv1/8300

So R can only be 0 or 2: .

4.2The PMF

Definition

PMF = probability mass function. It is a price list: for each value x, it tells you the probability that X is exactly x.

Reading the symbol: the small below the P says which random variable. The is the value you ask about.

How to build a PMF (always the same 3 steps):

  1. List the values X can take.
  2. For each value, add the probabilities of all outcomes that give it.
  3. Write it in the "brace form", and finish with 0 otherwise.
Example: PMF of R (three calls)

From the table above: R = 0 for 2 outcomes (ddd, vvv). R = 2 for the other 6 outcomes.

and . "Otherwise" means every other number has probability 0.

Example from the slides: two free throws

Wilt Chamberlain shoots two free throws. Each shot is good (g) or bad (b), equally likely. A good shot is 1 point. Find the PMF of X, the number of points.

Show solution
  1. Outcomes: bb, bg, gb, gg. Each has probability .
  2. Points: bb gives 0. bg and gb give 1. gg gives 2.
  3. Add up: , , .
Example from the slides: GPA

A student takes two courses. In each one the grade is B (3 points) with probability 0.6 or C (2 points) with probability 0.4, independently. G = average of the two. Find the values of G and their probabilities.

Show solution
OutcomeProbabilityG
BB0.6 × 0.6 = 0.363
BC0.6 × 0.4 = 0.242.5
CB0.4 × 0.6 = 0.242.5
CC0.4 × 0.4 = 0.162

So , , .

4.3The three PMF rules

Theorem from the slides
  1. . No negative probabilities.
  2. . All the probabilities add up to 1.
  3. . For any event B, add the PMF of the values inside B.
How these rules are used in the exam
  • Rule 2 finds an unknown constant c: write the sum, set it equal to 1, solve for c.
  • Rule 3 answers "find " or "find P[X is even]": pick the values that fit, add their probabilities.
Example from the slides: find the constant

Find (1) the constant c, (2) , (3) , (4) .

Show solution
  1. Put in each value: , , .
    They must add to 1:
  2. . N can never be bigger than 3.
Answer; then

4.4The six famous families

Some stories come back again and again, so their PMFs have names. In the exam your first job is to recognise the story. Then you copy the formula and put in the numbers.

In all of them: = probability of success in one try, and = probability of failure.

1. Bernoulli (p)

Story: one try. X = 1 if success, X = 0 if failure.

2. Binomial (n, p)

Story: do a fixed number n of tries. X = how many successes.

for , and 0 otherwise.

Read: (which x tries succeed) × (x successes) × (n − x failures). It is the independent trials rule from lesson 3.

3. Geometric (p)

Story: keep trying until the first success. X = number of tries (the success is counted).

Read: first failures, then one success.

4. Pascal (k, p)

Story: keep trying until the k-th success. X = number of tries. ("k-th" means number k in order: 2nd, 3rd, ...)

for , and 0 otherwise.

Read: the last try is the k-th success. Before it, the other successes sit somewhere in the first tries. With it becomes the geometric.

5. Discrete uniform (k, l)

Story: every whole number from k to l is equally likely. (A fair die is uniform (1, 6).)

is just how many values there are. From 5 to 15 there are values.

6. Poisson (α)

Story: count how many arrivals (calls, hits, queries) happen in a time interval.

(lambda) = average arrivals per second. = length of the interval. (alpha) = average number of arrivals in that interval.

4.5Which family is it? Look for these words

Words in the questionFamily
One try, yes or noBernoulli (p)
"Sends n times", "100 bits", "number of successes / errors in n tries"Binomial (n, p)
"Until the first error / success", "number of tries needed"Geometric (p)
"Until the third error", "until the k-th success"Pascal (k, p)
"Uniformly distributed between ... and ...", "equally likely"Discrete uniform (k, l)
"Average rate", "per second", "in an interval of T seconds", "arrivals"Poisson (α = λT)
The quick question to ask yourself

What is fixed, and what is counted?

  • Number of tries is fixed, I count successes: binomial.
  • Number of successes is fixed (1 or k), I count tries: geometric or Pascal.
  • A time interval is fixed, I count arrivals: Poisson.
Traps
  • "Success" is whatever the question counts. In the modem question the "success" is an error.
  • Geometric and Pascal start at and . Binomial and Poisson start at .
  • Poisson: if the time interval changes, changes. Always compute again.
  • "At least one" = . "At least two" = .

4.6Poisson examples from the slides

Web site hits (Week 4)

Hits at a web site are Poisson with hits per second. (a) What is the probability of no hits in 0.25 seconds? (b) What is the probability of no more than two hits in one second?

Show solution
  1. (a) , so .
    "No hits" means :
    (Remember: any number to the power 0 is 1, and .)
  2. (b) New interval: , so .
    "No more than two" means 0, 1 or 2:
Answer(a) 0.607   (b) 0.677
Database queries (Week 5)

The number of queries in any 10-second interval is Poisson with . (a) Probability of no queries in a 10-second interval? (b) Probability of at least two queries in a 2-second interval?

Show solution
  1. (a) :
  2. (b) The interval changed. 5 queries in 10 seconds means per second. For 2 seconds: .
  3. "At least two" = 1 − (zero or one):
Answer(a) 0.0067   (b) 0.264
Calls at a switching office (Week 5)

Calls arrive with an average of calls per second. What is the PMF of the number of calls in seconds?

Show solution

. Put it in the Poisson formula:

For the sketch: , , , . The bars get smaller and smaller.

5

CDF: the running total

Week 5, first half

5.1What is the CDF?

Definition

CDF = cumulative distribution function. "Cumulative" means "collected so far". is the probability that X is x or less.

In simple words

The PMF is the money you get on each day. The CDF is the total in your pocket so far. To get the CDF, walk from left to right and keep adding the PMF.

PMF CDF
AsksX is exactly x?X is x or less?
Symbol
GraphSeparate barsA staircase going up

5.2From PMF to CDF

Example from the slides: CDF of R

R has and . Find and sketch the CDF.

0.250.75-101234rPR(r)
PMF of R: one bar for each possible value.

Walk from left to right and ask "how much probability have I passed so far?"

  • Before 0: nothing yet. Total = 0.
  • From 0 up to just before 2: we passed the bar at 0. Total = .
  • From 2 onward: we also passed the bar at 2. Total = .
00.251-101234rFR(r)
CDF of R. Filled dot = the value AT that point. Empty dot = not included.
What every CDF looks like (theorem from the slides)
  1. It starts at 0 on the far left and ends at 1 on the far right.
  2. It never goes down.
  3. It jumps at each value X can take. The height of the jump at is .
  4. Between jumps it is flat (a horizontal line).
How to read the brace form

Look at the line " for ". The left side has , so the jump happens at 0 and the value at 0 is already (filled dot). The right side has , so at 2 this line is finished (empty dot) and the next line takes over.

5.3From CDF back to PMF

Rule: the PMF is the jump

X can only take the values where the CDF jumps. At each one:

Example: a CDF goes 0 → 0.2 at , then 0.2 → 0.7 at , then 0.7 → 1 at . So , , . Check: .

5.4Reading probabilities from a CDF

This is asked a lot. Learn this table. "Just before a" is written in the slides ( is a tiny positive number).

You wantDo thisIn words
Height at a (the filled dot)
Height just before a
1 minus the height at a
1 minus the height just before a
jump at aHow much it jumps at a (0 if no jump)
Height at b minus height at a
The safest method

If the table feels hard: first write the PMF from the jumps. Then every question becomes "add the PMF of the values that fit". It always works and it is hard to get wrong.

Trap: < and ≤ are different

For discrete random variables, and are different when X can be exactly 1. The difference is , the jump at 1.

The opposite of "" is "". The opposite of "" is "". So , not .

Now solve these sample questions: Q12 · CDF in brace formQ17 · CDF from a graph

Part (d) of Q12 asks for the expected value. That is lesson 6: value × probability, then add.

6

Expected value and variance

Week 5, second half

6.1Three kinds of average for a list of numbers

NameHow
MeanAdd all the numbers, divide by how many there are
MedianSort them, take the middle one (for an even count: halfway between the two middle ones)
ModeThe number that appears most often
Example from the slides: quiz grades

10 students have grades: 9, 5, 10, 8, 4, 7, 5, 5, 8, 7. Find the mean, the median and the mode.

Show solution
  1. Sort first: 4, 5, 5, 5, 7, 7, 8, 8, 9, 10
  2. Mean: the sum is 68.
  3. Median: 10 numbers, so the middle two are the 5th and 6th: 7 and 7. Median = 7
  4. Mode: 5 appears three times, more than any other. Mode = 5
AnswerMean 6.8, median 7, mode 5

For a random variable the same three ideas use probabilities:

  • Mode : the value with the biggest PMF. for all x.
  • Median : the value that splits the probability in two equal sides. .
  • Mean: called the expected value. See next.

6.2Expected value E[X]

Definition

Take each value, multiply by its probability, and add. and ("mu") are two names for the same number.

In simple words

It is the long-run average. Repeat the experiment thousands of times and average the results: you get close to . It does not have to be a value X can really take. The average of a die is 3.5, but you never roll 3.5.

Example from the slides: E[R]

, . What is ?

Show solution
Example from the slides: cost of a call

A call is voice with or data with . Voice costs 25 cents, data costs 40 cents. C = cost of one call. Find (1) the PMF , (2) .

Show solution
  1. C is 25 when the call is voice, and 40 when it is data:
  2. cents
Answer cents

6.3Variance and standard deviation

Why we need them

Class A: two students both got 5. Class B: one got 0, one got 10. Both classes have average 5, but B is far more spread out. Variance is the number that measures this spread.

Definitions

Variance = the average of the squared distances from the centre .

Standard deviation ("sigma") = square root of the variance. It is the typical distance from the centre, in the same units as X. Also .

The shortcut you will use in the exam

where : square each value first, then multiply by its probability, then add.

The 4-step recipe (same every time)
  1. : value × probability, add.
  2. : value² × probability, add.
  3. .
  4. .
Traps
  • and are different. In the first you square inside (before averaging). In the second you square the final average.
  • A negative value squared is positive: .
  • Variance can never be negative. If you get a negative number, check your work.
  • In the long formula you multiply by the probability , not by .
Example from the slides: Var[R]

, , and . What is the variance of R?

Show solution
  1. Check with the long formula: . Same.
Answer, so
Example from the slides: voltage V

What is the variance of V?

Show solution
  1. The values are −3, −2, −1, 0, 1, 2, 3. Seven values, each with probability .
  2. . The values balance around 0.
  3. Check with the uniform formula, , : . Same.
Answer
Example from the slides: two calls

Find (1) , (2) the second moment , (3) , (4) .

Show solution
Answer1.4,   2.4,   0.44,   0.663

6.4Moments (just names)

NameFormulaWhat it is
1st momentThe average
2nd momentSquare, then average
n-th momentSame idea with power n
2nd central momentThe variance

If the exam says "find the second moment", it just means .

6.5Variance of aX + b

Theorem

Adding a number changes nothing. Multiplying by multiplies the variance by .

Why

If every student steps 3 metres forward, the gaps between them stay the same: adding does not change the spread. If you zoom a photo 2 times, every gap becomes 2 times bigger, and variance (a squared distance) becomes times bigger.

Special cases from the slides: (a constant has no spread) and .

Example: if , then , , .

6.6Ready-made E[X] and Var[X] for the six families

If the question names the family, do not build a table. Use these directly.

Family
Bernoulli (p)
Binomial (n, p)
Geometric (p)
Pascal (k, p)
Poisson (α)
Uniform (k, l)
How to remember with less effort
  • Binomial = n Bernoullis. So multiply Bernoulli by n: and .
  • Pascal = k geometrics in a row. So multiply geometric by k: and .
  • Poisson: mean and variance are the same number .
  • Uniform mean is the midpoint: (smallest + largest) ÷ 2.
Using the table backwards

Sometimes the exam gives you and asks for the PMF. Find the parameter from the table, then write the family formula. Example: geometric with means , so .

7

Conditional PMF

Week 6

7.1The idea: a PMF after a hint

In simple words

This is lesson 2 (conditional probability) meeting lesson 4 (PMF). Someone gives a hint about X, for example "X is 5 or more". The values that do not fit the hint become impossible. The values that fit share all the probability between them.

Definition

Read: "the PMF of X given B". B is the hint (the "conditioning event").

The rule you actually use

Keep the values inside B and divide each by . Everything outside B becomes 0.

The 3-step recipe
  1. List the values of X that fit the hint. That is B.
  2. Find : add the PMF of those values.
  3. Divide the PMF of each kept value by . Check: the new numbers add up to 1.
Warm-up: a die

Roll a fair die. Hint: "the number is even". Find the conditional PMF.

Show solution
  1. .
  2. .
  3. Each kept value: . The values 1, 3, 5 get 0.
Example from the slides: fax machines

The length X of a fax (in pages) has PMF

The company has two machines: one for faxes shorter than five pages, one for faxes with five or more pages. What is the PMF of the fax length in the second machine?

Show solution
  1. The second machine gets the long faxes. The hint is .
  2. .
  3. Each kept value: .

Check: .

Example from the slides: waiting for a bus

X is the time in whole minutes you wait for a bus:

The bus has not arrived by the eighth minute. What is the conditional PMF of your waiting time X?

Show solution
  1. "Not arrived by minute 8" means the wait is more than 8: . That is 12 values.
  2. .
  3. Each kept value: .
A conditional PMF is still a PMF (theorem from the slides)
  1. for any x in B.
  2. .
  3. For any event C inside B: .

7.2The other direction: mixing several PMFs

In simple words

Sometimes the question gives you one PMF for each situation (rainy day or sunny day, image page or text page). You want the one overall PMF. This is the law of total probability from lesson 2, written with PMFs.

Rule

For each situation : (PMF in that situation) × (probability of that situation). Then add.

Example from the slides: the 70-year-old

X = number of additional years a 70-year-old person lives. With high blood pressure (event H), X is geometric (p = 0.1). With regular blood pressure (event R), X is geometric (p = 0.05). Find and . If 40% of all 70-year-olds have high blood pressure, what is the PMF of X?

Show solution
  1. Geometric formula: for Put in each p:
  2. , so .
  3. Mix them:
    for , and 0 otherwise.
    (because and )

7.3Conditional expected value and variance

Nothing new here. Do the same recipe as lesson 6, but with the conditional PMF in place of the PMF.

Rules

And to get the overall average from the averages in each situation:

Example from the slides: long faxes

For the fax PMF above, find the conditional expected value, the conditional variance and the conditional standard deviation for the long faxes.

Show solution

From before: for .

  1. pages
  2. pages
Answer6.5,   1.25,   1.12
Big example from the slides: web pages

N = number of packets needed to send a web page. If the page has images (event I), N is uniform between 1 and 50. If the page is just text (event T), N is uniform between 1 and 5. A page has images with probability 1/4. Find:

(1)   (2)   (3)   (4)   (5)   (6)

Show solution
  1. Uniform (1, 50) has 50 values:
  2. Uniform (1, 5) has 5 values:
  3. Mix them with and .
    For to 5, both situations are possible:
    For to 50, only images are possible:
    Check: .
  4. The hint is . .
    Divide: and .



Answer(5) about 3.16   (6) about 2.76
Traps
  • Do not forget to divide by . Without it the new PMF does not add to 1.
  • Read the hint carefully: "", "", "" decide which values are kept.
  • For , use the conditional PMF in both and .
Now solve these sample questions: Q15 · part (d)Q18 · binomial with a condition
8

All 19 sample questions, solved

Week 7 · same order as the professor's slides

How to practise

  • Cover the solution. Try alone first. Then open it and compare step by step.
  • Tap Mark done when everyone understands the question. 0 of 19 done
  • Each question has a tag that tells you which lesson it comes from.
Q1Sets · Lesson 1

An integrated circuit factory has three machines X, Y and Z. Test one circuit produced by each machine. Either a circuit is acceptable (a) or it fails (f). An observation is a sequence of three test results for the circuits from X, Y and Z, in that order. For example, aaf means the circuits from X and Y pass and the circuit from Z fails.

(a) What are the elements of the sample space?
(b) What are the elements of the sets = {circuit from Z fails} and = {circuit from X is acceptable}?
(c) Are and mutually exclusive?
(d) Are and collectively exhaustive?
(e) What are the elements of the sets C = {more than one circuit acceptable} and D = {at least two circuits fail}?
(f) Are C and D mutually exclusive?
(g) Are C and D collectively exhaustive?

Key idea: the 1st letter is machine X, the 2nd is Y, the 3rd is Z. Mutually exclusive = share nothing. Collectively exhaustive = together they cover all of S.

Show solution
  1. (a) Three positions, 2 choices each: outcomes.
  2. (b) : the third letter is f. : the first letter is a.
  3. (c) Do they share anything? . This is not empty. No, not mutually exclusive.
  4. (d) Do they cover all of S? . The outcomes faa and ffa are missing. No, not collectively exhaustive.
  5. (e) "More than one acceptable" = 2 or 3 a's. "At least two fail" = 2 or 3 f's.
  6. (f) . They share nothing. Yes, mutually exclusive.
  7. (g) has all 8 outcomes, so it equals S. Yes, collectively exhaustive.

Why (f) and (g) work: with 3 circuits, either at least 2 are acceptable or at least 2 fail. Never both, and always one of them.

Q2Equally likely · Lesson 1

Shuffle a deck of cards and turn over the first card. What is the probability that the first card is a heart?

Key idea: all 52 cards are equally likely. Count and divide.

Show solution

A deck has 52 cards in 4 suits (hearts, diamonds, clubs, spades). Each suit has 13 cards.

Answer
Q3Table trick · Lesson 1

There are two types of cellular phones: handheld phones (H) and mobile phones (M). Phone calls can be classified by the speed of the user as fast (F) or slow (W). Monitor a call and observe the type of phone and the speed of the user. The probability model has: , , .

What is the sample space of the experiment? Calculate: (a)   (b)   (c)

Key idea: two labels (phone type and speed), so draw a 2 × 2 table.

Show solution

Sample space. Each call has a type and a speed: .

Table. The bold numbers are given. Fill the others by subtracting.

F (fast)W (slow)Total
H0.20.40.6
M0.30.10.4
Total0.50.51
  1. (a) A call is fast or slow, never both:
  2. (b) Column F must add to 0.5:
  3. (c) Column W must add to 0.5: .
    Row H:
Answer(a) 0.5   (b) 0.3   (c) 0.6
Q4Disjoint and independent · Lessons 1, 2

In an experiment, A and B are events with probabilities and . Furthermore, A and B are disjoint.

Find , , and . Are A and B independent?

Key idea: "disjoint" means they share nothing, so . Draw two circles that do not touch.

Show solution
  1. . Disjoint means no overlap:
  2. . For disjoint events . So , which gives
  3. means "in A and not in B". A is completely outside B, so all of A is "not in B".
  4. means "in A, or not in B". A is already inside "not B", so adding A changes nothing: .
  5. Independent? Test: is ?
    Left side: 0. Right side: . Not equal. Not independent.
Answer. A and B are not independent.

Remember: disjoint events (with probability above 0) are never independent.

Q5Counting · Lesson 3

Consider a language containing four letters: A, B, C, D. How many three-letter words can you form in this language? How many four-letter words can you form if each letter appears only once in each word?

Key idea: ask "can letters repeat?" In the first part yes. In the second part no.

Show solution
  1. Three-letter words. Nothing says letters cannot repeat (AAB is a word). 3 positions, 4 choices each. This is with , :
  2. Four-letter words, each letter once. No repeats, order matters, and we use all 4 letters. First position: 4 choices, then 3, then 2, then 1:
Answer64 three-letter words and 24 four-letter words
Q6Counting · Lesson 3

Consider a binary code with 5 bits (0 or 1) in each code word. An example of a code word is 01010. How many different code words are there? How many code words have exactly three 0's?

Key idea: "how many in total" is . "Exactly three 0's" means choosing positions, so use "n choose k".

Show solution
  1. All code words. 5 positions, 2 choices each:
  2. Exactly three 0's. Choose which 3 of the 5 positions hold the zeros. The other two are 1's automatically.
Answer32 code words. 10 of them have exactly three 0's.
Q7Tree diagram · Lesson 2

A machine produces photo detectors in pairs. Tests show that the first photo detector is acceptable with probability 3/5. When the first photo detector is acceptable, the second photo detector is acceptable with probability 4/5. If the first photo detector is defective, the second photo detector is acceptable with probability 2/5. Use a tree diagram to find the following.

(a) What is the probability that exactly one photo detector of a pair is acceptable?
(b) What is the probability that both photo detectors in a pair are defective?

Key idea: branches from one point add to 1. Multiply along a path. Add the paths you want.

Show solution

Build the tree. Fill in the missing branches with "1 minus":

  • First detector: acceptable , so defective .
  • After an acceptable first: second acceptable , so defective .
  • After a defective first: second acceptable , so defective .
3/5A₁4/5A₂A₁A₂ = 12/251/5D₂A₁D₂ = 3/252/5D₁2/5A₂D₁A₂ = 4/253/5D₂D₁D₂ = 6/25
A = acceptable, D = defective. 1 means first detector, 2 means second.
  1. (a) Exactly one acceptable. Two paths (green in the tree): "first good, second bad" and "first bad, second good".
  2. (b) Both defective. One path:
Answer(a)   (b)

Check: the four paths add to .

Q8Conditional probability · Lesson 2

You have a six-sided die that you roll once. Let denote the event that the roll is i. Let denote the event that the roll is greater than j. Let E denote the event that the roll of the die is even-numbered.

(a) What is , the conditional probability that 3 is rolled given that the roll is greater than 1?
(b) What is the conditional probability that 6 is rolled given that the roll is greater than 3?
(c) What is , the conditional probability that the roll is greater than 3 given that the roll is even?
(d) Given that the roll is greater than 3, what is the conditional probability that the roll is even?

Key idea: the hint (after the bar) becomes the new world. Count inside it.

Show solution

First translate the names into sets:

  • ,
  • (greater than 1), (greater than 3)
  1. (a) New world has 5 outcomes. The roll 3 is one of them.
  2. (b) New world has 3 outcomes. The roll 6 is one of them.
  3. (c) New world . Greater than 3 inside it: , two outcomes.
  4. (d) Now the hint is . Even inside it: , two outcomes.
Answer(a)   (b)   (c)   (d)

(c) and (d) are equal here only because E and both have 3 outcomes. In general and are different.

Q9Total probability and Bayes · Lesson 2

A company has three machines , and for making 1 kΩ resistors. It has been observed that 80% of resistors produced by are within 50 Ω of the nominal value. Machine produces 90% of resistors within 50 Ω of the nominal value. The percentage for machine is 60%. Each hour, machine produces 3000 resistors, produces 4000 resistors, and produces 3000 resistors. All of the resistors are mixed together at random in one bin and packed for shipment.

What is the probability that the company ships a resistor that is within 50 Ω of the nominal value?
What is the probability that an acceptable resistor comes from machine ?

Key idea: first question = add all paths that end in "acceptable" (total probability). Second question = one path divided by all of them (Bayes).

Show solution

Let A = "the resistor is within 50 Ω" (acceptable).

  1. Probability of each machine. Total per hour: .
    ,   ,  
  2. Given the machine: , , .
0.3B₁0.8AB₁A = 0.240.2NB₁N = 0.060.4B₂0.9AB₂A = 0.360.1NB₂N = 0.040.3B₃0.6AB₃A = 0.180.4NB₃N = 0.12
Multiply along each path. The numbers on the right add up to 1.
  1. Law of total probability (add the green paths):
  2. Bayes (the path over all paths that end in A):
Answer and
Q10PMF rules · Lesson 4

The random variable V has PMF

(a) Find the value of the constant c.
(b) Find .
(c) Find the probability that V is an even number.
(d) Find .

Key idea: all probabilities add to 1 (this gives c). Then for each part, pick the values that fit and add their probabilities.

Show solution
  1. (a) Put each value into :
    v1234
    c4c9c16c
    They must add to 1: , so .
    v1234
    1/304/309/3016/30
  2. (b) The strange set means "all perfect squares": Which values of V are perfect squares? Only 1 and 4.
  3. (c) Even values of V: 2 and 4.
  4. (d) Values bigger than 2: 3 and 4.
Answer(a)   (b)   (c)   (d)
Q11Binomial · Lesson 4

When a conventional paging system transmits a message, the probability that the message will be received by the pager it is sent to is p. To be confident that a message is received at least once, a system transmits the message n times.

(a) Assuming all transmissions are independent, what is the PMF of K, the number of times the pager receives the same message?
(b) Assume p = 0.8. What is the minimum value of n that produces a probability of 0.95 of receiving the message at least once?

Key idea: a fixed number n of tries, and we count successes: binomial. "At least once" = 1 − P[zero times].

Show solution
  1. (a) n independent tries. Each is a success (received) with probability p. K counts the successes. So K is binomial (n, p):
    for , and 0 otherwise.
  2. (b) "At least once" means . Its opposite is (never received):
  3. We need this to be at least 0.95. Try values of n:
    n≥ 0.95?
    10.20.80No
    20.040.96Yes
Answer(a) binomial (n, p), formula above   (b) minimum

Where does come from? Put in the formula: and , so only is left. It means "fail n times in a row".

Q12CDF · Lessons 5, 6

The random variable X has CDF

(a) Draw a graph of the CDF.
(b) Write , the PMF of X. Be sure to write the value of for all x from −∞ to ∞.
(c) Find and .
(d) Find the expected value of the random variable X.

Key idea: the CDF jumps at −1, 0 and 1. Those are the values of X. The size of each jump is the PMF.

Show solution
  1. (a) A staircase. Height 0 until −1, then 0.2 until 0, then 0.7 until 1, then 1 forever. Filled dot on the left of each step, empty dot on the right.
    00.20.71-2-1012xFX(x)
    Answer for (a): a staircase with jumps at −1, 0 and 1.
  2. (b) Jump sizes:
    • at :
    • at :
    • at :
    "For all x from −∞ to ∞" just means: do not forget the line 0 otherwise. Check: .
  3. (c) : values smaller than 1 are −1 and 0. . (Same as the height just before 1.)
    . (The jump at 1.)
  4. (d) Value × probability, then add:
Answer(c) ,   (d)
Q13"At least once" · Lesson 4

You manage a ticket agency that sells concert tickets. You assume that people will call three times in an attempt to buy tickets and then give up. Each time a caller tries, the probability that they get through to your agency is p (independent each time). You want to be able to serve at least 95% of the people who want tickets. What is the minimum value of p necessary to meet your goal?

Key idea: a person is served if they get through at least once in 3 tries. Use 1 − P[fail all three].

Show solution
  1. One try fails with probability . The tries are independent, so failing all 3 has probability .
  2. Served = not failing all three:
  3. We need at least 0.95:
  4. Take the cube root of both sides (calculator: ):
AnswerMinimum

Check: with , , so 95% are served.

Q14Families backwards · Lessons 4, 6

Suppose that is the expected value of geometric random variable X. What is the PMF of X? (Write the equation)

Suppose that is the expected value of Poisson random variable X. What is the PMF of X? (Write the equation)

Key idea: use the formula of the family to find its parameter. Then write the family's PMF with that number.

Show solution
  1. Geometric. , so and . Put it in :
  2. Poisson. . Put it in :

To get full marks, always write the range of x (geometric starts at 1, Poisson starts at 0) and the "0 otherwise" line.

Q15CDF, variance, conditional PMF · Lessons 5, 6, 7

The random variable X has CDF

(a) Draw a graph of the CDF.
(b) Write , the PMF of X.
(c) Find the standard deviation of the random variable X.
(d) Find , where the condition . What are and ?

Key idea: this one question uses three lessons. Jumps give the PMF. Then the 4-step recipe. Then the 3-step conditional recipe.

Show solution
  1. (a) Staircase with jumps at −3, 5 and 7.
    00.40.81-3057xFX(x)
    Answer for (a): jumps at −3, 5 and 7.
  2. (b) Jump sizes: at −3: . At 5: . At 7: .
  3. (c) The 4-step recipe.
    x−357Sum
    0.40.40.21
    −1.221.42.2
    9(0.4) = 3.625(0.4) = 1049(0.2) = 9.823.4
    and .

  4. (d) The 3-step conditional recipe.
    Values that fit : 5 and 7. (−3 is thrown away.)

    Divide: and
  5. Now the recipe again with the new PMF:
Answer(c)   (d) ,
Q16Discrete uniform · Lesson 4

In a package of M&Ms, Y, the number of yellow M&Ms, is uniformly distributed between 5 and 15.

(a) What is the PMF of Y?
(b) What is ?
(c) What is ?
(d) What is ?

Key idea: uniform = every value has the same probability. So each part is "count the values that fit, multiply by that probability".

Show solution
  1. (a) Discrete uniform with , . Number of values: . Each has probability .
  2. (b) : the values 5, 6, 7, 8, 9. That is 5 values.
  3. (c) : the values 13, 14, 15. That is 3 values.
  4. (d) : the values 8, 9, 10, 11, 12. That is 5 values.
Answer(b)   (c)   (d)

Trap: from 5 to 15 there are 11 values, not 10. Count on your fingers if you need to. Also watch < against ≤: "less than 10" does not include 10.

Q17CDF from a graph · Lesson 5

Discrete random variable Y has the CDF as shown:

00.250.51012345yFY(y)
The graph from the slide: jumps at y = 1, 2 and 3.

Use the CDF to find the following probabilities:
(a)
(b)
(c)
(d)
(e)
(f)
(g)

Key idea: do part (g) first. Read the jumps to get the PMF. Then every other part is easy.

Show solution
  1. Read the jumps (this is part g).
    • at : from 0 up to 0.25. Jump = 0.25
    • at : from 0.25 up to 0.5. Jump = 0.25
    • at : from 0.5 up to 1. Jump = 0.5
  2. (a) : no value of Y is below 1. Answer: 0. (Height just before 1.)
  3. (b) : only fits. Answer: 0.25. (Height at 1.)
  4. (c) : only fits. Answer: 0.5. (.)
  5. (d) : and fit. 0.75. (1 minus the height just before 2.)
  6. (e) = jump at 1 = 0.25
  7. (f) = jump at 3 = 0.5
Answer(a) 0   (b) 0.25   (c) 0.5   (d) 0.75   (e) 0.25   (f) 0.5
Q18Binomial with a condition · Lessons 4, 6, 7

The binomial random variable X has PMF

1. Find the standard deviation of X.
2. Find , the probability that X is within one standard deviation of the expected value.
3. Find , where the condition .
4. What are and ?

Key idea: recognise binomial with and . Make a small table of the PMF first. It answers everything.

Show solution

Why , ? The binomial formula is . With : . So .

x012345
15101051
1/325/3210/3210/325/321/32
  1. Part 1. Use the ready-made binomial formulas:
  2. Part 2. The interval is from to . Which whole numbers are inside? Only 2 and 3.
  3. Part 3. The hint is . The values that fit: 3, 4, 5.

    Divide each by (same as multiplying by 2):
  4. Part 4. The recipe with the new PMF:
Answer1)   2)   3) see PMF above   4) ,
Q19Geometric, binomial, Pascal · Lesson 4

Each time a modem transmits one bit, the receiving modem analyzes the signal that arrives and decides whether the transmitted bit is 0 or 1. It makes an error with probability p, independent of whether any other bit is received correctly.

(1) If the transmission continues until the receiving modem makes its first error, what is the PMF of X, the number of bits transmitted?
(2) If p = 0.1, what is the probability that X = 10?
(3) If the modem transmits 100 bits, what is the PMF of Y, the number of errors?
(4) If p = 0.01 and the modem transmits 100 bits, what is the probability of Y = 2 errors at the receiver? What is the probability that Y ≤ 2?
(5) If the transmission continues until the receiving modem makes three errors, what is the PMF of Z, the number of bits transmitted?
(6) If p = 0.25, what is the probability of Z = 12 bits transmitted?

Key idea: here the "success" is an error. Read the words: "until first error" is geometric, "100 bits, number of errors" is binomial, "until three errors" is Pascal.

Show solution
  1. (1) "Until the first error", counting bits: geometric (p).
  2. (2) , : nine correct bits, then one error.
  3. (3) A fixed number of bits (100), counting errors: binomial (100, p).
    for , and 0 otherwise.
  4. (4) .
    "" means 0, 1 or 2 errors. Find each one and add:
  5. (5) "Until three errors", counting bits: Pascal (k = 3, p).
    for , and 0 otherwise.
  6. (6) , :
Answer(2) 0.0387   (4) 0.185 and 0.921   (6) 0.0645

Calculator help: and . Use the button for powers like .

9

One-page formula sheet and traps

Read this together at the end, and again tonight

Events

(total probability)

(Bayes)

Counting

Repeat?Order matters?Formula
YesYes
NoYes
NoNo
Groups of identical items

Random variables

The six families in one table

FamilyStoryPMFx values
Bernoulli (p)One try0, 1
Binomial (n, p)Successes in n tries0, ..., n
Geometric (p)Tries until 1st success1, 2, ...
Pascal (k, p)Tries until k-th successk, k+1, ...
Uniform (k, l)All equally likelyk, ..., l
Poisson (α)Arrivals in time T, 0, 1, 2, ...

Swipe the table sideways to see all columns.

What does the question want? Pick the tool

The question saysDo this
"Elements of the sample space / of the set"List the outcomes one by one
"Mutually exclusive?"Check if they share any outcome
"Collectively exhaustive?"Check if together they give all of S
Two labels for each outcome (H/M and F/W)Draw the 2 × 2 table
"Given that", "if we know that"Conditional: divide by the probability of the hint
Things happen in steps, "use a tree diagram"Tree: multiply along, add paths
"Comes from machine ...", reversed conditionBayes: one path ÷ all paths
"Independent?"Test
"How many words / code words"Counting table: repeat? order?
"Find the constant c"Sum of the PMF = 1
"At least one"1 − P[none]
"Minimum n" or "minimum p"Write 1 − P[none] ≥ target, then solve or try values
A CDF is givenJumps give the PMF. Then answer from the PMF
"Standard deviation", , subtract, square root
"Where the condition B = {...}"Keep values in B, divide by
"E[X] = ... , what is the PMF?"Find the parameter from the E formula, write the family PMF

The 14 traps that cost marks

  1. Disjoint is not independent. Disjoint: . Independent: .
  2. is not . Divide by the probability of the hint.
  3. is "and" (overlap). is "or" (subtract the overlap once).
  4. In a tree, the branches from one point must add to 1. Fill the missing branch with "1 minus".
  5. "Exactly k zeros" is , not .
  6. Always finish a PMF with "0 otherwise" and write which x values it is for.
  7. Geometric and Pascal start at and . Binomial and Poisson start at 0.
  8. Poisson: new time interval means new .
  9. From k to l there are values. From 5 to 15 that is 11.
  10. and give different answers for discrete variables. .
  11. is not . Square the values first, then average.
  12. Negative numbers squared are positive. Variance is never negative.
  13. Standard deviation is the square root of the variance. Do not stop at the variance.
  14. Conditional PMF: divide by , then check the new numbers add to 1.

In the exam room

  • Read the question twice. Underline the words that pick the tool: "given", "until", "at least", "exactly", "uniformly", "per second".
  • Write the formula first, then put in the numbers. You get marks for the method even if the arithmetic slips.
  • Check with a rule: probabilities are between 0 and 1, a PMF adds to 1, a variance is not negative.
  • Stuck on a CDF or a condition? Write the PMF as a small table. Almost every question becomes "add the right cells".
  • Do the questions you know first. Come back to the hard ones.
Last word

If you can solve the 19 sample questions alone, with the solutions closed, you are ready. Good luck to all of you.

↑