Source: https://mathadoc.sesamath.net/Documents/mp/bep/bepstat/Ce_stat2.PDF