 This provides, for example, a useful method of checking equality of certain functions of independent, identically distributed (IID) random variables.However, the moment generating function exists only for distributions that have a defined Laplace transform.Two random variables "X" and "Y" are "equal almost surely" (denoted formula_188) if, and only if, the probability that they are different is zero