Perplexity is a measure derived from the entropy of a probability distribution. It is defined as the exponentiation of the entropy:
In the context of a discrete random variable with probability mass function , perplexity can be interpreted as the effective number of choices (or the “average branching factor”) represented by the distribution.