On the equivalence between the kinetic Ising model and discrete autoregressive processes