CSE 312 – Section 5


Spring 2026

Review of Main Concepts

Announcements & Plan for Section

Announcements

Plan for Section

1  Content Review Questions

a)
True or false: \(\Var (X + Y) = \Var (X) + \Var (Y)\) for all random variables \(X\) and \(Y\)
b)
What is \(\Var (3X + 4)\)?
  • \(3\Var (X) + 4\)
  • \(3\Var (X)\)
  • \(9\Var (X)\)
  • \(\Var (X)\)
c)
True or false: \(\Exp [X + Y] = \Exp [X] + \Exp [Y]\) for all random variables \(X\) and \(Y\).
d)
What is \(\Exp [3X + 4]\)?
  • \(3\Exp [X] + 4\)
  • \(3\Exp [X]\)
  • \(9\Exp [X]\)
  • \(\Exp [X]\)

2  Pond Fishing

Suppose I am fishing in a pond with \(B\) blue fish, \(R\) red fish, and \(G\) green fish, where \(B + R + G = N\). Each fish is equally likely to be caught. For each of the following scenarios, identify the most appropriate distribution (with parameter(s)):

a)
How many of the next 10 fish I catch are blue, if I catch and release them
  • \[\textsf {Bin}\left ( 10,\frac {B}{N} \right )\]
  • \[\textsf {Ber}\left ( \frac {B}{N} \right )\]
  • \[\textsf {Bin}\left ( 1,\frac {B}{N} \right )\]
b)
How many fish I had to catch until my first green fish, if I catch and release them
  • \[\textsf {Ber}\left ( \frac {G}{N} \right )\]
  • \[\textsf {Bin}\left ( 1,\frac {G}{N} \right )\]
  • \[\textsf {Geo}\left ( \frac {G}{N} \right )\]
c)
How many red fish I catch in the next five minutes, if I catch on average \(r\) red fish per minute
  • \[\textsf {Poi}(5R)\]
  • \[\textsf {Bin}\left ( 5,\frac {R}{N} \right )\]
  • \[\textsf {Poi}(5r)\]
d)
Whether or not my next fish is blue
  • \[\textsf {Poi}(5B)\]
  • \[\textsf {Bin}\left ( 1,\frac {R}{N} \right )\]
  • \[\textsf {Ber}\left ( \frac {B}{N} \right )\]

3  Best Coach Ever!!

You are a hardworking boxer. Your coach tells you that the probability of your winning a boxing match is \(0.2\) independently of every other match.

a)
How many matches do you expect to fight until you win 10 times and what kind of random variable is this?
b)
You only get to play 12 matches every year. To win a spot in the Annual Boxing Championship, a boxer needs to win at least 10 matches in a year. What is the probability that you will go to the Championship this year and what kind of random variable is the number of matches you win out of the 12?
c)
Let \(p\) be your answer to part (b). How many times can you expect to go to the Championship in your 20 year career?

4  Variance of a Product

Let \(X, Y, Z\) be independent random variables with means \(\mu _{X}, \mu _{Y}, \mu _{Z}\) and variances \(\sigma _{X}^{2}, \sigma _{Y}^{2}, \sigma _{Z}^{2}\), respectively. Find \(\Var (XY - Z)\).

5  True or False?

Identify the following statements as true or false (true means always true). Justify your answer.

a)
For any random variable \(X\), we have \(\Exp [X^2]\ge \Exp [X]^2\).
b)
Let \(X,Y\) be random variables. Then, \(X\) and \(Y\) are independent if and only if \(\Exp [XY]=\Exp [X]\Exp [Y]\).
c)
Let \(X\sim \textsf {Binomial}(n,p)\) and \(Y\sim \textsf {Binomial}(m,p)\) be independent. Then, \(X+Y\sim \textsf {Binomial}(n+m,p)\).
d)
Let \(X_1,...,X_{n+1}\) be independent \(\textsf {Bernoulli}(p)\) random variables. Then, \(\Exp [\sum _{i=1}^n{X_iX_{i+1}}]=np^2\).
e)
Let \(X_1,...,X_{n+1}\) be independent \(\textsf {Bernoulli}(p)\) random variables. Then, \(Y=\sum _{i=1}^n{X_iX_{i+1}}\sim \textsf {Binomial}(n,p^2)\).
f)
If \(X\sim \textsf {Bernoulli}(p)\), then \(nX\sim \textsf {Binomial}(n,p)\).
g)
If \(X\sim \textsf {Binomial}(n,p)\), then \(\frac {X}{n}\sim \textsf {Bernoulli}(p)\).
h)
For any two independent random variables \(X,Y\), we have \(\Var (X-Y)=\Var (X)-\Var (Y)\).

