computation error probability with real path and most likely path