A stick of length $L$ is broken at a random point. Let the break point be $X$, which is a random variable uniformly distributed on the interval $[0, L]$. The probability density function (PDF) is $f(x) = 1/L$ for $0 \le x \le L$.
This random break results in two pieces with lengths $X$ and $L - X$.
We need to find the average length of the smaller piece. Let $S$ denote the length of the smaller piece. Mathematically, this is defined as:
$S = \min(X, L - X)$
The value of $S$ depends on where the break occurs:
The average length of the smaller piece is its expected value, denoted by $E[S]$. We calculate this using the definition of expected value for a continuous random variable:
$E[S] = \int_{0}^{L} \min(x, L - x) f(x) dx$
Substitute the PDF $f(x) = 1/L$ and split the integral into two parts based on the definition of $S$:
$E[S] = \int_{0}^{L/2} x \cdot \frac{1}{L} dx + \int_{L/2}^{L} (L - x) \cdot \frac{1}{L} dx$
We evaluate each integral separately:
Add the results from the two integrals to find the total expected value:
$E[S] = \frac{L}{8} + \frac{L}{8} = \frac{2L}{8} = \frac{L}{4}$
Thus, the average length of the smaller piece is $L/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
Consider a Markov chain having state space $S = \{1,2,3,4\}$ with transition probability matrix $P = (p_{i,j})$ given by
$$\begin{matrix} & \begin{matrix} 1 & \quad 2 & \quad 3 & \quad 4 \end{matrix} \\ \begin{matrix} 1 \\ 2 \\ 3 \\ 4 \end{matrix} & \begin{bmatrix} 1/2 & 0 & 1/2 & 0 \\ 1/4 & 1/4 & 1/4 & 1/4 \\ 1/3 & 0 & 1/3 & 1/3 \\ 1/2 & 0 & 1/2 & 0 \end{bmatrix} \end{matrix}$$
Then