this is my first question so excuse my unknowing and mistakes: I was reading a book and just faced this thing:
(1.4) $=P(X\gt Z/2)(Y-X)$
(1.5) $=P(2X\gt Z)(Y-X)$
(1.6) $=\min\{{2X,1\}}(Y-X)$
I'm facing difficulty in understanding the transition from equation (1.5) to (1.6). what is given is that $X$ and $Z$ are uniformly distributed between $[0,1]$.
If $2X>1$ then $P(2X>Z)=1$. If $2X<1$ then $P(2X>Z)=2X$, since $Z$ is uniform on $[0,1]$.