Chapter 8

Random Variables and Their Distributions

[74/97%]
Show
LaTeX
Problem 8.1

Show that X:Ω→RX: \Omega \rightarrow \mathbb {R} is a random variable if and only if the inverse image {X∈B}\{ X \in B\} belongs to F\mathcal{F} for each Borel set B⊂RB \subset \mathbb {R}.

?
Problem 8.2

If XX denotes the amount won (or lost) in the game described at the beginning of this chapter, what are the probabilities P({X>0})\mathbb {P}\left(\{ X>0\} \right) and P({X<0})\mathbb {P}\left(\{ X<0\} \right)?

?
Problem 8.3

Two dice are rolled. Let XX be the larger of the two numbers shown. Compute P({X∈[2,4]})\mathbb {P}\left(\{ X \in [2,4]\} \right).

?
Problem 8.4

Let Ω=[0,1]\Omega =[0,1] with Borel sets and Lebesgue measure. Find P({X∈[0,12)})\mathbb {P}\left(\{ X \in \left[0, \frac{1}{2}\right)\} \right) for X(x)=x2X(x)=x^{2}.

?
Problem 8.5

Let XX be the number of tosses of a fair coin up to and including the first toss showing heads. Find P({X∈2N})\mathbb {P}\left(\{ X \in 2 \mathbb {N}\} \right), where 2N={2n:n=1,2,…}2 \mathbb {N}=\{ 2 n: n= 1,2, \ldots \} is the set of even integers.

?
Problem 8.6

Show that if XX is a constant function, then it is a random variable with respect to any σ\sigma-field.

?
Problem 8.7

Let Ω={1,2,3,4}\Omega =\{ 1,2,3,4\} and F={∅,Ω,{1},{2,3,4}}\mathcal{F}=\{ \varnothing , \Omega ,\{ 1\} ,\{ 2,3,4\} \}. Is X(ω)=1+ωX(\omega )=1+\omega a random variable with respect to the σ\sigma-field F\mathcal{F}? If not, give an example of a non-constant function which is.

?
Problem 8.8

For each of the functions below, find the smallest σ\sigma-field on Ω={−2,−1,0,1,2}\Omega = \{ -2,-1,0,1,2\} with respect to which the function is a random variable:

?
(a)

X(ω)=ω2X(\omega )=\omega^{2},

(b)

X(ω)=ω+1X(\omega )=\omega +1.

Problem 8.9

Find the smallest σ\sigma-fields on Ω={−2,−1,0,1,2}\Omega =\{ -2,-1,0,1,2\} such that the following functions are random variables:

?
(a)

X(ω)=∣ω∣X(\omega )=\left|\omega \right|,

(b)

X(ω)=2ωX(\omega )=2 \omega.

Problem 8.10

Consider Ω=[0,1]\Omega =[0,1] with the σ\sigma-field F\mathcal{F} of Borel sets BB contained in [0,1][0,1].

?
(a)

Is X(x)=xX(x)=x a random variable on Ω\Omega with respect to F\mathcal{F}?

(b)

Is Y(x)=∣x−12∣Y(x)=\left|x-\frac{1}{2}\right| a random variable on Ω\Omega with respect to F\mathcal{F}?

Problem 8.11

Let Ω=[0,1]\Omega =[0,1] with the σ\sigma-field G\mathcal{G} of Borel sets BB contained in [0,1][0,1] such that B=1−BB=1-B. (By 1−B1-B we denote the set {1−x:x∈B}\{ 1-x: x \in B\}.)

?
(a)

Is X(x)=xX(x)=x a random variable on Ω\Omega with respect to G\mathcal{G}?

(b)

Is Y(x)=∣x−12∣Y(x)=\left|x-\frac{1}{2}\right| a random variable on Ω\Omega with respect to G\mathcal{G}?

Problem 8.12

What is the smallest number of elements of a σ\sigma-field if a function X:Ω→RX: \Omega \rightarrow \mathbb {R} taking exactly nn different values is to be a random variable with respect to this σ\sigma-field?

?
Problem 8.13

Show that if XX is a random variable with respect to a σ\sigma-field F\mathcal{F} and F⊂G\mathcal{F} \subset \mathcal{G} for some σ\sigma-field G\mathcal{G}, then XX is a random variable with respect to G\mathcal{G}.

?
Problem 8.14

Let XX be a random variable. Show that the map

PX:B⟼P({X∈B}) P_{X}: B \longmapsto \mathbb {P}\left(\{ X \in B\} \right)

