Post · 11 min read· pp. 205–212

3.3 End of Chapter Problems


Problem

Let XX be a discrete random variable with the following PMF: \begin{equation} \nonumber P_X(x) = \left{ \begin{array}{l l} \frac{1}{2} & \quad \text{for } x=0\ \frac{1}{3} & \quad \text{for } x=1\ \frac{1}{6} & \quad \text{for } x=2\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}

  1. Find RXR_X, the range of the random variable XX.
  2. Find P(X≥1.5)P(X\geq 1.5).
  3. Find P(0<X<2)P(0 < X < 2).
  4. Find P(X=0∣X<2)P(X=0 | X < 2)

Problem

Let XX be the number of the cars being repaired at a repair shop. We have the following information:

  • At any time, there are at most $3$ cars being repaired.
  • The probability of having $2$ cars at the shop is the same as the probability of having one car.
  • The probability of having no car at the shop is the same as the probability of having $3$ cars.
  • The probability of having $1$ or $2$ cars is half of the probability of having $0$ or $3$ cars.

Find the PMF of XX.


Problem

I roll two dice and observe two numbers XX and YY. If Z=X−YZ=X-Y, find the range and PMF of ZZ.


Problem

Let XX and YY be two independent discrete random variables with the following PMFs: \begin{equation} \nonumber P_X(k) = \left{ \begin{array}{l l} \frac{1}{4} & \quad \text{for } k=1\ \frac{1}{8} & \quad \text{for } k=2\ \frac{1}{8} & \quad \text{for } k=3\ \frac{1}{2} & \quad \text{for } k=4\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} and \begin{equation} \nonumber P_Y(k) = \left{ \begin{array}{l l} \frac{1}{6} & \quad \text{for } k=1\ \frac{1}{6} & \quad \text{for } k=2\ \frac{1}{3} & \quad \text{for } k=3\ \frac{1}{3} & \quad \text{for } k=4\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}

  1. Find P(X≤2 and Y≤2)P(X\leq 2 \textrm{ and } Y\leq 2).
  2. Find P(X>2 or Y>2)P(X > 2 \textrm{ or } Y > 2).
  3. Find P(X>2∣Y>2)P(X >2 | Y > 2).
  4. Find P(X<Y)P(X < Y).

Problem

$50$ students live in a dormitory. The parking lot has the capacity for $30$ cars. If each student has a car with probability 12\frac{1}{2} (independently from other students), what is the probability that there won't be enough parking spaces for all the cars?


Problem (The Matching Problem)

NN guests arrive at a party. Each person is wearing a hat. We collect all the hats and then randomly redistribute the hats, giving each person one of the NN hats randomly. Let XNX_N be the number of people who receive their own hats. Find the PMF of XNX_N.

Hint: We previously found that (Problem 7 in Section 2.1.5)

P(XN=0)=12!−13!+14!−⋯(−1)N1N!P(X_N=0)=\frac{1}{2!}-\frac{1}{3!}+\frac{1}{4!}- \cdots (-1)^N\frac{1}{N!}
, \quad for \quad $N=1,2, \cdots $. Using this, find P(XN=k)P(X_N=k) for all k∈{0,1,⋯N}k \in \{0,1, \cdots N\}.


Problem

For each of the following random variables, find P(X>5)P(X > 5), P(2<X≤6)P(2 < X\leq6) and P(X>5∣X<8)P(X > 5|X < 8).

  1. X∼Geometric(15)X \sim Geometric(\frac{1}{5})
  2. X∼Binomial(10,13)X \sim Binomial (10, \frac{1}{3})
  3. X∼Pascal(3,12)X \sim Pascal(3,\frac{1}{2})
  4. X∼Hypergeometric(10,10,12)X \sim Hypergeometric(10,10,12)
  5. X∼Poisson(5)X \sim Poisson(5)

Problem

Suppose you take a pass-fail test repeatedly. Let SkS_k be the event that you are successful in your kthk^{th} try, and FkF_k be the event that you fail the test in your kthk^{th} try. On your first try, you have a $50$ percent chance of passing the test.

P(S1)=1−P(F1)=12.P(S_1)=1-P(F_1)=\frac{1}{2}.
Assume that as you take the test more often, your chance of failing the test goes down. In particular,
P(Fk)=12⋅P(Fk−1), for k=2,3,4,⋯P(F_k)=\frac{1}{2} \cdot P(F_{k-1}), \hspace{20pt} \textrm{ for } k=2,3,4,\cdots
However, the result of different exams are independent. Suppose you take the test repeatedly until you pass the test for the first time. Let XX be the total number of tests you take, so Range(X)={1,2,3,⋯ }Range(X)= \{ 1, 2, 3, \cdots\}.

  1. Find P(X=1),P(X=2),P(X=3)P(X=1), P(X=2), P(X=3).
  2. Find a general formula for P(X=k)P(X=k) for k=1,2,⋯k=1,2, \cdots.
  3. Find the probability that you take the test more than $2$ times.
  4. Given that you take the test more than once, find the probability that you take the test exactly twice.

