In mathematics, an indicator function or a characteristic function of a subset of a set is a function that maps elements of the subset to one, and all other elements to zero. That is, if is a subset of some set, then
1A(x)=1
x\inA,
1A(x)=0
1A
IA,
\chiA.
The indicator function of is the Iverson bracket of the property of belonging to ; that is,
For example, the Dirichlet function is the indicator function of the rational numbers as a subset of the real numbers.
The indicator function of a subset of a set is a function
defined as
The Iverson bracket provides the equivalent notation,
[x\inA]
1A(x).
The function
1A
The notation
\chiA
A related concept in statistics is that of a dummy variable. (This must not be confused with "dummy variables" as that term is usually used in mathematics, also called a bound variable.)
The term "characteristic function" has an unrelated meaning in classic probability theory. For this reason, traditional probabilists use the term indicator function for the function defined here almost exclusively, while mathematicians in other fields are more likely to use the term characteristic function to describe the function that indicates membership in a set.
In fuzzy logic and modern many-valued logic, predicates are the characteristic functions of a probability distribution. That is, the strict true/false valuation of the predicate is replaced by a quantity interpreted as the degree of truth.
\{0,1\}
This mapping is surjective only when is a non-empty proper subset of . If
A\equivX,
1A=1.
A\equiv\emptyset
1A=0.
If
A
B
X,
and the indicator function of the complement of
A
AC
More generally, suppose
A1,...c,An
x\inX:
is clearly a product of s and s. This product has the value 1 at precisely those
x\inX
Ak
Expanding the product on the left hand side,
where
|F|
As suggested by the previous example, the indicator function is a useful notational device in combinatorics. The notation is used in other places as well, for instance in probability theory: if is a probability space with probability measure
\operatorname{P}
1A
This identity is used in a simple proof of Markov's inequality.
In many cases, such as order theory, the inverse of the indicator function may be defined. This is commonly called the generalized Möbius function, as a generalization of the inverse of the indicator function in elementary number theory, the Möbius function. (See paragraph below about the use of the inverse in classical recursion theory.)
style(\Omega,lF,\operatorname{P})
A\inlF,
1A\colon\Omega → R
1A(\omega)=1
\omega\inA,
1A(\omega)=0.
\operatorname{E}(1A(\omega))=\operatorname{P}(A)
\operatorname{Var}(1A(\omega))=\operatorname{P}(A)(1-\operatorname{P}(A))
\operatorname{Cov}(1A(\omega),1B(\omega))=\operatorname{P}(A\capB)-\operatorname{P}(A)\operatorname{P}(B)
Kurt Gödel described the representing function in his 1934 paper "On undecidable propositions of formal mathematical systems" (the "¬" indicates logical inversion, i.e. "NOT"):[1]
Kleene offers up the same definition in the context of the primitive recursive functions as a function of a predicate takes on values if the predicate is true and if the predicate is false.[2]
For example, because the product of characteristic functions
\phi1*\phi2* … *\phin=0
\phi1=0
\phi2=0
\phin=0
In classical mathematics, characteristic functions of sets only take values (members) or (non-members). In fuzzy set theory, characteristic functions are generalized to take value in the real unit interval, or more generally, in some algebra or structure (usually required to be at least a poset or lattice). Such generalized characteristic functions are more usually called membership functions, and the corresponding "sets" are called fuzzy sets. Fuzzy sets model the gradual change in the membership degree seen in many real-world predicates like "tall", "warm", etc.
See also: Laplacian of the indicator. In general, the indicator function of a set is not smooth; it is continuous if and only if its support is a connected component. In the algebraic geometry of finite fields, however, every affine variety admits a (Zariski) continuous indicator function.[3] Given a finite set of functions
f\alpha\inFq[x1,\ldots,xn]
V=\left\{x\in
n | |
F | |
q |
:f\alpha(x)=0\right\}
V
x\inV
P(x)=1
f\alpha
f\alpha(x) ≠ 0
q-1 | |
f | |
\alpha(x) |
=1
P(x)=0
Although indicator functions are not smooth, they admit weak derivatives. For example, consider Heaviside step function The distributional derivative of the Heaviside step function is equal to the Dirac delta function, i.e. and similarly the distributional derivative of is
Thus the derivative of the Heaviside step function can be seen as the inward normal derivative at the boundary of the domain given by the positive half-line. In higher dimensions, the derivative naturally generalises to the inward normal derivative, while the Heaviside step function naturally generalises to the indicator function of some domain . The surface of will be denoted by . Proceeding, it can be derived that the inward normal derivative of the indicator gives rise to a 'surface delta function', which can be indicated by
\deltaS(x)
By setting the function equal to one, it follows that the inward normal derivative of the indicator integrates to the numerical value of the surface area .