Geometric study on Bayesian statistics and random walks in the quarter plane