Question

The unit interval (0,1)(0, 1) is divided at a point chosen uniformly distributed over (0,1)(0, 1) in R\mathbb{R} into two disjoint subintervals.

The expected length of the subinterval that contains 0.40.4 is ___________. (rounded off to two decimal places)

Official answer and solution
Accepted answers
0.7 to 0.8
From
Official GATE 2025 answer key

Solution

Express the length L(X)L(X) of the subinterval containing 0.40.4 as a piecewise function of X∼Uniform(0,1)X \sim \text{Uniform}(0, 1) and integrate over (0,1)(0, 1).

Let X∼Uniform(0,1)X \sim \text{Uniform}(0, 1) be the random cut point, which divides (0,1)(0, 1) into (0,X)(0, X) of length XX and (X,1)(X, 1) of length 1−X1 - X. Let LL be the length of the subinterval containing 0.40.4:

  • If 0<X<0.40 < X < 0.4, then 0.4∈(X,1)0.4 \in (X, 1), so L=1−XL = 1 - X.
  • If 0.4<X<10.4 < X < 1, then 0.4∈(0,X)0.4 \in (0, X), so L=XL = X.

Since XX has uniform density fX(x)=1f_X(x) = 1 on (0,1)(0, 1):

E[L]=∫00.4(1−x) dx+∫0.41x dx=[x−x22]00.4+[x22]0.41E[L] = \int_0^{0.4} (1 - x)\,dx + \int_{0.4}^1 x\,dx = \left[x - \frac{x^2}{2}\right]_0^{0.4} + \left[\frac{x^2}{2}\right]_{0.4}^1
E[L]=(0.4−0.08)+(0.50−0.08)=0.32+0.42=0.74E[L] = (0.4 - 0.08) + (0.50 - 0.08) = 0.32 + 0.42 = 0.74
Final answer

0.74

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

Source

Paper
GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
Question
65 of 65
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.