1. Consider a Poisson process with intensity λ, and let T be the time of the first occurrence in the time interval (0, t]. If there is no occurrence during (0, t], we set T = t. Compute E T.
2. In the previous example, let, instead, T be the time of the last occurrence in the time interval (0, t]. If there is no occurrence during (0, t], we set T = 0. Compute E T.