is a probability measure on the σ\sigma-field B\mathcal{B} of Borel sets in R\mathbb {R}.

?
Problem 8.15

Find an example of two different random variables XX and X′X^{\prime } with the same distribution PX=PX′P_{X}=P_{X^{\prime }}.

?
Problem 8.16

Let XX be the amount won (or lost) in the game described at the beginning of this chapter. Find PX((0,+∞))\mathbb {P}_{X}\left((0,+\infty )\right) and PX((−∞,0))\mathbb {P}_{X}\left((-\infty , 0)\right).

?
Problem 8.17

Two dice are rolled. Let XX be the larger of the two numbers shown. Compute PX([2,4])\mathbb {P}_{X}\left([2,4]\right).

?
Problem 8.18

Let Ω=[0,1]\Omega =[0,1] with Borel sets and Lebesgue measure. Find PX([0,12))\mathbb {P}_{X}\left(\left[0, \frac{1}{2}\right)\right) if X(x)=x2X(x)=x^{2}.

?
Problem 8.19

Let XX be the number of tosses of a fair coin up to and including the first toss showing heads. Find PX(2N)\mathbb {P}_{X}\left(2 \mathbb {N}\right), where 2N={2n:n=1,2,…}2 \mathbb {N}=\{ 2 n: n= 1,2, \ldots \} is the set of even integers.

?
Problem 8.20

X(ω)≡cX(\omega ) \equiv c (a constant random variable identically equal to cc).

?
Problem 8.21

X(ω)=1X(\omega )=1 for ω∈A\omega \in A and X(ω)=2X(\omega )=2 otherwise, where P(A)=13\mathbb {P}\left(A\right)=\frac{1}{3}.

?
Problem 8.22

X(ω)=ckX(\omega )=c_{k} with probability αk\alpha_{k} for k=1,…,nk=1, \ldots , n, where c1<c2<⋯<cnc_{1}<c_{2}< \cdots <c_{n} and α1+⋯+αn=1\alpha_{1}+\cdots +\alpha_{n}=1.

?
Problem 8.23

X(ω)=1X(\omega )=1 for ω∈A,X(ω)=−2\omega \in A, X(\omega )=-2 for ω∈B\omega \in B, and X(ω)=2X(\omega )=2 otherwise, where P(A)=13,P(B)=12\mathbb {P}\left(A\right)=\frac{1}{3}, \mathbb {P}\left(B\right)=\frac{1}{2}, and A∩B=∅A \cap B=\varnothing.

?
Problem 8.24

Ω=[0,1]\Omega =[0,1] with Lebesgue measure, X(x)=2x−1X(x)=2 x-1.

?
Problem 8.25

Let XX be the number of tosses of a fair coin up to and including the first toss showing heads. Compute and sketch the distribution function FXF_{X}.

?
Problem 8.26

FXF_{X} is non-decreasing, i.e., if y1⩽y2y_{1} \leqslant y_{2}, then FX(y1)⩽FX(y2)F_{X}\left(y_{1}\right) \leqslant F_{X}\left(y_{2}\right).

?
Problem 8.27

lim⁡y→+∞FX(y)=1\lim_{y \rightarrow +\infty } F_{X}(y)=1.

?
Problem 8.28

lim⁡y→−∞FX(y)=0\lim_{y \rightarrow -\infty } F_{X}(y)=0.

?
Problem 8.29

Show that if all the values of XX are in an interval [a,b][a, b], where a<ba<b, then FX(y)=0F_{X}(y)=0 for all y<ay<a and FX(y)=1F_{X}(y)=1 for all y⩾by \geqslant b.

?
Problem 8.30

FXF_{X} is right-continuous.

?
Problem 8.31

FXF_{X} is continuous at yy if and only if PX({y})=0P_{X}(\{ y\} )=0.

?
Problem 8.32

Let a<ba<b. Find expressions for the following probabilities in terms of FXF_{X}:

?
(a)

PX((a,b])\mathbb {P}_{X}\left((a, b]\right),

(b)

PX((a,b))\mathbb {P}_{X}\left((a, b)\right),

(c)

PX([a,b])\mathbb {P}_{X}\left([a, b]\right),

(d)

PX([a,b))\mathbb {P}_{X}\left([a, b)\right).

Problem 8.33

Find FXF_{X} if Ω=[0,1]×[0,1]\Omega =[0,1] \times [0,1] is the unit square with uniform measure (which measures the surface area) and X(ω)X(\omega ) is the distance between ω∈Ω\omega \in \Omega and the nearest edge of the square.

