Question

Let XX be a Gaussian random variable with mean 0 and variance σ2\sigma^2. Let Y=max⁡(X,0)Y = \max(X, 0) where max⁡(a,b)\max(a, b) is the maximum of aa and bb. The median of YY is ______.

Official answer and solution
Official answer
0
From
Official GATE 2017 answer key

Solution

Find the cumulative distribution function of Y=max⁡(X,0)Y = \max(X, 0) where X∼N(0,σ2)X \sim \mathcal{N}(0, \sigma^2) and solve for the median value mm where P(Y≤m)=0.5P(Y \le m) = 0.5.

Let XX be a Gaussian random variable with zero mean and variance σ2\sigma^2, so X∼N(0,σ2)X \sim \mathcal{N}(0, \sigma^2). By symmetry of the normal distribution:

P(X≤0)=0.5andP(X>0)=0.5P(X \le 0) = 0.5 \quad \text{and} \quad P(X > 0) = 0.5

The random variable YY is defined as Y=max⁡(X,0)Y = \max(X, 0):

  • When X≤0X \le 0, Y=0Y = 0.
  • When X>0X > 0, Y=X>0Y = X > 0.

Thus, the probability mass at Y=0Y = 0 is:

P(Y=0)=P(X≤0)=0.5P(Y = 0) = P(X \le 0) = 0.5

For any value y<0y < 0, P(Y≤y)=0P(Y \le y) = 0. At y=0y = 0, P(Y≤0)=P(Y=0)=0.5P(Y \le 0) = P(Y = 0) = 0.5.

By definition, the median mm of a random variable satisfies P(Y≤m)≥0.5P(Y \le m) \ge 0.5 and P(Y≥m)≥0.5P(Y \ge m) \ge 0.5. Since P(Y≤0)=0.5P(Y \le 0) = 0.5 and P(Y≥0)=1≥0.5P(Y \ge 0) = 1 \ge 0.5, the median of YY is precisely 0.

Final answer

0.0

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 1
Question
19 of 65, printed as CS Q.19
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.