Then $P((Z-W) > 1/2)$ is
We are given two independent and identically distributed (i.i.d.) random variables, $X$ and $Y$, both following a uniform distribution on $(0,1)$. We define $Z = \max(X,Y)$ and $W = \min(X,Y)$. We need to find the probability $P((Z-W) > 1/2)$.
First, let's simplify the expression $Z-W$.
In both cases, $Z-W = |X-Y|$. Therefore, the probability we need to calculate is $P(|X-Y| > 1/2)$.
Since $X$ and $Y$ are i.i.d. uniform $(0,1)$ variables, their joint distribution is uniform over the unit square $[0,1] \times [0,1]$. The total area of this sample space is $1 \times 1 = 1$. The probability $P(|X-Y| > 1/2)$ is equivalent to the area of the region within the unit square where $|X-Y| > 1/2$.
The condition $|X-Y| > 1/2$ splits into two inequalities:
Let's find the area corresponding to these inequalities within the unit square:
These two regions are disjoint.
The total probability $P(|X-Y| > 1/2)$ is the sum of the areas of these two regions:
$ P((Z-W) > 1/2) = P(|X-Y| > 1/2) = \text{Area(Region 1)} + \text{Area(Region 2)} $
$ P((Z-W) > 1/2) = \frac{1}{8} + \frac{1}{8} = \frac{2}{8} = \frac{1}{4} $
Thus, the probability is $1/4$.
A canal system is shown in the figure.

Water flows from A to B through two channels. Gates $G_1$ and $G_2$ are operated independently to regulate the flow. Probability of $G_1$ to be open is 10% while that of $G_2$ is 20%. The probability that water will flow from A to B is