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$.
Bag A contains 3 Red and 4 Black balls while Bag B contains 5 Red and 6 Black balls. One ball is drawn at random from one of the bags and is found to be red. Then, the probability that it was drawn from Bag B is
Suppose that the random variable X takes on the values: -1, 0, and 2 with probability $\frac{1}{8}$, $\frac{1}{2}$ and $\frac{3}{8}$. Find the expected value of X.