This thesis consists of two parts. In chapter 2, we focus on optimal smoothing with correlated data and chapter 3 is devoted to marginal semiparametric modelling of longitudinal/clustered data. Penalized likelihood method offers versatile smoothing techniques in a variety of stochastic settings,...