fbpx
Wikipedia

Generalized mean

In mathematics, generalized means (or power mean or Hölder mean from Otto Hölder)[1] are a family of functions for aggregating sets of numbers. These include as special cases the Pythagorean means (arithmetic, geometric, and harmonic means).

Plot of several generalized means .

Definition edit

If p is a non-zero real number, and   are positive real numbers, then the generalized mean or power mean with exponent p of these positive real numbers is[2][3]

 

(See p-norm). For p = 0 we set it equal to the geometric mean (which is the limit of means with exponents approaching zero, as proved below):

 

Furthermore, for a sequence of positive weights wi we define the weighted power mean as[2]

 
and when p = 0, it is equal to the weighted geometric mean:
 

The unweighted means correspond to setting all wi = 1/n.

Special cases edit

A few particular values of p yield special cases with their own names:[4]

minimum
 
 
A visual depiction of some of the specified cases for n = 2 with a = x1 = M and b = x2 = M−∞:
  harmonic mean, H = M−1(a, b),
  geometric mean, G = M0(a, b)
  arithmetic mean, A = M1(a, b)
  quadratic mean, Q = M2(a, b)
harmonic mean
 
geometric mean  
arithmetic mean
 
root mean square
or quadratic mean[5][6]
 
cubic mean
 
maximum
 
Proof of   (geometric mean)

For the purpose of the proof, we will assume without loss of generality that

 
and
 

We can rewrite the definition of   using the exponential function as

 

In the limit p → 0, we can apply L'Hôpital's rule to the argument of the exponential function. We assume that   but p ≠ 0, and that the sum of wi is equal to 1 (without loss in generality);[7] Differentiating the numerator and denominator with respect to p, we have

 

By the continuity of the exponential function, we can substitute back into the above relation to obtain

 
as desired.[2]
Proof of   and  

Assume (possibly after relabeling and combining terms together) that  . Then

 

The formula for   follows from

 

Properties edit

Let   be a sequence of positive real numbers, then the following properties hold:[1]

  1.  .
    Each generalized mean always lies between the smallest and largest of the x values.
  2.  , 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.
  3.  .
    Like most means, the generalized mean is a homogeneous function of its arguments x1, ..., xn. 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 x1, ..., xn.
  4.  .
    Like the quasi-arithmetic means, the computation of the mean can be split into computations of equal sized sub-blocks. This enables use of a divide and conquer algorithm to calculate the means, when desirable.

Generalized mean inequality edit

 
Geometric proof without words that max (a,b) > root mean square (RMS) or quadratic mean (QM) > arithmetic mean (AM) > geometric mean (GM) > harmonic mean (HM) > min (a,b) of two distinct positive numbers a and b [note 1]

In general, if p < q, then

 
and the two means are equal if and only if x1 = x2 = ... = xn.

The inequality is true for real values of p and q, as well as positive and negative infinity values.

It follows from the fact that, for all real p,

 
which can be proved using Jensen's inequality.

In particular, for p in {−1, 0, 1}, the generalized mean inequality implies the Pythagorean means inequality as well as the inequality of arithmetic and geometric means.

Proof of the weighted inequality edit

We will prove the weighted power mean inequality. For the purpose of the proof we will assume the following without loss of generality:

 

The proof for unweighted power means can be easily obtained by substituting wi = 1/n.

Equivalence of inequalities between means of opposite signs edit

Suppose an average between power means with exponents p and q 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.

Geometric mean edit

For any q > 0 and non-negative weights summing to 1, the following inequality holds:

 

The proof follows from Jensen's inequality, making use of the fact the logarithm is concave:

 

By applying the exponential function to both sides and observing that as a strictly increasing function it preserves the sign of the inequality, we get

 

Taking q-th powers of the xi yields

 

Thus, we are done for the inequality with positive q; the case for negatives is identical but for the swapped signs in the last step:

 

Of course, taking each side to the power of a negative number -1/q swaps the direction of the inequality.

 

Inequality between any two power means edit

We are to prove that for any p < q the following inequality holds:

 
if p is negative, and q is positive, the inequality is equivalent to the one proved above:
 

The proof for positive p and q is as follows: Define the following function: f : R+R+  . f is a power function, so it does have a second derivative:

 
which is strictly positive within the domain of f, since q > p, so we know f is convex.

Using this, and the Jensen's inequality we get:

 
after raising both side to the power of 1/q (an increasing function, since 1/q is positive) we get the inequality which was to be proven:
 

Using the previously shown equivalence we can prove the inequality for negative p and q by replacing them with −q and −p, respectively.

