Generalized mean
From Wikipedia, the free encyclopedia
A generalized mean, also known as power mean or Hölder mean, is an abstraction of the Pythagorean means including arithmetic, geometric and harmonic means.
Contents |
[edit] Definition
If p is a non-zero real number, we can define the generalized mean with exponent p of the positive real numbers as
[edit] Properties
- Like most means, the generalized mean is a homogeneous function of its arguments
. That is, if b is a positive real number, then the generalized mean with exponent p of the numbers
is equal to b times the generalized mean of the numbers
.
- Like the quasi-arithmetic means, the computation of the mean can be split into computations of equal sized sub-blocks.
[edit] Generalized mean inequality
In general, if p < q, then and the two means are equal if and only if
. That follows from the fact that
, that can be proved using Jensen's inequality.
In particular, for , the generalized mean inequality implies the Pythagorean means inequality as well as the inequality of arithmetic and geometric means.
[edit] Special cases
- minimum,
- harmonic mean,
- geometric mean,
- arithmetic mean,
- quadratic mean,
- maximum.
[edit] Generalized f-mean
The power mean could be generalized further to the generalized f-mean:
which covers e.g. the geometric mean without using a limit.
[edit] Applications
[edit] Signal processing
A power mean serves a non-linear moving average which is shifted towards small signal values for small p and emphasizes big signal values for big p. Given an efficient implementation of a moving arithmetic mean called smooth you can implement a moving power mean according to the following Haskell code.
powerSmooth :: Floating a => ([a] -> [a]) -> a -> [a] -> [a] powerSmooth smooth p = map (** recip p) . smooth . map (**p)
- For big p it can serve an envelope detector on a rectified signal.
- For small p it can serve an baseline detector on a mass spectrum.
[edit] See also
- Inequality of arithmetic and geometric means
- arithmetic mean
- geometric mean
- harmonic mean
- Heronian mean
- Lehmer mean - also a mean related to powers
- average
- root mean square