At one end of a stick with length OA = R, we place a sphere. We push the sphere using a force of random magnitude so that it is rotated around point O (see Figure 6.6) creating an angle of Θ degrees, and the density function of this angle is given by
f_\Theta (\theta )= \begin{cases} \frac{2}{\pi}, \quad 0 \lt \theta \leq \frac{\pi}{2} , \\ 0, \quad ~ \text{elsewhere}. \end{cases}Find the expected value of the position, (E(X), E(Y)), of the sphere after its rotation.
As can be seen from Figure 6.6, we have
X = R cos Θ, Y = R sin Θ,
so that we obtain, first for the expectation E(X),
E(X)=\int_{-\infty}^{\infty}R\cos\theta f_{\Theta}(\theta)\mathrm{d}\theta=\int_{0}^{\pi/2}R\cos\theta\cdot{\frac{2}{\pi}}\ \mathrm{d}\theta={\frac{2R}{\pi}}\int_{0}^{\pi/2}\cos\theta\mathrm{d}\theta={\frac{2R}{\pi}}[\sin\theta]_{0}^{\pi/2}={\frac{2R}{\pi}}\left(\sin{\frac{\pi}{2}}-\sin0\right)={\frac{2R}{\pi}}.In a similar fashion, we find for E(Y) that
E(Y)=\int_{-\infty}^{\infty}R\sin\theta f_{\Theta}(\theta)\mathrm{d}\theta=\int_{0}^{\pi/2}\!R\sin\theta\cdot{\frac{2}{\pi}}\,\mathrm{d}\theta={\frac{2R}{\pi}}\int_{0}^{\pi/2}\sin\theta\,\mathrm{d}\theta={\frac{2R}{\pi}}[-\cos\theta]_{0}^{\pi/2}=-{\frac{2R}{\pi}}\left(\cos{\frac{\pi}{2}}-\cos0\right)={\frac{2R}{\pi}}.Consequently, the expected position of the sphere lies on the angle bisector of the first quadrant of the Cartesian axes.