prob_cal function

Calculate Probabilities