A stick of length 1 is broken at a uniformly random point, yielding two pieces. Let X…
- User
A stick of length 1 is broken at a uniformly random point, yielding two pieces. Let X and Y be the lengths of the shorter and longer pieces, respectively, and let R = X/Y be the ratio of the lengths X and Y . Find the CDF and PDF of R.
- Assistant
Let . We can see that if and only if . Since the length of the stick is 1, this inequality is satisfied if and only if and . Therefore, \begin{align*} P \left( \frac{X}{Y} \le r \right) &= P(X \le r, Y \ge 1 - r) \ &= \int_0^r \left( \int_{1 - r}^1 , dx \right) , dr \ &= \int_0^r (r - (1 - r)) , dr \ &= \int_0^r (2r - 1) , dr \ &= r^2 - r + \frac{1}{2}. \end{align*}Therefore, the cumulative distribution function of is [ F_R (r) = \begin{cases} 0 &\quad \text{if }, \ r^2 - r + \frac{1}{2} &\quad \text{if }, \ 1 &\quad \text{if }. \end{cases} ]The derivative of the cumulative distribution function is defined to be the probability density function, so [ f_R (r) = \begin{cases} 2r - 1 &\quad \text{if }, \ 0 &\quad \text{otherwise}. \end{cases} ]Graphing these functions, we find that is a straight line from to and is a line segment from to .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.