Ifp is a non-zeroreal number, and arepositive real numbers, then thegeneralized mean orpower mean with exponentp of these positive real numbers is[2][3]
(Seep-norm). Forp = 0 we set it equal to the geometric mean (which is the limit of means with exponents approaching zero, as proved below):
Furthermore, for asequence of positive weightswi we define theweighted power mean as[2]and whenp = 0, it is equal to theweighted geometric mean:
The unweighted means correspond to setting allwi = 1.
For the purpose of the proof, we will assume without loss of generality thatand
We can rewrite the definition of using the exponential function as
In the limitp → 0, we can applyL'Hôpital's rule to the argument of the exponential function. We assume that butp ≠ 0, and that the sum ofwi is equal to 1 (without loss in generality);[4] Differentiating the numerator and denominator with respect top, we have
By the continuity of the exponential function, we can substitute back into the above relation to obtainas desired.[2]
Proof of and
Assume (possibly after relabeling and combining terms together) that. Then
Let be a sequence of positive real numbers, then the following properties hold:[1]
.
Each generalized mean always lies between the smallest and largest of thex values.
, where is a permutation operator.
Each generalized mean is a symmetric function of its arguments; permuting the arguments of a generalized mean does not change its value.
.
Like mostmeans, the generalized mean is ahomogeneous function of its argumentsx1, ...,xn. That is, ifb is a positive real number, then the generalized mean with exponentp of the numbers is equal tob times the generalized mean of the numbersx1, ...,xn.
.
Like thequasi-arithmetic means, the computation of the mean can be split into computations of equal sized sub-blocks. This enables use of adivide and conquer algorithm to calculate the means, when desirable.
Suppose an average between power means with exponentsp andq holds:applying this, then:
We raise both sides to the power of −1 (strictly decreasing function in positive reals):
We get the inequality for means with exponents−p and−q, and we can use the same reasoning backwards, thus proving the inequalities to be equivalent, which will be used in some of the later proofs.
We are to prove that for anyp <q the following inequality holds:ifp is negative, andq is positive, the inequality is equivalent to the one proved above:
The proof for positivep andq is as follows: Define the following function:f :R+ →R+.f is a power function, so it does have asecond derivative:which is strictly positive within the domain off, sinceq >p, so we knowf is convex.
Using this, and the Jensen's inequality we get:after raising both side to the power of1/q (an increasing function, since1/q is positive) we get the inequality which was to be proven:
Using the previously shown equivalence we can prove the inequality for negativep andq by replacing them with−q and−p, respectively.
The power mean could be generalized further to thegeneralizedf-mean:
This covers the geometric mean without using a limit withf(x) = log(x). The power mean is obtained forf(x) =xp. Properties of these means are studied in de Carvalho (2016).[3]
A power mean serves a non-linearmoving average which is shifted towards small signal values for smallp and emphasizes big signal values for bigp. Given an efficient implementation of amoving arithmetic mean calledsmooth one can implement a moving power mean according to the followingHaskell code.