Solution
= Solution
The <risk set> at $x_i$ contains every individual still under observation and event-free immediately before $x_i$. Since the observed times are strictly ordered increasingly, these are individuals $i,i+1,\ldots,n$, so its size is
$$
Y(x_i)=n-i+1.
$$