initialize the transition &

determine the initial probablity