?
Problem 8.34

A coin is tossed. If it shows heads, you pay 2 dollars. If it shows tails, you spin a wheel which gives the amount you win distributed with uniform probability between 0 and 10 dollars. Your gain (or loss) is a random variable XX. Find the distribution function and use it to compute the probability that you will not win at least 5 dollars.

?
Problem 8.35

Your car has broken down at noon. You have called a repair team, which left at 12:00 from a place 100 miles from where you are. They travel at 100 miles per hour. In the meantime, you try to fix the car yourself. The chances of success are uniform in the time interval between 12 and 1 o'clock with total probability 12\frac{1}{2}. If you succeed, you will drive to meet the repair team at 100 miles per hour. Let XX be the distance traveled by the team before they meet you (the fee you pay depends on it). Find FXF_{X}.

?
Problem 8.36

Two towns A and B are 50 miles apart. Car 1 leaves town A and car 2 leaves town B independently of one another. The departure time of each car is random and uniformly distributed between 12 and 1 o'clock. The speed of each car is 100 miles per hour and they travel directly to meet one another. Denote by XX the distance between the meeting point and A. Find FXF_{X}.

?
Problem 8.37

Show that XX is a discrete random variable if and only if the distribution PXP_{X} is a discrete probability measure on R\mathbb {R} in the sense of Definition 6.7.

?
Problem 8.38

A random variable XX is said to have the binomial distribution B(n,p)B(n, p), where n=1,2,…n=1,2, \ldots and p∈[0,1]p \in [0,1], if

PX({k})=(nk)pk(1−p)n−k(8.1) \mathbb {P}_{X}\left(\{ k\} \right)=\binom {n}{k} p^{k}(1-p)^{n-k} \tag {8.1}

for k=0,1,…,nk=0,1, \ldots , n. Verify that such a random variable is discrete.

?
Problem 8.39

Show that the indicator function   1A\; \mathbb {1}_{A} of an event AA has the binomial distribution B(n,p)B(n, p) with n=1n=1 and p=P(A)p=\mathbb {P}\left(A\right). (This is sometimes called the Bernoulli distribution.)

?
Problem 8.40

Let XX have the binomial distribution B(n,p)B(n, p). Show that for any k=1,…,nk=1, \ldots , n,

PX({k})=p1−pn−k+1kPX({k−1}) \mathbb {P}_{X}\left(\{ k\} \right)=\frac{p}{1-p} \frac{n-k+1}{k} \mathbb {P}_{X}\left(\{ k-1\} \right)

(This formula can be used in practice to compute PX({k})\mathbb {P}_{X}\left(\{ k\} \right) by induction starting from PX({0})=(1−p)n\mathbb {P}_{X}\left(\{ 0\} \right)=(1-p)^{n} or by backward induction starting from PX({n})=pn\mathbb {P}_{X}\left(\{ n\} \right)=p^{n}.)

?
Problem 8.41

Let XX have the binomial distribution B(n,p)B(n, p) and let YY have the binomial distribution B(n,1−p)B(n, 1-p). Verify that for any k=0,1,…,nk=0,1, \ldots , n,

PX({k})=PY({n−k}) \mathbb {P}_{X}\left(\{ k\} \right)=\mathbb {P}_{Y}\left(\{ n-k\} \right)
?
Problem 8.42

A biased coin with probability of heads pp and tails 1−p1-p is flipped nn times. Let XX denote the number of heads obtained. What is the distribution of XX?

?
Problem 8.43

A biased coin with probability of heads pp and tails 1−p1-p is flipped until kk heads are obtained.

?
(a)

Find the distribution of the number of flips YY. (This is called the negative binomial distribution.)

(b)

Show that YY is a discrete random variable.

Problem 8.44

Let XnX_{n} be a sequence of random variables with binomial distribution B(n,λn)B\left(n, \frac{\lambda }{n}\right) for some λ>0\lambda >0. Show that

P({Xn=k})→e−λλkk! as n→∞ \mathbb {P}\left(\left\{ X_{n}=k\right\} \right) \rightarrow e^{-\lambda } \frac{\lambda ^{k}}{k!} \quad \text{ as } n \rightarrow \infty
?
Problem 8.45

A random variable XX is said to have the Poisson distribution with parameter λ>0\lambda >0 if

PX({k})=e−λλkk!(8.2) \mathbb {P}_{X}\left(\{ k\} \right)=e^{-\lambda } \frac{\lambda ^{k}}{k!} \tag {8.2}

