Midterm 2 Study Guide
Midterm Exam 2 will take place on Thursday November 13 during your lab section. There will be 6 problems, and they will break down as follows:
- (an undisclosed check on your visual intuition)
- Discrete random variables
- Continuous random variables
- The moment-generating function
- Transformations
- Joint distributions
Below are practice problems for each of these areas, as well as guidance about what course materials to refer to if you want more review on a particular topic.
You are allowed two resources on the exam:
- a “dumb” calculator (no wi-fi). You will not need it, but if you want it as a security blanket, be my guest;
- both sides of one 8.5” x 11” sheet of notes, prepared by you and you alone. You can create it however you wish: handwritten, on a computer, etc.
Do not skimp on the cheat sheet! Students in past semesters have neglected their cheat sheets to their detriment. Get an early start, and give it some elbow grease.
Discrete random variables
Problem 1
Let \(A_1\), \(A_2\), \(A_3\), \(A_4\), \(A_5\), and \(A_6\) be events in some sample space, each with the same probability \(0<p<1/6\). Define the indicator random variables
\[ I_k = \begin{cases} 0 & \text{if }A_k^c\text{ happens}\\ 1 & \text{if }A_k\text{ happens}, \end{cases} \]
and let \(X\) be their sum
\[ X = I_1 + I_2 + I_3 + I_4+I_5+I_6. \]
Assume the events \(A_i\) are mutually disjoint and compute…
- \(E(X)\).
- \(P(X=1)\).
- \(P(X=3)\).
Assume the \(A_i\) are independent and compute…
- \(E(X)\).
- \(P(X=1)\).
- \(P(X=3)\).
Problem 2
Let \(X\sim\text{Poisson}(\lambda)\) and define a new random variable \(Y\) that is a zero-truncated version of \(X\). That is, we start with \(\text{Range}(X)=\{0,\,1,\,2,\,3,\,...\}\), and then we rig it so that \(\text{Range}(Y)=\{1,\,2,\,3,\,...\}\). To do this, we define the PMF of the new random variable \(Y\) by
\[ P(Y=k) = P(X=k\mid X > 0),\quad k=1,\,2,\,3,\,4,\,... \]
- Show that the new PMF sums to one;
- Compute the mean of \(Y\);
- Compute the variance of \(Y\).
Want more review?
- Lecture notes introducing random variables;
- Lecture notes on special families of discrete random variables;
- Lecture notes on expected value;
- Lab 5 exercises;
- Problem Set 2: problem 7;
- Problem Set 3: problems 9 - 10;
- Problem Set 4: problems 4 - 10.
Continuous random variables
Problem 3
Consider a nonnegative, absolutely continuous random variable with cdf
\[ F_X(x) = \begin{cases} 1 - \exp\left(-\frac{x^2}{2}\right) & x\geq 0 \\ 0 & x<0. \end{cases} \]
- What is \(P(2\leq X\leq 3)\);
- What is the density of \(X\)?
- What is \(E(X^n)\) for any \(n\in\mathbb{N}\)?
- What is \(\text{var}(X)\)?
- What is the median of \(X\)?
Problem 4
Here is the pdf of some absolutely continuous random variable:
\[ f(x)=\begin{cases} ax^2e^{-bx^2} & x\geq 0\\ 0 & x< 0. \end{cases} \]
Solve for \(a\) in terms of \(b\). So your final answer will look like
\[ a=\text{``some formula including $b$ and a bunch of constants''} \]
Want more review?
- Examples from lecture;
- Lab 8;
- Problem Set 5: problems 2 - 8;
- Problem Set 6: problems 1 - 2;
- Odd-numbered exercises in DeGroot & Schervish Chapters 3.2, 5.6, 5.7.
Moment-generating function
Problem 5
Let \(X\) have the discrete uniform on \(\{1,\,2,\,...,\,n\}\). This means \(P(X=i)=1/n\) for all \(i = 1,\,2,\,...,\,n\).
- Compute the MGF of \(X\);
- Use it to compute the mean;
- Use it to compute the variance.
Problem 6
Consider a continuous random variable \(X\) with density
\[ f(x)=\frac{1}{\beta}\exp\left(-\frac{x}{\beta}-e^{-x/\beta}\right),\quad x\in\mathbb{R}. \]
The parameter \(\beta>0\) is just a positive constant. Compute the moment-generating function of \(X\).
Want more review?
- worked examples from lecture;
- new theorems and examples from lecture about updating MGFs under linear transformations;
- Problem Set 5: problems 9 - 10;
- Problem Set 6: problems 3 - 5.
- Odd-numbered exercises in DeGroot & Schervish Chapter 4.4.
Transformations
Problem 7
This is an important technical skill, so let’s drill it. For each of these, plot the transformation and then derive the range and the density of the new distribution:
- Let \(X\sim\text{Unif}(0,\,1)\) and consider \(Y=1/X\);
- Let \(X\) have density \(f_X(x)=42x^5(1-x)\) for \(0<x<1\) and consider \(Y=X^3\);
- Let \(X\sim\text{Exponential}(\lambda)\) and consider \(Y=4X+3\);
- Let \(X\) have cdf \(F_X(x)=(x+1)^3/8\) for \(-1<x<1\) and consider \(Y=1-X^2\);
- Let \(X\sim\text{N}(0,\,1)\) and consider \(Y=|X|\).
Want more review?
Joint distributions
Problem 8
Here is the joint density for a random pair:
\[ f_{XY}(x,\,y) = \frac{24}{7} x(2-y),\quad 0<x<1\text{ and }0<y<1-x. \]
- Sketch the joint range of \((X,\,Y)\).
- Find the marginal density of \(Y\).
- Find the marginal density of \(X\).
- Find the conditional density of \(X\) given \(Y=y\).
- Use this to compute \(P(X>1/2\,|\,Y=1/3)\).
- What is \(E(X\,|\,Y=y)\)?
Problem 9
Consider this joint distribution for random variables \(X\) and \(Y\), written in hierarchical form:
\[ \begin{aligned} X&\sim\text{Gamma}\left(\alpha,\,\beta\right)\\ Y\mid X=x&\sim \text{Exponential}(x). \end{aligned} \]
- Sketch the joint range of \((X,\, Y)\).
- What is the joint density of the random pair \((X,\, Y)\)?
- What is the marginal density of \(Y\)?
- What is the density of \(X\) conditional on the event \(Y=y\)? Is it recognizable?
Want more review?
- jointly discrete examples from lecture;
- jointly contnuous examples from lecture;
- mixed Poisson-gamma example from Lab 9;
- Problem Set 6: problems 7 - 10;
- Odd-numbered exercises in DeGroot & Schervish Chapters 3.4 - 3.6.