get_est_Ar function

get the estimation of A and r