The difference between confidence and prediction intervals has been explained in plain English on Cross Validated: Difference between confidence intervals and prediction intervals
However, when should I use which measure? Are there situations where both measures should be used?
I am looking for concrete examples illustrating when to pick either of them or both.