GATE DA › Probability and Statistics › Random Variables › Discrete Random Variables & PMF
GATE ME 2024 · Discrete Random Variables & PMF
NAT · 2 marks · Problem EM-RVAR-0079
Let \(X\) be a continuous random variable defined on \([0,1]\) such that its probability density function \(f(x)=1\) for \(0 \leq x \leq 1\) and 0 otherwise. Let \(Y=\) \(\log _{e}(X+1)\). Then the expected value of \(Y\) is (rounded off to 2 decimal places).
Numerical answer (NAT).
Solve it on GATE DA practice → More Random Variables problems
Show the worked solution \[\begin{aligned}
f(x) & = \begin{cases}1 & 0 \lt x \lt 1 \\
0 & \text { otherwise }\end{cases} \\
y & =\ln (x+1) \\
E(x) & =\int x f(x) d x \\
E(g(x)) & =\int g(x) f(x) d x \\
E(y) & =\int \ln (x+1) f(x) d x \\
E(y) & =\int_{0}^{1} \ln (x+1) d x \; \; \; \{f(x)=1,0 \lt x \lt 1\} \\
E(y) & =\left(x \ln (x+1)-\int_{0}^{1} \frac{x}{x+1} d x\right)_{0}^{1} \\
& =(x \ln (x+1)-[x-\ln (x+1)))_{0}^{1} \\
& =(\ln (x+1)(x+1)-x)_{0}^{1} \\
=2 & \ln 2-1=0.38629=0.3863 \simeq 0.39
\end{aligned}\]
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com