Problem

In this problem, we would like to show that the geometric random variable is memoryless. Let X∼Geometric(p)X \sim Geometric(p). Show that

P(X>m+l∣X>m)=P(X>l), for m,l∈{1,2,3,⋯ }.P(X > m+l | X > m)=P(X > l), \textrm{ for } m,l \in \{1,2,3, \cdots \}.
We can interpret this in the following way: Remember that a geometric random variable can be obtained by tossing a coin repeatedly until observing the first heads. If we toss the coin several times, and do not observe a heads, from now on it is like we start all over again. In other words, the failed coin tosses do not impact the distribution of waiting time from this point forward. The reason for this is that the coin tosses are independent.


Problem

An urn consists of $20$ red balls and $30$ green balls. We choose $10$ balls at random from the urn. The sampling is done without replacement (repetition not allowed).

  1. What is the probability that there will be exactly $4$ red balls among the chosen balls?
  2. Given that there are at least $3$ red balls among the chosen balls, what is the probability that there are exactly $4$ red balls?

Problem

The number of emails that I get in a weekday (Monday through Friday) can be modeled by a Poisson distribution with an average of 16\frac{1}{6} emails per minute. The number of emails that I receive on weekends (Saturday and Sunday) can be modeled by a Poisson distribution with an average of 130\frac{1}{30} emails per minute.

  1. What is the probability that I get no emails in an interval of length $4$ hours on a Sunday?
  2. A random day is chosen (all days of the week are equally likely to be selected), and a random interval of length one hour is selected on the chosen day. It is observed that I did not receive any emails in that interval. What is the probability that the chosen day is a weekday?

Problem

