Positive-definite function
# Positive-definite function

In mathematics, a positive-definite function is, depending on the context, either of two types of function.

## Definition 1

Let $\mathbb {R}$ be the set of real numbers and $\mathbb {C}$ be the set of complex numbers.

A function $f:\mathbb {R} \to \mathbb {C}$ is called positive semi-definite if for any real numbers $x_1,$ …, $x_n$ the n × n matrix

    $A=\left(a_{ij}\right)_{i,j=1}^{n}~,\quad a_{ij}=f(x_{i}-x_{j})$

is a positive semi-definite matrix.

By definition, a positive semi-definite matrix, such as $A$, is Hermitian; therefore f(−x) is the complex conjugate of f(x)).

In particular, it is necessary (but not sufficient) that

    $f(0)\geq 0~,\quad |f(x)|\leq f(0)$

(these inequalities follow from the condition for n = 1, 2.)

A function is negative semi-definite if the inequality is reversed. A function is definite if the weak inequality is replaced with a strong (<, > 0).

### Examples

If $(X,\langle \cdot ,\cdot \rangle )$ is a real inner product space, then $g_{y}\colon X\to \mathbb {C}$, $x\mapsto \exp(i\langle y,x\rangle )$ is positive definite for every $y\in X$: for all $u\in \mathbb {C} ^{n}$ and all $x_{1},\ldots ,x_{n}$ we have

    $u^{*}A^{(g_{y})}u=\sum _{j,k=1}^{n}{\overline {u_{k}}}u_{j}e^{i\langle y,x_{k}-x_{j}\rangle }=\sum _{k=1}^{n}{\overline {u_{k}}}e^{i\langle y,x_{k}\rangle }\sum _{j=1}^{n}u_{j}e^{-i\langle y,x_{j}\rangle }=\left|\sum _{j=1}^{n}{\overline {u_{j}}}e^{i\langle y,x_{j}\rangle }\right|^{2}\geq 0.$

As nonnegative linear combinations of positive definite functions are again positive definite, the cosine function is positive definite as a nonnegative linear combination of the above functions:

    $\cos(x)={\frac {1}{2}}(e^{ix}+e^{-ix})={\frac {1}{2}}(g_{1}+g_{-1}).$

One can create a positive definite function $f\colon X\to \mathbb {C}$ easily from positive definite function $f\colon \mathbb {R} \to \mathbb {C}$ for any vector space $X$: choose a linear function $\phi \colon X\to \mathbb {R}$ and define $f^{*}:=f\circ \phi$. Then

    $u^{*}A^{(f^{*})}u=\sum _{j,k=1}^{n}{\overline {u_{k}}}u_{j}f^{*}(x_{k}-x_{j})=\sum _{j,k=1}^{n}{\overline {u_{k}}}u_{j}f(\phi (x_{k})-\phi (x_{j}))=u^{*}{\tilde {A}}^{(f)}u\geq 0,$

where ${\tilde {A}}^{(f)}={\bigf(\phi (x_{i})-\phi (x_{j}))=f({\tilde {x}}_{i}-{\tilde {x}}_{j}){\big )}_{i,j}$ where ${\tilde {x}}_{k}:=\phi (x_{k})$ are distinct as $\phi$ is linear.

### Bochner's theorem

Positive-definiteness arises naturally in the theory of the Fourier transform; it can be seen directly that to be positive-definite it is sufficient for f to be the Fourier transform of a function g on the real line with g(y) ≥ 0.

The converse result is Bochner's theorem, stating that any continuous positive-definite function on the real line is the Fourier transform of a (positive) measure.

**Applications**

In statistics, and especially Bayesian statistics, the theorem is usually applied to real functions. Typically, n scalar measurements of some scalar value at points in $R^{d}$ are taken and points that are mutually close are required to have measurements that are highly correlated. In practice, one must be careful to ensure that the resulting covariance matrix (an n × n matrix) is always positive-definite. One strategy is to define a correlation matrix A which is then multiplied by a scalar to give a covariance matrix: this must be positive-definite. Bochner's theorem states that if the correlation between two points is dependent only upon the distance between them (via function f), then function f must be positive-definite to ensure the covariance matrix A is positive-definite. See Kriging.

In this context, Fourier terminology is not normally used and instead it is stated that f(x) is the characteristic function of a symmetric probability density function (PDF).

### Generalization

One can define positive-definite functions on any locally compact abelian topological group; Bochner's theorem extends to this context. Positive-definite functions on groups occur naturally in the representation theory of groups on Hilbert spaces (i.e. the theory of unitary representations).

## Definition 2

Alternatively, a function $f:\mathbb {R} ^{n}\to \mathbb {R}$ is called positive-definite on a neighborhood D of the origin if $f(0)=0$ and $f(x)>0$ for every non-zero $x\in D$.

Note that this definition conflicts with definition 1, given above.

In physics, the requirement that $f(0)=0$ is sometimes dropped (see, e.g., Corney and Olsen).

