Total variation
In mathematics, the total variation identifies several slightly different concepts, related to the (local or global) structure of the codomain of a function or a measure. For a real-valued continuous function f, defined on an interval [a, b] ⊂ R, its total variation on the interval of definition is a measure of the one-dimensional arclength of the curve with parametric equation x ↦ f(x), for x ∈ [a, b]. Functions whose total variation is finite are called functions of bounded variation.
Historical note
The concept of total variation for functions of one real variable was first introduced by Camille Jordan in the paper (Jordan 1881).[1] He used the new concept in order to prove a convergence theorem for Fourier series of discontinuous periodic functions whose variation is bounded. The extension of the concept to functions of more than one variable however is not simple for various reasons.
Definitions
Total variation for functions of one real variable
real-valued (or more generally complex-valued) function [math]\displaystyle{ f }[/math], defined on an interval [math]\displaystyle{ [a , b] \subset \mathbb{R} }[/math] is the quantity
The total variation of a- [math]\displaystyle{ V_a^b(f)=\sup_{\mathcal{P}} \sum_{i=0}^{n_P-1} | f(x_{i+1})-f(x_i) |, }[/math]
where the supremum runs over the set of all partitions [math]\displaystyle{ \mathcal{P} = \left\{P=\{ x_0, \dots , x_{n_P}\} \mid P\text{ is a partition of } [a,b] \right\} }[/math] of the given interval.
Total variation for functions of n > 1 real variables
Let Ω be an open subset of Rn. Given a function f belonging to L1(Ω), the total variation of f in Ω is defined as
- [math]\displaystyle{ V(f,\Omega):=\sup\left\{\int_\Omega f(x) \operatorname{div} \phi(x) \, \mathrm{d}x \colon \phi\in C_c^1(\Omega,\mathbb{R}^n),\ \Vert \phi\Vert_{L^\infty(\Omega)}\le 1\right\}, }[/math]
where
- [math]\displaystyle{ C_c^1(\Omega,\mathbb{R}^n) }[/math] is the set of continuously differentiable vector functions of compact support contained in [math]\displaystyle{ \Omega }[/math],
- [math]\displaystyle{ \Vert\;\Vert_{L^\infty(\Omega)} }[/math] is the essential supremum norm, and
- [math]\displaystyle{ \operatorname{div} }[/math] is the divergence operator.
This definition does not require that the domain [math]\displaystyle{ \Omega \subseteq \mathbb{R}^n }[/math] of the given function be a bounded set.
Total variation in measure theory
Classical total variation definition
Following (Saks 1937), consider a signed measure [math]\displaystyle{ \mu }[/math] on a measurable space [math]\displaystyle{ (X,\Sigma) }[/math]: then it is possible to define two set functions [math]\displaystyle{ \overline{\mathrm{W}}(\mu,\cdot) }[/math] and [math]\displaystyle{ \underline{\mathrm{W}}(\mu,\cdot) }[/math], respectively called upper variation and lower variation, as follows
- [math]\displaystyle{ \overline{\mathrm{W}}(\mu,E)=\sup\left\{\mu(A)\mid A\in\Sigma\text{ and }A\subset E \right\}\qquad\forall E\in\Sigma }[/math]
- [math]\displaystyle{ \underline{\mathrm{W}}(\mu,E)=\inf\left\{\mu(A)\mid A\in\Sigma\text{ and }A\subset E \right\}\qquad\forall E\in\Sigma }[/math]
clearly
- [math]\displaystyle{ \overline{\mathrm{W}}(\mu,E)\geq 0 \geq \underline{\mathrm{W}}(\mu,E)\qquad\forall E\in\Sigma }[/math]
[math]\displaystyle{ \mu }[/math] is the set function
The variation (also called absolute variation) of the signed measure- [math]\displaystyle{ |\mu|(E)=\overline{\mathrm{W}}(\mu,E)+\left|\underline{\mathrm{W}}(\mu,E)\right|\qquad\forall E\in\Sigma }[/math]
and its total variation is defined as the value of this measure on the whole space of definition, i.e.
- [math]\displaystyle{ \|\mu\|=|\mu|(X) }[/math]
Modern definition of total variation norm
(Saks 1937) uses upper and lower variations to prove the Hahn–Jordan decomposition: according to his version of this theorem, the upper and lower variation are respectively a non-negative and a non-positive measure. Using a more modern notation, define
- [math]\displaystyle{ \mu^+(\cdot)=\overline{\mathrm{W}}(\mu,\cdot)\,, }[/math]
- [math]\displaystyle{ \mu^-(\cdot)=-\underline{\mathrm{W}}(\mu,\cdot)\,, }[/math]
Then [math]\displaystyle{ \mu^+ }[/math] and [math]\displaystyle{ \mu^- }[/math] are two non-negative measures such that
- [math]\displaystyle{ \mu=\mu^+-\mu^- }[/math]
- [math]\displaystyle{ |\mu|=\mu^++\mu^- }[/math]
The last measure is sometimes called, by abuse of notation, total variation measure.
Total variation norm of complex measures
If the measure [math]\displaystyle{ \mu }[/math] is complex-valued i.e. is a complex measure, its upper and lower variation cannot be defined and the Hahn–Jordan decomposition theorem can only be applied to its real and imaginary parts. However, it is possible to follow (Rudin 1966) and define the total variation of the complex-valued measure [math]\displaystyle{ \mu }[/math] as follows
[math]\displaystyle{ \mu }[/math] is the set function
The variation of the complex-valued measure- [math]\displaystyle{ |\mu|(E)=\sup_\pi \sum_{A\isin\pi} |\mu(A)|\qquad\forall E\in\Sigma }[/math]
where the supremum is taken over all partitions [math]\displaystyle{ \pi }[/math] of a measurable set [math]\displaystyle{ E }[/math] into a countable number of disjoint measurable subsets.
This definition coincides with the above definition [math]\displaystyle{ |\mu|=\mu^++\mu^- }[/math] for the case of real-valued signed measures.
Total variation norm of vector-valued measures
The variation so defined is a positive measure (see (Rudin 1966)) and coincides with the one defined by 1.3 when [math]\displaystyle{ \mu }[/math] is a signed measure: its total variation is defined as above. This definition works also if [math]\displaystyle{ \mu }[/math] is a vector measure: the variation is then defined by the following formula
- [math]\displaystyle{ |\mu|(E) = \sup_\pi \sum_{A\isin\pi} \|\mu(A)\|\qquad\forall E\in\Sigma }[/math]
where the supremum is as above. This definition is slightly more general than the one given by (Rudin 1966) since it requires only to consider finite partitions of the space [math]\displaystyle{ X }[/math]: this implies that it can be used also to define the total variation on finite-additive measures.
Total variation of probability measures
The total variation of any probability measure is exactly one, therefore it is not interesting as a means of investigating the properties of such measures. However, when μ and ν are probability measures, the total variation distance of probability measures can be defined as [math]\displaystyle{ \| \mu - \nu \| }[/math] where the norm is the total variation norm of signed measures. Using the property that [math]\displaystyle{ (\mu-\nu)(X)=0 }[/math], we eventually arrive at the equivalent definition
- [math]\displaystyle{ \|\mu-\nu\| = |\mu-\nu|(X)=2 \sup\left\{\,\left|\mu(A)-\nu(A)\right| : A\in \Sigma\,\right\} }[/math]
and its values are non-trivial. The factor [math]\displaystyle{ 2 }[/math] above is usually dropped (as is the convention in the article total variation distance of probability measures). Informally, this is the largest possible difference between the probabilities that the two probability distributions can assign to the same event. For a categorical distribution it is possible to write the total variation distance as follows
- [math]\displaystyle{ \delta(\mu,\nu) = \sum_x \left| \mu(x) - \nu(x) \right|\;. }[/math]
It may also be normalized to values in [math]\displaystyle{ [0, 1] }[/math] by halving the previous definition as follows
- [math]\displaystyle{ \delta(\mu,\nu) = \frac{1}{2}\sum_x \left| \mu(x) - \nu(x) \right| }[/math][2]
Basic properties
Total variation of differentiable functions
The total variation of a [math]\displaystyle{ C^1(\overline{\Omega}) }[/math] function [math]\displaystyle{ f }[/math] can be expressed as an integral involving the given function instead of as the supremum of the functionals of definitions 1.1 and 1.2.
The form of the total variation of a differentiable function of one variable
differentiable function [math]\displaystyle{ f }[/math], defined on an interval [math]\displaystyle{ [a , b] \subset \mathbb{R} }[/math], has the following expression if [math]\displaystyle{ f' }[/math] is Riemann integrable
The total variation of a- [math]\displaystyle{ V_a^b(f) = \int _a^b |f'(x)|\mathrm{d}x }[/math]
If [math]\displaystyle{ f }[/math] is differentiable and monotonic, then the above simplifies to
- [math]\displaystyle{ V_a^b(f) = |f(a) - f(b)| }[/math]
For any differentiable function [math]\displaystyle{ f }[/math], we can decompose the domain interval [math]\displaystyle{ [a,b] }[/math], into subintervals [math]\displaystyle{ [a,a_1], [a_1,a_2], \dots, [a_N,b] }[/math] (with [math]\displaystyle{ a\lt a_1\lt a_2\lt \cdots\lt a_N\lt b }[/math]) in which [math]\displaystyle{ f }[/math] is locally monotonic, then the total variation of [math]\displaystyle{ f }[/math] over [math]\displaystyle{ [a,b] }[/math] can be written as the sum of local variations on those subintervals:
- [math]\displaystyle{ \begin{align} V_a^b(f) &= V_a^{a_1}(f) + V_{a_1}^{a_2}(f) + \, \cdots \, +V_{a_N}^b(f)\\[0.3em] &=|f(a)-f(a_1)|+|f(a_1)-f(a_2)|+ \,\cdots \, + |f(a_N)-f(b)| \end{align} }[/math]
The form of the total variation of a differentiable function of several variables
[math]\displaystyle{ C^1(\overline{\Omega}) }[/math] function [math]\displaystyle{ f }[/math] defined on a bounded open set [math]\displaystyle{ \Omega \subseteq \mathbb{R}^n }[/math], with [math]\displaystyle{ \partial \Omega }[/math] of class [math]\displaystyle{ C^1 }[/math], the total variation of [math]\displaystyle{ f }[/math] has the following expression
Given a- [math]\displaystyle{ V(f,\Omega) = \int_\Omega \left|\nabla f(x) \right| \mathrm{d}x }[/math] .
Proof
The first step in the proof is to first prove an equality which follows from the Gauss–Ostrogradsky theorem.
Lemma
Under the conditions of the theorem, the following equality holds:
- [math]\displaystyle{ \int_\Omega f\operatorname{div}\varphi = -\int_\Omega\nabla f\cdot\varphi }[/math]
Proof of the lemma
From the Gauss–Ostrogradsky theorem:
- [math]\displaystyle{ \int_\Omega \operatorname{div}\mathbf R = \int_{\partial\Omega}\mathbf R\cdot \mathbf n }[/math]
by substituting [math]\displaystyle{ \mathbf R:= f\mathbf\varphi }[/math], we have:
- [math]\displaystyle{ \int_\Omega\operatorname{div}\left(f\mathbf\varphi\right) = \int_{\partial\Omega}\left(f\mathbf\varphi\right)\cdot\mathbf n }[/math]
where [math]\displaystyle{ \mathbf\varphi }[/math] is zero on the border of [math]\displaystyle{ \Omega }[/math] by definition:
- [math]\displaystyle{ \int_\Omega\operatorname{div}\left(f\mathbf\varphi\right)=0 }[/math]
- [math]\displaystyle{ \int_\Omega \partial_{x_i} \left(f\mathbf\varphi_i\right)=0 }[/math]
- [math]\displaystyle{ \int_\Omega \mathbf\varphi_i\partial_{x_i} f + f\partial_{x_i}\mathbf\varphi_i=0 }[/math]
- [math]\displaystyle{ \int_\Omega f\partial_{x_i}\mathbf\varphi_i = - \int_\Omega \mathbf\varphi_i\partial_{x_i} f }[/math]
- [math]\displaystyle{ \int_\Omega f\operatorname{div} \mathbf\varphi = - \int_\Omega \mathbf\varphi\cdot\nabla f }[/math]
Proof of the equality
Under the conditions of the theorem, from the lemma we have:
- [math]\displaystyle{ \int_\Omega f\operatorname{div} \mathbf\varphi = - \int_\Omega \mathbf\varphi\cdot\nabla f \leq \left| \int_\Omega \mathbf\varphi\cdot\nabla f \right| \leq \int_\Omega \left|\mathbf\varphi\right|\cdot\left|\nabla f\right| \leq \int_\Omega \left|\nabla f\right| }[/math]
in the last part [math]\displaystyle{ \mathbf\varphi }[/math] could be omitted, because by definition its essential supremum is at most one.
On the other hand, we consider [math]\displaystyle{ \theta_N:=-\mathbb I_{\left[-N,N\right]}\mathbb I_{\{\nabla f\ne 0\}}\frac{\nabla f}{\left|\nabla f\right|} }[/math] and [math]\displaystyle{ \theta^*_N }[/math] which is the up to [math]\displaystyle{ \varepsilon }[/math] approximation of [math]\displaystyle{ \theta_N }[/math] in [math]\displaystyle{ C^1_c }[/math] with the same integral. We can do this since [math]\displaystyle{ C^1_c }[/math] is dense in [math]\displaystyle{ L^1 }[/math]. Now again substituting into the lemma:
- [math]\displaystyle{ \begin{align} &\lim_{N\to\infty}\int_\Omega f\operatorname{div}\theta^*_N \\[4pt] &= \lim_{N\to\infty}\int_{\{\nabla f\ne 0\}}\mathbb I_{\left[-N,N\right]}\nabla f\cdot\frac{\nabla f}{\left|\nabla f\right|} \\[4pt] &= \lim_{N\to\infty}\int_{\left[-N,N\right]\cap{\{\nabla f\ne 0\}}} \nabla f\cdot\frac{\nabla f}{\left|\nabla f\right|} \\[4pt] &= \int_\Omega\left|\nabla f\right| \end{align} }[/math]
This means we have a convergent sequence of [math]\displaystyle{ \int_\Omega f \operatorname{div} \mathbf\varphi }[/math] that tends to [math]\displaystyle{ \int_\Omega\left|\nabla f\right| }[/math] as well as we know that [math]\displaystyle{ \int_\Omega f\operatorname{div}\mathbf\varphi \leq \int_\Omega\left|\nabla f\right| }[/math]. Q.E.D.
It can be seen from the proof that the supremum is attained when
- [math]\displaystyle{ \varphi\to \frac{-\nabla f}{\left|\nabla f\right|}. }[/math]
The function [math]\displaystyle{ f }[/math] is said to be of bounded variation precisely if its total variation is finite.
Total variation of a measure
The total variation is a norm defined on the space of measures of bounded variation. The space of measures on a σ-algebra of sets is a Banach space, called the ca space, relative to this norm. It is contained in the larger Banach space, called the ba space, consisting of finitely additive (as opposed to countably additive) measures, also with the same norm. The distance function associated to the norm gives rise to the total variation distance between two measures μ and ν.
For finite measures on R, the link between the total variation of a measure μ and the total variation of a function, as described above, goes as follows. Given μ, define a function [math]\displaystyle{ \varphi\colon \mathbb{R}\to \mathbb{R} }[/math] by
- [math]\displaystyle{ \varphi(t) = \mu((-\infty,t])~. }[/math]
Then, the total variation of the signed measure μ is equal to the total variation, in the above sense, of the function [math]\displaystyle{ \varphi }[/math]. In general, the total variation of a signed measure can be defined using Jordan's decomposition theorem by
- [math]\displaystyle{ \|\mu\|_{TV} = \mu_+(X) + \mu_-(X)~, }[/math]
for any signed measure μ on a measurable space [math]\displaystyle{ (X,\Sigma) }[/math].
Applications
Total variation can be seen as a non-negative real-valued functional defined on the space of real-valued functions (for the case of functions of one variable) or on the space of integrable functions (for the case of functions of several variables). As a functional, total variation finds applications in several branches of mathematics and engineering, like optimal control, numerical analysis, and calculus of variations, where the solution to a certain problem has to minimize its value. As an example, use of the total variation functional is common in the following two kind of problems
- Numerical analysis of differential equations: it is the science of finding approximate solutions to differential equations. Applications of total variation to these problems are detailed in the article "total variation diminishing"
- Image denoising: in image processing, denoising is a collection of methods used to reduce the noise in an image reconstructed from data obtained by electronic means, for example data transmission or sensing. "Total variation denoising" is the name for the application of total variation to image noise reduction; further details can be found in the papers of (Rudin Osher) and (Caselles Chambolle). A sensible extension of this model to colour images, called Colour TV, can be found in (Blomgren Chan).
See also
- Bounded variation
- p-variation
- Total variation diminishing
- Total variation denoising
- Quadratic variation
- Total variation distance of probability measures
- Kolmogorov–Smirnov test
- Anisotropic diffusion
Notes
- ↑ According to (Golubov Vitushkin).
- ↑ Gibbs, Alison; Francis Edward Su (2002). "On Choosing and Bounding Probability Metrics". pp. 7. https://www.math.hmc.edu/~su/papers.dir/metrics.pdf.
Historical references
- Arzelà, Cesare (7 May 1905), "Sulle funzioni di due variabili a variazione limitata (On functions of two variables of bounded variation)" (in it), Rendiconto delle Sessioni della Reale Accademia delle Scienze dell'Istituto di Bologna, Nuova serie IX (4): 100–107, https://archive.org/details/rendicontodelle04bologoog.
- Hazewinkel, Michiel, ed. (2001), "Arzelà variation", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=a/a013470.
- Hazewinkel, Michiel, ed. (2001), "Fréchet variation", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=f/f041400.
- Hazewinkel, Michiel, ed. (2001), "Hardy variation", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=h/h046400.
- Hazewinkel, Michiel, ed. (2001), "Pierpont variation", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/p072720.
- Hazewinkel, Michiel, ed. (2001), "Vitali variation", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=h/h046400.
- Hazewinkel, Michiel, ed. (2001), "Tonelli plane variation", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=t/t092990.
- Hazewinkel, Michiel, ed. (2001), "Variation of a function", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=V/v096110
- Jordan, Camille (1881), "Sur la série de Fourier" (in fr), Comptes rendus hebdomadaires des séances de l'Académie des sciences 92: 228–230, http://gallica.bnf.fr/ark:/12148/bpt6k7351t/f227 (available at Gallica). This is, according to Boris Golubov, the first paper on functions of bounded variation.
- Hahn, Hans (1921) (in de), Theorie der reellen Funktionen, Berlin: Springer Verlag, pp. VII+600, https://archive.org/details/theoriederreelle01hahnuoft.
- Vitali, Giuseppe (1908), "Sui gruppi di punti e sulle funzioni di variabili reali (On groups of points and functions of real variables)" (in it), Atti dell'Accademia delle Scienze di Torino 43: 75–92, https://archive.org/details/attidellarealeac43real. The paper containing the first proof of Vitali covering theorem.
References
- Adams, C. Raymond; Clarkson, James A. (1933), "On definitions of bounded variation for functions of two variables", Transactions of the American Mathematical Society 35 (4): 824–854, doi:10.1090/S0002-9947-1933-1501718-2.
- Cesari, Lamberto (1936), "Sulle funzioni a variazione limitata (On the functions of bounded variation)" (in it), Annali della Scuola Normale Superiore, II 5 (3–4): 299–313, http://www.numdam.org/item?id=ASNSP_1936_2_5_3-4_299_0. Available at Numdam.
- Leoni, Giovanni (2017), A First Course in Sobolev Spaces: Second Edition, Graduate Studies in Mathematics, American Mathematical Society, pp. xxii+734, ISBN 978-1-4704-2921-8.
- Saks, Stanisław (1937). Theory of the Integral. Monografie Matematyczne. 7 (2nd ed.). Warszawa–Lwów: G.E. Stechert & Co.. pp. VI+347. http://matwbn.icm.edu.pl/kstresc.php?tom=7&wyd=10&jez=pl.. (available at the Polish Virtual Library of Science). English translation from the original French by Laurence Chisholm Young, with two additional notes by Stefan Banach.
- Rudin, Walter (1966), Real and Complex Analysis, McGraw-Hill Series in Higher Mathematics (1st ed.), New York: McGraw-Hill, pp. xi+412.
External links
One variable
- "Total variation" on PlanetMath.
One and more variables
Measure theory
- Rowland, Todd. "Total Variation". http://mathworld.wolfram.com/TotalVariation.html..
- Jordan decomposition at PlanetMath.org..
- Jordan decomposition at Encyclopedia of Mathematics
Applications
- Caselles, Vicent; Chambolle, Antonin; Novaga, Matteo (2007), The discontinuity set of solutions of the TV denoising problem and some extensions, SIAM, Multiscale Modeling and Simulation, vol. 6 n. 3, http://cvgmt.sns.it/papers/caschanov07/ (a work dealing with total variation application in denoising problems for image processing).
- Rudin, Leonid I.; Osher, Stanley; Fatemi, Emad (1992), "Nonlinear total variation based noise removal algorithms", Physica D: Nonlinear Phenomena (Physica D: Nonlinear Phenomena 60.1: 259-268) 60 (1–4): 259–268, doi:10.1016/0167-2789(92)90242-F, Bibcode: 1992PhyD...60..259R.
- Blomgren, Peter; Chan, Tony F. (1998), "Color TV: total variation methods for restoration of vector-valued images", IEEE Transactions on Image Processing (Image Processing, IEEE Transactions on, vol. 7, no. 3: 304-309) 7 (3): 304, doi:10.1109/83.661180, PMID 18276250, Bibcode: 1998ITIP....7..304B.
- Tony F. Chan and Jackie (Jianhong) Shen (2005), Image Processing and Analysis - Variational, PDE, Wavelet, and Stochastic Methods, SIAM, ISBN 0-89871-589-X (with in-depth coverage and extensive applications of Total Variations in modern image processing, as started by Rudin, Osher, and Fatemi).
Original source: https://en.wikipedia.org/wiki/Total variation.
Read more |