Probability & Statistics
![Question 80, GATE 2004: Choose a point uniformly from the rectangle with corners (0,0),(1,0),(1,2),(0,2). If p is its distance from the origin, what is E[p²]?
Options:
(A) 2/3
(B) 1
(C) 4/3
(D) 5/3](../../assets/questions/CS-2004-Q80-1.webp)
Answer & solution
Answer: D (no official key was published)
1. Uniform sampling over [0,1]×[0,2] makes X and Y uniform on their respective intervals. Since p²=X²+Y², E[p²]=E[X²]+E[Y²]=(integral from 0 to 1 of x² dx)+(1/2)(integral from 0 to 2 of y² dy)=1/3+4/3=5/3, D.
2. This asks for E[p²], not the square of E[p].
3. Teaching check: Uniformity over the rectangle gives density 1/2, so E[Y²]=(1/2)∫₀²y²dy, not simply ∫₀²y²dy. Linearity gives E[X²+Y²] without needing to integrate sqrt(X²+Y²), which would answer a different question.