Bayesian estimation of an autoregressive model using Markov chain Monte Carlo