Calculating probability using different methods