In this paper we use the Hodrick-Prescott filter for analyzing global temperature data. We are especially concerned with a reliable estimation of the trend component at the end of the data sample. To this end we employ time-varying values for the penalization parameter. The optimal values are...