I have been given an algorithm to generate a random variable $Y$, as follows:
- If $X>2$ then $Y=X-2$, otherwise reject.
I'm then asked to find the pdf and cdf of $Y$.
Can anyone tell me how to read this?
I know in theory what both are but I'm finding it difficult to infer them from problems like this.