All $X_1,X_2,X_3$ are independent and uniformly distributed on $[0,1]$. Find the probability of $X_2$ lying between $X_1$ and $X_3$
Is the following method correct? Find the $P(X_1<X_2<X_3) + P(X_3<X_2<X_1)$
Find $P(X_1<X_2<X_3)$
Fix $X_2$. Denote the point on $[0,1]$ as $x_2$. The probability of $P(X_1<X_2)$ is $x_2-0$ and the $P(X_2<X_3)=1-x_2$
$P(X_1<X_2<X_3)=(1-x_2)(x_2)$
You can solve this problem by symmetry. The following events are distinct
$i$) $X_1$ lies between $X_2$ and $X_3$
$ii$) $X_2$ lies between $X_1$ and $X_3$
$iii$) $X_3$ lies between $X_1$ and $X_2$
and they are complete in the sense that one of them is always true, $P(i) + P(ii) + P(iii) =1$.
Because of the symmetry they are equivalent and we have $P(i) =P (ii)= P(iii)$ and thus
$$P(ii) = \frac13.$$