The expected number of trees that will die in one summer, based on the conditions specified, is
where
represents the initial number of trees planted uniformly in a line.
To compute the expected number of trees that will die in one summer, let's analyze the probabilities of a tree dying based on its position within the line of trees.
Consider the scenario:
Trees are planted uniformly randomly in a line.
If any tree is shorter than both the trees directly in front and behind it, it will not receive enough sunlight and will die.
The trees at the very front and back will die if they are shorter than their only neighbor.
Let
be the random variable representing the number of trees that die in one summer out of
trees initially planted.
For each tree in the line (except the first and last), the probability of a tree dying is
, as it needs to be shorter than both its neighbors (front and back) for it to die.
For the first and last trees:
For the first tree, the probability of dying is
=
as it has only one neighbor.
For the last tree, the probability of dying is
=
as it has only one neighbor.
The expected number of trees that will die
can be calculated as the sum of individual probabilities of a tree dying:
![\[ E(X) = P(\text{tree 1 dies}) + \sum_(i=2)^(n-1) P(\text{tree i dies}) + P(\text{tree n dies}) \]](https://img.qammunity.org/2024/formulas/mathematics/high-school/f3wvonabgm5cb4fivkfyr58xy3rlv8f9nl.png)
![\[ E(X) = (1)/(2) + (n-2) * (1)/(4) + (1)/(2) \]](https://img.qammunity.org/2024/formulas/mathematics/high-school/lm7gxtqatcp5p0jck7jgfjtfta4a1m6cqw.png)
![\[ E(X) = (n+1)/(4) \]](https://img.qammunity.org/2024/formulas/mathematics/high-school/c1vtahvwra7m0lbg33h2dcboyktjvb6ccd.png)
Hence, the expected number of trees that will die in one summer is
based on the given conditions.