bugfree Icon
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course

Data Interview Question

PDF of Maximum of Uniform Variables

bugfree Icon

Hello, I am bugfree Assistant. Feel free to ask me for any question related to this problem

Solution & Explanation

The task is to derive the Probability Density Function (PDF) for Z=max(X,Y)Z = \max(X, Y) given that XX and YY are uniformly distributed over the interval (0,1)(0,1). This involves several steps, including understanding the cumulative distribution function (CDF) and then deriving the PDF from it.

Step 1: Understanding the CDF of Uniform Distribution

Given that both XX and YY are uniformly distributed over (0,1)(0, 1), their CDF is defined as:

  • FX(x)=P(Xx)=xF_X(x) = P(X \leq x) = x for 0x10 \leq x \leq 1
  • FX(x)=0F_X(x) = 0 for x<0x < 0
  • FX(x)=1F_X(x) = 1 for x>1x > 1

The same applies to YY since it is identically distributed.

Step 2: Finding the CDF of Z=max(X,Y)Z = \max(X, Y)

To find the CDF of ZZ, we need to compute P(Zz)P(Z \leq z). Since ZZ is the maximum of XX and YY, the event ZzZ \leq z is equivalent to both XzX \leq z and YzY \leq z occurring simultaneously. Hence:

P(Zz)=P(XzYz)=P(Xz)P(Yz)P(Z \leq z) = P(X \leq z \cap Y \leq z) = P(X \leq z) \cdot P(Y \leq z)

Given the independence of XX and YY, and using their CDF:

P(Zz)=zz=z2for0z1P(Z \leq z) = z \cdot z = z^2 \quad \text{for} \quad 0 \leq z \leq 1

Step 3: Deriving the PDF from the CDF

The PDF of a random variable is the derivative of its CDF with respect to zz:

fZ(z)=ddzFZ(z)=ddz(z2)=2zfor0z1f_Z(z) = \frac{d}{dz} F_Z(z) = \frac{d}{dz} (z^2) = 2z \quad \text{for} \quad 0 \leq z \leq 1

For values of zz outside (0,1)(0, 1), the PDF is zero:

  • fZ(z)=0f_Z(z) = 0 for z<0z < 0 or z>1z > 1

Conclusion

The PDF of Z=max(X,Y)Z = \max(X, Y), where XX and YY are independent and uniformly distributed over (0,1)(0,1), is given by:

fZ(z)={2z,if 0z10,otherwisef_Z(z) = \begin{cases} 2z, & \text{if } 0 \leq z \leq 1 \\ 0, & \text{otherwise} \end{cases}

This solution demonstrates the critical steps in deriving the PDF from the CDF and highlights the properties of uniform distributions and maxima of random variables.