A three-dimensional plot of an indicator function, shown over a square two-dimensional domain (setX): the "raised" portion overlays those two-dimensional points which are members of the "indicated" subset (A).
Inmathematics, anindicator function or acharacteristic function of asubset of aset is afunction that maps elements of the subset to one, and all other elements to zero. That is, ifA is a subset of some setX, then the indicator function ofA is the function defined by if and otherwise. Other common notations are𝟙A and[a]
The indicator function ofA is theIverson bracket of the property of belonging toA; that is,
A related concept instatistics is that of adummy variable. (This must not be confused with "dummy variables" as that term is usually used in mathematics, also called abound variable.)
The term "characteristic function" has an unrelated meaning inclassic probability theory. For this reason,traditional probabilists use the termindicator function for the function defined here almost exclusively, while mathematicians in other fields are more likely to use the termcharacteristic function to describe the function that indicates membership in a set.
In many cases, such asorder theory, the inverse of the indicator function may be defined. This is commonly called thegeneralized Möbius function, as a generalization of the inverse of the indicator function in elementarynumber theory, theMöbius function. (See paragraph below about the use of the inverse in classical recursion theory.)
Kurt Gödel described therepresenting function in his 1934 paper "On undecidable propositions of formal mathematical systems" (the symbol "¬" indicates logical inversion, i.e. "NOT"):[1]: 42
There shall correspond to each class or relationR a representing function if and if
Kleene offers up the same definition in the context of theprimitive recursive functions as a functionφ of a predicateP takes on values0 if the predicate is true and1 if the predicate is false.[2]
For example, because the product of characteristic functions whenever any one of the functions equals0, it plays the role of logical OR: IF OR OR ... OR THEN their product is0. What appears to the modern reader as the representing function's logical inversion, i.e. the representing function is0 when the functionR is "true" or satisfied", plays a useful role in Kleene's definition of the logical functions OR, AND, and IMPLY,[2]: 228 the bounded-[2]: 228 and unbounded-[2]: 279 ff mu operators and the CASE function.[2]: 229
In classical mathematics, characteristic functions of sets only take values1 (members) or0 (non-members). Infuzzy set theory, characteristic functions are generalized to take value in the real unit interval[0, 1], or more generally, in somealgebra orstructure (usually required to be at least aposet orlattice). Such generalized characteristic functions are more usually calledmembership functions, and the corresponding "sets" are calledfuzzy sets. Fuzzy sets model the gradual change in the membershipdegree seen in many real-worldpredicates like "tall", "warm", etc.
In general, the indicator function of a set is not smooth; it is continuous if and only if itssupport is aconnected component. In thealgebraic geometry offinite fields, however, everyaffine variety admits a (Zariski) continuous indicator function.[3] Given afinite set of functions let be their vanishing locus. Then, the function acts as an indicator function for If then otherwise, for some we have which implies that hence
Thus the derivative of the Heaviside step function can be seen as theinward normal derivative at theboundary 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 domainD. The surface ofD will be denoted byS. Proceeding, it can be derived that the inwardnormal derivative of the indicator gives rise to asurface delta function, which can be indicated by:wheren is the outwardnormal of the surfaceS. This 'surface delta function' has the following property:[4]
^abTheGreek letterχ appears because it is the initial letter of the Greek wordχαρακτήρ, which is the ultimate origin of the wordcharacteristic.
^The set of all indicator functions onX can be identified with the set operator thepower set ofX. Consequently, both sets are denoted by the conventionalabuse of notation as in analogy to the relation for the count of elements in the powerset and the original set. This is a special case of the notation for the set of all functions such that
^Davis, Martin, ed. (1965).The Undecidable. New York, NY: Raven Press Books. pp. 41–74.
^abcdeKleene, Stephen (1971) [1952].Introduction to Metamathematics (Sixth reprint, with corrections ed.). Netherlands: Wolters-Noordhoff Publishing and North Holland Publishing Company. p. 227.
Davis, Martin, ed. (1965).The Undecidable. New York, NY: Raven Press Books.
Kleene, Stephen (1971) [1952].Introduction to Metamathematics (Sixth reprint, with corrections ed.). Netherlands: Wolters-Noordhoff Publishing and North Holland Publishing Company.