for k=0,1,2,…k=0,1,2, \ldots. Show that XX is a discrete random variable.

?
Problem 8.46

A safety device in a laboratory is set to activate an alarm if it registers five or more radioactive particles within one second. If the background radiation is such that the number of particles reaching the device has the Poisson distribution with parameter λ=0.5\lambda =0.5, how likely is it that the alarm will be activated within a given 1-second period?

?
Problem 8.47

Let XX have the Poisson distribution with parameter λ\lambda. Verify that

PX({k+1})=λk+1PX({k}) \mathbb {P}_{X}\left(\{ k+1\} \right)=\frac{\lambda }{k+1} \mathbb {P}_{X}\left(\{ k\} \right)

for each k=0,1,2,…k=0,1,2, \ldots. (This formula can be used to compute PX({k})\mathbb {P}_{X}\left(\{ k\} \right) by induction starting from PX({0})=e−λ\mathbb {P}_{X}\left(\{ 0\} \right)=e^{-\lambda }.)

?
Problem 8.48

Show that ∫−∞∞fX(x)dx=1\int_{-\infty }^{\infty } f_{X}(x) \mathrm{d} x=1.

?
Problem 8.49

Show that PX({y})=0P_{X}(\{ y\} )=0 for any y∈Ry \in \mathbb {R}.

?
Problem 8.50

Give a formula for FX(y)F_{X}(y) in terms of fXf_{X}.

?
Problem 8.51

Show that for any absolutely continuous random variable, the distribution function is continuous.

?
Problem 8.52

Show that if the distribution function FXF_{X} is differentiable with continuous derivative, then XX is an absolutely continuous random variable with density fX(x)=dFX(x)dxf_{X}(x)=\frac{d F_{X}(x)}{d x}.

?
Problem 8.53

A random variable XX has the normal distribution N(m,σ2)N\left(m, \sigma^{2}\right), where m,σ∈Rm, \sigma \in \mathbb {R}, if it is an absolutely continuous random variable with density

fX(x)=12πσ2exp⁡(−(x−m)22σ2) f_{X}(x)=\frac{1}{\sqrt{2 \pi \sigma ^{2}}} \exp \left(-\frac{(x-m)^{2}}{2 \sigma ^{2}}\right)

Verify that fXf_{X} is indeed a density.

?
Problem 8.54

Let XX be a random variable with normal distribution N(0,1)N(0,1). Show that a+bXa+b X, where a,b∈Ra, b \in \mathbb {R}, has the normal distribution N(a,b2)N\left(a, b^{2}\right).

?
Problem 8.55

Let XX be a random variable with normal distribution N(0,1)N(0,1). Find the density of Y=eXY=e^{X}. (The distribution of YY is called the log normal distribution.)

?
Problem 8.56

Let XX be an absolutely continuous random variable with uniform distribution on [0,1][0,1], i.e., with fX(x)=1f_{X}(x)=1 for any x∈[0,1]x \in [0,1] and fX(x)=0f_{X}(x)=0 otherwise. Find a function g:R→Rg: \mathbb {R} \rightarrow \mathbb {R} such that g(X)g(X) has the normal distribution N(0,1)N(0,1).

?
Problem 8.57

Suppose that XX and YY are random variables defined on the same probability space (Ω,F,P)(\Omega , \mathcal{F}, P). Show that {(X,Y)∈B}\{ (X, Y) \in B\} belongs to F\mathcal{F} for any Borel set BB in R2\mathbb {R}^{2}.

?
Problem 8.58

Let XX and YY be random variables defined on the same probability space. Show that the distribution PXP_{X} of XX and PYP_{Y} of YY can be obtained from the joint distribution as follows:

PX(B)=PX,Y(B×R)PY(B)=PX,Y(R×B) \begin{align} & P_{X}(B)=P_{X, Y}(B \times \mathbb {R}) \\ & P_{Y}(B)=P_{X, Y}(\mathbb {R} \times B) \end{align}

for any Borel set BB in R\mathbb {R}.

?
Remark.
?

When expressed in this way, PXP_{X} and PYP_{Y} are referred to as the marginal distributions.

Problem 8.59

Two identical coins are flipped simultaneously. Let XX be the number of heads and YY the number of tails shown. What is the joint distribution of XX and YY? What are the marginal distributions?

?
Problem 8.60

A pair of dice are rolled. Let XX be the greater and YY the smaller of the numbers shown. Find the joint distribution and the marginal distributions of XX and YY.

?
Problem 8.61