Let XX be a discrete random variable with the following PMF: \begin{equation} \nonumber P_X(x) = \left{ \begin{array}{l l} 0.2 & \quad \text{for } x=-2\ 0.3 & \quad \text{for } x=-1\ 0.2 & \quad \text{for } x=0\ 0.2 & \quad \text{for } x=1\ 0.1 & \quad \text{for } x=2\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Find and plot the CDF of XX.


Problem

Let XX be a discrete random variable with the following CDF: \begin{equation} \nonumber F_X(x) = \left{ \begin{array}{l l} 0 & \quad \text{for } x < 0\ \frac{1}{6} & \quad \text{for } 0 \leq x < 1\ \frac{1}{2} & \quad \text{for } 1 \leq x < 2 \ \frac{3}{4} & \quad \text{for } 2 \leq x < 3 \ 1 & \quad \text{for } x \geq 3\ \end{array} \right. \end{equation} Find the range and PMF of XX.


Problem

Let XX be a discrete random variable with the following PMF \begin{equation} \nonumber P_X(k) = \left{ \begin{array}{l l} 0.5 & \quad \text{for } k=1\ 0.3 & \quad \text{for } k=2\ 0.2 & \quad \text{for } k=3\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}

  1. Find EXEX.
  2. Find Var(X)(X) and SD(X)SD(X).
  3. If Y=2XY=\frac{2}{X}, find EYEY.

Problem

Let X∼Geometric(13)X \sim Geometric(\frac{1}{3}), and let Y=∣X−5∣Y=|X-5|. Find the range and PMF of YY.


Problem

Let XX be a discrete random variable with the following PMF \begin{equation} \nonumber P_X(k) = \left{ \begin{array}{l l} \frac{1}{21} & \quad \text{for } k \in {-10,-9, \cdots, -1, 0, 1, \cdots, 9, 10 }\ & \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} The random variable Y=g(X)Y=g(X) is defined as \begin{equation} \nonumber Y=g(X)= \left{ \begin{array}{l l} 0 & \quad \text{if } X \leq 0\ X & \quad \text{if } 0 < X \leq 5\ 5 & \quad \text{otherwise} \end{array} \right. \end{equation}

\begin{equation} \nonumber P_X(k) = \left{ \begin{array}{l l} \frac{1}{21} \hspace{20pt} \text{for } k \in {-10,-9, \cdots, -1, 0, 1, \ \hspace{80pt} \cdots, 9, 10 }\ 0 \hspace{30pt} \text{otherwise} \end{array} \right. \end{equation} The random variable Y=g(X)Y=g(X) is defined as \begin{equation} \nonumber Y=g(X)= \left{ \begin{array}{l l} 0 & \quad \text{if } X \leq 0\ X & \quad \text{if } 0 < X \leq 5\ 5 & \quad \text{otherwise} \end{array} \right. \end{equation} Find the PMF of YY.


Problem

Let X∼Geometric(p)X \sim Geometric(p). Find Var(X)Var(X).


Problem

Let X∼Pascal(m,p)X \sim Pascal(m,p). Find Var(X)Var(X).


Problem

Suppose that Y=−2X+3Y=-2X+3. If we know EY=1EY=1 and EY2=9EY^2=9, find EXEX and Var(X)Var(X).


Problem

There are $1000$ households in a town. Specifically, there are $100$ households with one member, $200$ households with 2 members, $300$ households with $3$ members, $200$ households with 4 members, $100$ households with 5 members, and $100$ households with $6$ members. Thus, the total number of people living in the town is

N=100⋅1+200⋅2+300⋅3+200⋅4+100⋅5+100⋅6=3300.N=100 \cdot 1+200 \cdot 2+300 \cdot 3+200 \cdot 4+100 \cdot 5+100 \cdot 6=3300.

  1. We pick a household at random, and define the random variable XX as the number of people in the chosen household. Find the PMF and the expected value of XX.
  2. We pick a person in the town at random, and define the random variable YY as the number of people in the household where the chosen person lives. Find the PMF and the expected value of YY.

Problem (Coupon collector's problem [8])

Suppose that there are N different types of coupons. Each time you get a coupon, it is equally likely to be any of the N possible types. Let X be the number of coupons you will need to get before having observed each coupon at least once.

  1. Show that you can write X=X0+X1+⋯+XN−1X = X_0 + X_1 +\cdots +X_{N −1} , where Xi∼Geometric(N−iN)X_i \sim Geometric(\frac{N-i}{N}).
  2. Find EX.

Problem (St. Petersburg Paradox [9])

Here is a famous problem called the St. Petersburg Paradox. Wikipedia states the problem as follows: "A casino offers a game of chance for a single player in which a fair coin is tossed at each stage. The pot starts at $1$ dollar and is doubled every time a head appears. The first time a tail appears, the game ends and the player wins whatever is in the pot. Thus the player wins 1 dollar if a tail appears on the first toss, 2 dollars if a head appears on the first toss and a tail on the second, $4$ dollars if a head appears on the first two tosses and a tail on the third, 8 dollars if a head appears on the first three tosses and a tail on the fourth, and so on. In short, the player wins $2^{k-1}$ dollars if the coin is tossed kk times until the first tail appears. What would be a fair price to pay the casino for entering the game?"

  1. Let XX be the amount of money (in dollars) that the player wins. Find EXEX.
  2. What is the probability that the player wins more than $65$ dollars?
  3. Now suppose that the casino only has a finite amount of money. Specifically, suppose that the maximum amount of the money that the casion will pay you is $2^{30}$ dollars (around 1.07 billion dollars). That is, if you win more than $2^{30}$ dollars, the casino is going to pay you only $2^{30}$ dollars. Let YY be the money that the player wins in this case. Find EYEY.

Problem

Let XX be a random variable with mean EX=μEX=\mu. Define the function f(α)f(\alpha) as

f(α)=E[(X−α)2].f(\alpha)=E[(X-\alpha)^2].
Find the value of α\alpha that minimizes ff.


Problem

You are offered to play the following game. You roll a fair die once and observe the result which is shown by the random variable XX. At this point, you can stop the game and win XX dollars. You can also choose to roll the die for the second time to observe the value YY. In this case, you will win YY dollars. Let WW be the value that you win in this game. What strategy do you use to maximize EWEW? What is the maximum EWEW you can achieve using your strategy?


Problem

The median of a random variable XX is defined as any number mm that satisfies both of the following conditions:

P(X≥m)≥12 and P(X≤m)≥12P(X \geq m) \geq \frac{1}{2} \hspace{5pt} \textrm{ and } \hspace{5pt} P(X \leq m) \geq \frac{1}{2}
Note that the median of XX is not necessarily unique. Find the median of XX if

  1. The PMF of XX is given by \begin{equation} \nonumber P_X(k) = \left{ \begin{array}{l l} 0.4 & \quad \text{for } k=1\ 0.3 & \quad \text{for } k=2\ 0.3 & \quad \text{for } k=3\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
  2. XX is the result of a rolling of a fair die.
  3. X∼Geometric(p)X \sim Geometric(p), where $0 < p <1$.