On nonparametric likelihood methods for weakly and strongly dependent time series