Safekipedia

Indicator function

Adapted from Wikipedia · Discoverer experience

Illustration showing how an Indicator function works in mathematics.

In mathematics, an indicator function is a special tool that helps us answer a simple yes-or-no question about a group of items. Imagine you have a big group of things, like numbers or shapes, and you want to know which ones belong to a smaller group inside it. The indicator function tells you: if an item is part of that smaller group, the function says “yes” or gives the number 1. If it is not, the function says “no” or gives the number 0.

A three-dimensional plot of an indicator function, shown over a square two-dimensional domain (set X): the "raised" portion overlays those two-dimensional points which are members of the "indicated" subset (A).

For example, let’s say you have all the numbers between 0 and 10, and you are interested only in the even numbers. The indicator function for even numbers will give 1 for numbers like 2, 4, 6, 8, and 10, and will give 0 for numbers like 1, 3, 5, 7, 9. This helps mathematicians work with groups and properties more easily.

Indicator functions are also called characteristic functions. They are linked to another idea called the Iverson bracket, which is a way to turn a true or false statement into a number — 1 for true and 0 for false. One famous example is the Dirichlet function, which is the indicator function for rational numbers inside all the real numbers. These functions are important in many areas of math because they let us study groups and patterns in a clear and organized way.

Definition

The indicator function is a way to show if something is part of a group or not. Imagine you have a big group of items, called X, and a smaller group inside it, called A. The indicator function tells us whether an item from the big group is also in the smaller group.

If the item is in the smaller group, the function shows the number 1. If it is not, the function shows the number 0. This helps us quickly see which items belong to the smaller group without checking each one individually. There are different symbols used for this function, such as 𝟙A, IA, and χA.

Notation and terminology

In some areas of math, people use a special symbol χA to talk about a function that shows if something is part of a group or not. This idea is also used in statistics, where it is called a dummy variable, but this is different from another meaning of "dummy variable" in math.

The words "characteristic function" can mean something else in old probability studies. Because of this, people who study chances mostly say "indicator function" when talking about this idea, while other math experts often use "characteristic function."

In newer logic studies, these functions help show how much true something is, instead of just saying yes or no.

Basic properties

The indicator function, also called a characteristic function, helps us understand groups of items. It’s a special way to show if something is part of a group or not. If an item is in the group, the function gives the number 1. If it’s not, the function gives the number 0.

This idea is useful in many areas, like counting and probability. For example, in probability, the indicator function can tell us the chance that something happens by looking at how often it appears in a group. It’s a simple but powerful tool for solving problems!

Mean, variance and covariance

An indicator function helps us understand chances and relationships in probability. It shows whether something happens (like picking a red card from a deck) or doesn’t happen.

The average value, or mean, of an indicator function tells us the chance that the event happens. The variance shows how much this chance changes. And the covariance tells us how two events happening together are related.

Characteristic function in recursion theory, Gödel's and Kleene's representing function

Kurt Gödel talked about a special math idea called the representing function in his 1934 paper. He said that for every group or relationship, there is a function that shows us clear answers. If something is true, the function shows 0. If it is not true, the function shows 1.

Another mathematician, Kleene, used a similar idea with simple math rules. He said a function can show 0 when something is true and 1 when it is false. This helps us understand how logic works in math, like how "OR" and "AND" statements can be built using these special functions.

Characteristic function in fuzzy set theory

In regular math, a characteristic function only shows if something is part of a group with a 1 or not part of it with a 0. But in fuzzy set theory, these functions can show values between 0 and 1. This helps us describe things that change slowly, like how "tall" or "warm" something is, by using what are called membership functions. These special functions help us understand fuzzy sets, which are groups that don’t have clear edges.

Smoothness

See also: Laplacian of the indicator

Indicator functions are not smooth. They are only continuous when their support is a connected piece. However, in certain areas of mathematics called algebraic geometry, especially when dealing with finite fields, special continuous indicator functions can be created.

Even though indicator functions are not smooth, they can still have what are called "weak derivatives." For instance, the Heaviside step function, which is an indicator function for positive numbers, has a special derivative called the Dirac delta function. This shows that even simple functions can have interesting properties when studied in deeper mathematics.

The inward normal derivative of an indicator function relates to the surface area of the domain it represents. This connection helps in understanding how functions behave on and near boundaries.

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Indicator function, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.