Two tram lines operate independently of each other on a certain route, both $t$ minutes apart. Person $A$ comes to the stop and chooses the train that comes first. Determine the density function of his waiting time and the expected value.
If let $W_1$ and $W_2$ denote the waiting times for both trains such that they're uniformly distributed in $[0,t]$ the probability that $W_1 > w$ is $P(W_1 > w) = \frac{t-w}{t}$ and similarly for $W_2$. The probability that both are greater than $w$ is then $$\left( \frac{t-w}{t}\right)^2.$$ So is the probability of the minimum waiting time say $W$ the same as this $\left( \frac{t-w}{t}\right)^2$ and if so can I use this to derive the density function?