Penalized least squares approximation methods and their applications to stochastic processes