Generalized f-mean edit

The power mean could be generalized further to the generalized f-mean:

 

This covers the geometric mean without using a limit with f(x) = log(x). The power mean is obtained for f(x) = xp. Properties of these means are studied in de Carvalho (2016).[3]

Applications edit

Signal processing edit

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 one 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) 

See also edit

Notes edit

  1. ^ If AC = a and BC = b. OC = AM of a and b, and radius r = QO = OG.
    Using Pythagoras' theorem, QC² = QO² + OC² ∴ QC = √QO² + OC² = QM.
    Using Pythagoras' theorem, OC² = OG² + GC² ∴ GC = √OC² − OG² = GM.
    Using similar triangles, HC/GC = GC/OC ∴ HC = GC²/OC = HM.

References edit

  1. ^ a b Sýkora, Stanislav (2009). "Mathematical means and averages: basic properties". Stan's Library. III. Castano Primo, Italy: Stan's Library. doi:10.3247/SL3Math09.001.
  2. ^ a b c P. S. Bullen: Handbook of Means and Their Inequalities. Dordrecht, Netherlands: Kluwer, 2003, pp. 175-177
  3. ^ a b de Carvalho, Miguel (2016). "Mean, what do you Mean?". The American Statistician. 70 (3): 764‒776. doi:10.1080/00031305.2016.1148632. hdl:20.500.11820/fd7a8991-69a4-4fe5-876f-abcd2957a88c.
  4. ^ Weisstein, Eric W. "Power Mean". MathWorld. (retrieved 2019-08-17)
  5. ^ Thompson, Sylvanus P. (1965). Calculus Made Easy. Macmillan International Higher Education. p. 185. ISBN 9781349004874. Retrieved 5 July 2020.
  6. ^ Jones, Alan R. (2018). Probability, Statistics and Other Frightening Stuff. Routledge. p. 48. ISBN 9781351661386. Retrieved 5 July 2020.
  7. ^ Handbook of Means and Their Inequalities (Mathematics and Its Applications).

Further reading edit

  • Bullen, P. S. (2003). "Chapter III - The Power Means". Handbook of Means and Their Inequalities. Dordrecht, Netherlands: Kluwer. pp. 175–265.

External links edit

  • Power mean at MathWorld
  • Examples of Generalized Mean
  • A proof of the Generalized Mean on PlanetMath