Two balls are drawn from an urn containing one yellow, two red and three blue balls. Let XX be the number of red balls and YY the number of blue balls drawn. Find the joint distribution and the marginal distributions of XX and YY.

?
Problem 8.62

Prove that random variables XX and YY are jointly discrete if and only if they are both discrete.

?
Problem 8.63

A fair coin is tossed repeatedly. Suppose that heads appear for the first time after XX tosses and tails appear for the first time after YY tosses. Show that XX and YY are jointly discrete random variables and find their joint distribution. Hence or otherwise, compute the marginal distributions of XX and YY.

?
Problem 8.64

Let XX and YY have the joint distribution

PX,Y({(m,n)})={12m+1, if m⩾n0, if m<n P_{X, Y}(\{ (m, n)\} )= \begin{cases} \dfrac {1}{2^{m+1}}, & \text{ if } m \geqslant n \\ 0, & \text{ if } m<n \end{cases}

for m,n=1,2,…m, n=1,2, \ldots. Compute the marginal distributions PXP_{X} and PYP_{Y}.

?
Problem 8.65

Show that if XX and YY are jointly continuous random variables, then both XX and YY are absolutely continuous with density, respectively,

fX(x)=∫−∞+∞fX,Y(x,y)dyfY(y)=∫−∞+∞fX,Y(x,y)dx \begin{align} & f_{X}(x)=\int _{-\infty }^{+\infty } f_{X, Y}(x, y) \mathrm{d} y \tag {8.3}\\ & f_{Y}(y)=\int _{-\infty }^{+\infty } f_{X, Y}(x, y) \mathrm{d} x \tag {8.4} \end{align}

If expressed in this way, fXf_{X} and fYf_{Y} are called the marginal densities.

?
Problem 8.66

Find two absolutely continuous random variables XX and YY that are not jointly continuous.

?
Problem 8.67

If XX and YY are jointly continuous random variables, show that U=X+YU= X+Y and V=X−YV=X-Y are also jointly continuous with joint density

fU,V(u,v)=12fX,Y(u+v2,u−v2) f_{U, V}(u, v)=\frac{1}{2} f_{X, Y}\left(\frac{u+v}{2}, \frac{u-v}{2}\right)
?
Problem 8.68

Show that XX and YY are independent random variables if and only if the events {X∈A}\{ X \in A\} and {Y∈B}\{ Y \in B\} are independent for any Borel sets A,B⊂RA, B \subset \mathbb {R}.

?
Problem 8.69

Let XX and YY be independent random variables. Show that f(X)f(X) and g(Y)g(Y) are independent for any Borel functions ff and gg. (By f(X)f(X), we denote the random variable Ω∋ω↦f(X(ω))∈R\Omega \ni \omega \mapsto f(X(\omega )) \in \mathbb {R} and by g(Y)g(Y) the random variable Ω∋ω↦g(Y(ω))∈R\Omega \ni \omega \mapsto g(Y(\omega )) \in \mathbb {R}.)

?
Problem 8.70

Show that jointly continuous random variables are independent if and only if for every x,y∈Rx, y \in \mathbb {R},

fX,Y(x,y)=fX(x)fY(y) f_{X, Y}(x, y)=f_{X}(x) f_{Y}(y)
?
Problem 8.71

Suppose that XX and YY are jointly continuous random variables with joint density fX,Y(x,y)=cex+yf_{X, Y}(x, y)=c e^{x+y} for x,y∈(−∞,0]x, y \in (-\infty , 0] and fX,Y(x,y)=0f_{X, Y}(x, y)= 0 otherwise.

?
(a)

What is the value of cc?

(b)

What is the probability that X<YX<Y?

(c)

What are the marginal densities fXf_{X} and fYf_{Y}?

(d)

Show that XX and YY are independent.

Problem 8.72

Let XX and YY be independent random variables with binomial distribution B(m,p)B(m, p) and B(n,p)B(n, p), respectively. What is the distribution of X+YX+Y?

?
Problem 8.73

Let XX and YY be independent random variables having the Poisson distribution with parameter λ\lambda and μ\mu, respectively. Find the distribution of X+YX+Y.

?
Problem 8.74

Suppose that XX and YY are jointly continuous independent random variables. Show that the density of the sum X+YX+Y is the convolution of the marginal densities:

fX+Y(z)=∫−∞+∞fX(x)fY(z−x)dx f_{X+Y}(z)=\int _{-\infty }^{+\infty } f_{X}(x) f_{Y}(z-x) \mathrm{d} x
?