Problem

Xhiver <xhiver@gmail.com> asks:

Let X~U[-1,2] and Y~exp(1)

(b) Let V = min {X,Y}. Find the CDF and PDF of V
(c) Let W = max {X,Y}. Find the CDF and PDF of W

Solution

Given:  we have a Uniform(-1,2) distribution with pdf f(x):

In[2]:=

"Min of Uniform and Exponential_1.gif"

… and an Exponential(1) distribution with pdf g(x):

In[3]:=

"Min of Uniform and Exponential_2.gif"

Mininimum of Uniform(-1,2) and Exponential(1)

This is just the special case of finding the distribution of the sample minimum, in a sample of size 2, where one random variable (f) has an Uniform(-1,2) distribution, and the other has an Exponential(1). The pdf of the minimum is simply:

In[4]:=

"Min of Uniform and Exponential_3.gif"

Out[4]=

"Min of Uniform and Exponential_4.gif"

... defined on the real line:

In[5]:=

"Min of Uniform and Exponential_5.gif"


Quick Monte Carlo check ...
Here are 100000 pseudo-random drawings from both the Uniform(-1,2) and the Exponential(1) distributions:

In[6]:=

"Min of Uniform and Exponential_6.gif"

Next, we break up the sample data into groups of size 2, and find the sample minimum of each pair … yielding our sampleMin data … which we then compare with the theoretical distribution hMin derived above:

In[7]:=

"Min of Uniform and Exponential_7.gif"

Out[8]=

"Min of Uniform and Exponential_8.gif"

Looks gooooood!

Find the cdf:

In[9]:=

"Min of Uniform and Exponential_9.gif"

Out[9]=

"Min of Uniform and Exponential_10.gif"

In[10]:=

"Min of Uniform and Exponential_11.gif"

Out[10]=

"Min of Uniform and Exponential_12.gif"

Max of Uniform(-1,2) and Exponential(1)

Here is the pdf of the maximum of a Uniform(-1,2) and an Exponential(1) random variable:

In[11]:=

"Min of Uniform and Exponential_13.gif"

Out[11]=

"Min of Uniform and Exponential_14.gif"

again defined on the real line:

"Min of Uniform and Exponential_15.gif"


Quick Monte Carlo check ...
Here again are 10000 pseudo-random drawings from the Uniform(-1,2) and from the Expontential(1) distributions:

In[13]:=

"Min of Uniform and Exponential_16.gif"

and here we break up the sample data into groups of size 2, and find the sample maximum of each pair … thus generating our sampleMax data … which we then compare with the theoretical distribution hMax derived above:

In[14]:=

"Min of Uniform and Exponential_17.gif"

Out[15]=

"Min of Uniform and Exponential_18.gif"

Find the cdf:

In[16]:=

"Min of Uniform and Exponential_19.gif"

Out[16]=

"Min of Uniform and Exponential_20.gif"

In[17]:=

"Min of Uniform and Exponential_21.gif"

Out[17]=

"Min of Uniform and Exponential_22.gif"