generalized, mean, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, june, 20. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Generalized mean news newspapers books scholar JSTOR June 2020 Learn how and when to remove this message In mathematics generalized means or power mean or Holder mean from Otto Holder 1 are a family of functions for aggregating sets of numbers These include as special cases the Pythagorean means arithmetic geometric and harmonic means Plot of several generalized means M p 1 x displaystyle M p 1 x Contents 1 Definition 2 Special cases 3 Properties 3 1 Generalized mean inequality 4 Proof of the weighted inequality 4 1 Equivalence of inequalities between means of opposite signs 4 2 Geometric mean 4 3 Inequality between any two power means 5 Generalized f mean 6 Applications 6 1 Signal processing 7 See also 8 Notes 9 References 10 Further reading 11 External linksDefinition editIf p is a non zero real number and x 1 x n displaystyle x 1 dots x n nbsp are positive real numbers then the generalized mean or power mean with exponent p of these positive real numbers is 2 3 M p x 1 x n 1 n i 1 n x i p 1 p displaystyle M p x 1 dots x n left frac 1 n sum i 1 n x i p right 1 p nbsp See p norm For p 0 we set it equal to the geometric mean which is the limit of means with exponents approaching zero as proved below M 0 x 1 x n i 1 n x i 1 n displaystyle M 0 x 1 dots x n left prod i 1 n x i right 1 n nbsp Furthermore for a sequence of positive weights wi we define the weighted power mean as 2 M p x 1 x n i 1 n w i x i p i 1 n w i 1 p displaystyle M p x 1 dots x n left frac sum i 1 n w i x i p sum i 1 n w i right 1 p nbsp and when p 0 it is equal to the weighted geometric mean M 0 x 1 x n i 1 n x i w i 1 i 1 n w i displaystyle M 0 x 1 dots x n left prod i 1 n x i w i right 1 sum i 1 n w i nbsp The unweighted means correspond to setting all wi 1 n Special cases editA few particular values of p yield special cases with their own names 4 minimum M x 1 x n lim p M p x 1 x n min x 1 x n displaystyle M infty x 1 dots x n lim p to infty M p x 1 dots x n min x 1 dots x n nbsp nbsp A visual depiction of some of the specified cases for n 2 with a x1 M and b x2 M harmonic mean H M 1 a b geometric mean G M0 a b arithmetic mean A M1 a b quadratic mean Q M2 a b harmonic mean M 1 x 1 x n n 1 x 1 1 x n displaystyle M 1 x 1 dots x n frac n frac 1 x 1 dots frac 1 x n nbsp geometric mean M 0 x 1 x n lim p 0 M p x 1 x n x 1 x n n displaystyle M 0 x 1 dots x n lim p to 0 M p x 1 dots x n sqrt n x 1 cdot dots cdot x n nbsp arithmetic mean M 1 x 1 x n x 1 x n n displaystyle M 1 x 1 dots x n frac x 1 dots x n n nbsp root mean square or quadratic mean 5 6 M 2 x 1 x n x 1 2 x n 2 n displaystyle M 2 x 1 dots x n sqrt frac x 1 2 dots x n 2 n nbsp cubic mean M 3 x 1 x n x 1 3 x n 3 n 3 displaystyle M 3 x 1 dots x n sqrt 3 frac x 1 3 dots x n 3 n nbsp maximum M x 1 x n lim p M p x 1 x n max x 1 x n displaystyle M infty x 1 dots x n lim p to infty M p x 1 dots x n max x 1 dots x n nbsp Proof of lim p 0 M p M 0 textstyle lim p to 0 M p M 0 nbsp geometric mean For the purpose of the proof we will assume without loss of generality thatw i 0 1 displaystyle w i in 0 1 nbsp and i 1 n w i 1 displaystyle sum i 1 n w i 1 nbsp We can rewrite the definition of M p displaystyle M p nbsp using the exponential function asM p x 1 x n exp ln i 1 n w i x i p 1 p exp ln i 1 n w i x i p p displaystyle M p x 1 dots x n exp left ln left left sum i 1 n w i x i p right 1 p right right exp left frac ln left sum i 1 n w i x i p right p right nbsp In the limit p 0 we can apply L Hopital s rule to the argument of the exponential function We assume that p R displaystyle p in mathbb R nbsp but p 0 and that the sum of wi is equal to 1 without loss in generality 7 Differentiating the numerator and denominator with respect to p we havelim p 0 ln i 1 n w i x i p p lim p 0 i 1 n w i x i p ln x i j 1 n w j x j p 1 lim p 0 i 1 n w i x i p ln x i j 1 n w j x j p i 1 n w i ln x i j 1 n w j i 1 n w i ln x i ln i 1 n x i w i displaystyle begin aligned lim p to 0 frac ln left sum i 1 n w i x i p right p amp lim p to 0 frac frac sum i 1 n w i x i p ln x i sum j 1 n w j x j p 1 amp lim p to 0 frac sum i 1 n w i x i p ln x i sum j 1 n w j x j p amp frac sum i 1 n w i ln x i sum j 1 n w j amp sum i 1 n w i ln x i amp ln left prod i 1 n x i w i right end aligned nbsp By the continuity of the exponential function we can substitute back into the above relation to obtainlim p 0 M p x 1 x n exp ln i 1 n x i w i i 1 n x i w i M 0 x 1 x n displaystyle lim p to 0 M p x 1 dots x n exp left ln left prod i 1 n x i w i right right prod i 1 n x i w i M 0 x 1 dots x n nbsp as desired 2 Proof of lim p M p M textstyle lim p to infty M p M infty nbsp and lim p M p M textstyle lim p to infty M p M infty nbsp Assume possibly after relabeling and combining terms together that x 1 x n displaystyle x 1 geq dots geq x n nbsp Thenlim p M p x 1 x n lim p i 1 n w i x i p 1 p x 1 lim p i 1 n w i x i x 1 p 1 p x 1 M x 1 x n displaystyle begin aligned lim p to infty M p x 1 dots x n amp lim p to infty left sum i 1 n w i x i p right 1 p amp x 1 lim p to infty left sum i 1 n w i left frac x i x 1 right p right 1 p amp x 1 M infty x 1 dots x n end aligned nbsp The formula for M displaystyle M infty nbsp follows fromM x 1 x n 1 M 1 x 1 1 x n x n displaystyle M infty x 1 dots x n frac 1 M infty 1 x 1 dots 1 x n x n nbsp Properties editLet x 1 x n displaystyle x 1 dots x n nbsp be a sequence of positive real numbers then the following properties hold 1 min x 1 x n M p x 1 x n max x 1 x n displaystyle min x 1 dots x n leq M p x 1 dots x n leq max x 1 dots x n nbsp Each generalized mean always lies between the smallest and largest of the x values M p x 1 x n M p P x 1 x n displaystyle M p x 1 dots x n M p P x 1 dots x n nbsp where P displaystyle P nbsp 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 M p b x 1 b x n b M p x 1 x n displaystyle M p bx 1 dots bx n b cdot M p x 1 dots x n nbsp Like most means the generalized mean is a homogeneous function of its arguments x1 xn That is if b is a positive real number then the generalized mean with exponent p of the numbers b x 1 b x n displaystyle b cdot x 1 dots b cdot x n nbsp is equal to b times the generalized mean of the numbers x1 xn M p x 1 x n k M p M p x 1 x k M p x k 1 x 2 k M p x n 1 k 1 x n k displaystyle M p x 1 dots x n cdot k M p left M p x 1 dots x k M p x k 1 dots x 2 cdot k dots M p x n 1 cdot k 1 dots x n cdot k right nbsp Like the quasi arithmetic means the computation of the mean can be split into computations of equal sized sub blocks This enables use of a divide and conquer algorithm to calculate the means when desirable Generalized mean inequality edit nbsp Geometric proof without words that max a b gt root mean square RMS or quadratic mean QM gt arithmetic mean AM gt geometric mean GM gt harmonic mean HM gt min a b of two distinct positive numbers a and b note 1 In general if p lt q thenM p x 1 x n M q x 1 x n displaystyle M p x 1 dots x n leq M q x 1 dots x n nbsp and the two means are equal if and only if x1 x2 xn The inequality is true for real values of p and q as well as positive and negative infinity values It follows from the fact that for all real p p M p x 1 x n 0 displaystyle frac partial partial p M p x 1 dots x n geq 0 nbsp which can be proved using Jensen s inequality In particular for p in 1 0 1 the generalized mean inequality implies the Pythagorean means inequality as well as the inequality of arithmetic and geometric means Proof of the weighted inequality editWe will prove the weighted power mean inequality For the purpose of the proof we will assume the following without loss of generality w i 0 1 i 1 n w i 1 displaystyle begin aligned w i in 0 1 sum i 1 n w i 1 end aligned nbsp The proof for unweighted power means can be easily obtained by substituting wi 1 n Equivalence of inequalities between means of opposite signs edit Suppose an average between power means with exponents p and q holds i 1 n w i x i p 1 p i 1 n w i x i q 1 q displaystyle left sum i 1 n w i x i p right 1 p geq left sum i 1 n w i x i q right 1 q nbsp applying this then i 1 n w i x i p 1 p i 1 n w i x i q 1 q displaystyle left sum i 1 n frac w i x i p right 1 p geq left sum i 1 n frac w i x i q right 1 q nbsp We raise both sides to the power of 1 strictly decreasing function in positive reals i 1 n w i x i p 1 p 1 i 1 n w i 1 x i p 1 p 1 i 1 n w i 1 x i q 1 q i 1 n w i x i q 1 q displaystyle left sum i 1 n w i x i p right 1 p left frac 1 sum i 1 n w i frac 1 x i p right 1 p leq left frac 1 sum i 1 n w i frac 1 x i q right 1 q left sum i 1 n w i x i q right 1 q nbsp 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 Geometric mean edit For any q gt 0 and non negative weights summing to 1 the following inequality holds i 1 n w i x i q 1 q i 1 n x i w i i 1 n w i x i q 1 q displaystyle left sum i 1 n w i x i q right 1 q leq prod i 1 n x i w i leq left sum i 1 n w i x i q right 1 q nbsp The proof follows from Jensen s inequality making use of the fact the logarithm is concave log i 1 n x i w i i 1 n w i log x i log i 1 n w i x i displaystyle log prod i 1 n x i w i sum i 1 n w i log x i leq log sum i 1 n w i x i nbsp By applying the exponential function to both sides and observing that as a strictly increasing function it preserves the sign of the inequality we get i 1 n x i w i i 1 n w i x i displaystyle prod i 1 n x i w i leq sum i 1 n w i x i nbsp Taking q th powers of the xi yields i 1 n x i q w i i 1 n w i x i q i 1 n x i w i i 1 n w i x i q 1 q displaystyle begin aligned amp prod i 1 n x i q cdot w i leq sum i 1 n w i x i q amp prod i 1 n x i w i leq left sum i 1 n w i x i q right 1 q end aligned nbsp Thus we are done for the inequality with positive q the case for negatives is identical but for the swapped signs in the last step i 1 n x i q w i i 1 n w i x i q displaystyle prod i 1 n x i q cdot w i leq sum i 1 n w i x i q nbsp Of course taking each side to the power of a negative number 1 q swaps the direction of the inequality i 1 n x i w i i 1 n w i x i q 1 q displaystyle prod i 1 n x i w i geq left sum i 1 n w i x i q right 1 q nbsp Inequality between any two power means edit We are to prove that for any p lt q the following inequality holds i 1 n w i x i p 1 p i 1 n w i x i q 1 q displaystyle left sum i 1 n w i x i p right 1 p leq left sum i 1 n w i x i q right 1 q nbsp if p is negative and q is positive the inequality is equivalent to the one proved above i 1 n w i x i p 1 p i 1 n x i w i i 1 n w i x i q 1 q displaystyle left sum i 1 n w i x i p right 1 p leq prod i 1 n x i w i leq left sum i 1 n w i x i q right 1 q nbsp The proof for positive p and q is as follows Define the following function f R R f x x q p displaystyle f x x frac q p nbsp f is a power function so it does have a second derivative f x q p q p 1 x q p 2 displaystyle f x left frac q p right left frac q p 1 right x frac q p 2 nbsp which is strictly positive within the domain of f since q gt p so we know f is convex Using this and the Jensen s inequality we get f i 1 n w i x i p i 1 n w i f x i p i 1 n w i x i p q p i 1 n w i x i q displaystyle begin aligned f left sum i 1 n w i x i p right amp leq sum i 1 n w i f x i p 3pt left sum i 1 n w i x i p right q p amp leq sum i 1 n w i x i q end aligned nbsp after raising both side to the power of 1 q an increasing function since 1 q is positive we get the inequality which was to be proven i 1 n w i x i p 1 p i 1 n w i x i q 1 q displaystyle left sum i 1 n w i x i p right 1 p leq left sum i 1 n w i x i q right 1 q nbsp Using the previously shown equivalence we can prove the inequality for negative p and q by replacing them with q and p respectively Generalized f mean editMain article Generalized f mean The power mean could be generalized further to the generalized f mean M f x 1 x n f 1 1 n i 1 n f x i displaystyle M f x 1 dots x n f 1 left frac 1 n cdot sum i 1 n f x i right nbsp This covers the geometric mean without using a limit with f x log x The power mean is obtained for f x xp Properties of these means are studied in de Carvalho 2016 3 Applications editSignal processing edit 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 one can implement a moving power mean according to the following Haskell code powerSmooth Floating a gt a gt a gt a gt a gt a powerSmooth smooth p map recip p smooth map p For big p it can serve as an envelope detector on a rectified signal For small p it can serve as a baseline detector on a mass spectrum See also editArithmetic geometric mean Average Heronian mean Inequality of arithmetic and geometric means Lehmer mean also a mean related to powers Minkowski distance Quasi arithmetic mean another name for the generalized f mean mentioned above Root mean squareNotes edit If AC a and BC b OC AM of a and b and radius r QO OG Using Pythagoras theorem QC QO OC QC QO OC QM Using Pythagoras theorem OC OG GC GC OC OG GM Using similar triangles HC GC GC OC HC GC OC HM References edit a b Sykora Stanislav 2009 Mathematical means and averages basic properties Stan s Library III Castano Primo Italy Stan s Library doi 10 3247 SL3Math09 001 a b c P S Bullen Handbook of Means and Their Inequalities Dordrecht Netherlands Kluwer 2003 pp 175 177 a b de Carvalho Miguel 2016 Mean what do you Mean The American Statistician 70 3 764 776 doi 10 1080 00031305 2016 1148632 hdl 20 500 11820 fd7a8991 69a4 4fe5 876f abcd2957a88c Weisstein Eric W Power Mean MathWorld retrieved 2019 08 17 Thompson Sylvanus P 1965 Calculus Made Easy Macmillan International Higher Education p 185 ISBN 9781349004874 Retrieved 5 July 2020 Jones Alan R 2018 Probability Statistics and Other Frightening Stuff Routledge p 48 ISBN 9781351661386 Retrieved 5 July 2020 Handbook of Means and Their Inequalities Mathematics and Its Applications Further reading editBullen P S 2003 Chapter III The Power Means Handbook of Means and Their Inequalities Dordrecht Netherlands Kluwer pp 175 265 External links editPower mean at MathWorld Examples of Generalized Mean A proof of the Generalized Mean on PlanetMath Retrieved from https en wikipedia org w index php title Generalized mean amp oldid 1223150819, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.