Origin of probabilities and their application to the multiverse