Smoothing and transforming the observations