Nonasymptotic bounds for autoregressive time series modeling