6  Fun with Poissons

Let \(X \sim \textsf {Poisson}(\lambda _1)\) and \(Y\sim \textsf {Poisson}(\lambda _2)\), and \(X\) and \(Y\) are independent.

a)
Show that \(X+Y \sim \textsf {Poisson}(\lambda _1 + \lambda _2)\). (We did this problem in class.)
b)
Show that \(\Pr (X = k \mid X+Y = n) = \Pr (W = k)\) where \(W \sim \textsf {Bin}(n, \frac {\lambda _1}{\lambda _1 + \lambda _2})\)

7  Memorylessness

We say that a random variable \(X\) is memoryless if \(\Pr (X > k + i \mid X > k) = \Pr (X > i)\) for all non-negative integers \(k\) and \( i\). The idea is that \(X\) does not remember its history. Let \(X\sim \textsf {Geo}(p)\). Show that \(X\) is memoryless.

8  Poisson Practice

Seattle averages 3 days with snowfall per year. Suppose the number of days with snowfall follows a Poisson distribution.

a)
What is the probability of getting exactly 5 days of snow in a year?
b)
According to the Poisson model, what is the probability of getting 367 days of snow?

9  How many 6’s?

Suppose that a fair 8-sided die is rolled repeatedly, with each roll independent of the others. Let \(Z\) be the number of rolls until (and including) the first time either a 2 or a 3 is rolled, and let \(W\) be the number of 6’s rolled until the first 2 or 3 is rolled. So, for example if the sequence of die values until the first 2 or 3 is 6,5,4,8,7,6,7,1,2, then \(Z\) is 9 and \(W\) is 2.

Define \[p(j) := \begin {cases} \Pr (W = j \mid Z = i)& j \in \{0, 1, \ldots , i-1\}\\ 0 & \text {otherwise} \end {cases}\] Show that \(p(j)\) is the probability mass function of a binomially distributed random variable and determine its parameters \(n\) and \(p\). Prove that your answer is correct mathematically.

10  Practice with LOTUS

Suppose that \(X\) is a Binomial random variable with parameters \(n\) and \(p\). Use LOTUS to show that \[\Exp \left [\frac {1}{X+1}\right ] = \frac {1- (1-p)^{n+1}}{(n+1)p}.\] Hint: Use the result of Problem 2 from Section 2, namely that \(\frac {1}{k+1} \binom {n}{k} = \frac {1}{n+1}\binom {n+1}{k+1} \) and then manipulate the expression until you can use the Binomial Theorem.

11  Parallel Server Failures

A computing system relies on \(m\) independent nodes. The lifetime (in days) of each node is modeled by a Geometric distribution with parameter \(p\) (meaning each node has a probability \(p\) of failing on any given day). The system completely shuts down only when all \(m\) nodes have failed.

a)
Let \(D\) be the day the first node fails. Find the probability mass function of \(D\). Start by computing the probability that \(D > d\).
b)
Find the exact probability that the entire system shuts down on day \(k\).

12  Grading time

Suppose that homeworks are graded by TA1 with probability 0.3, by TA2 with probability 0.5 and by TA3 with probability 0.2.

a)
TA1 takes an amount of time (in hours) to grade that is Poisson with parameter \(\lambda \).
b)
TA2 takes an amount of time (in hours) to grade that is Binomial with parameters \(n\) and \(p\).
c)
TA3 takes an amount of time (in hours) to grade that is Geometric with parameter \(p\).

What is the probability that TA1 did the grading given that the number of hours it took was \(h\)?