Encyclopedia > Indicator function

  Article Content

Indicator function

In mathematics, the indicator function (sometimes also called characteristic function) is a particular function associated to a subset of a given set. Given any set X and any subset A of X we define the indicator function on A from X to {0,1} as follows:

<math>I_A(x) = \left\{\begin{matrix} 1 &\mbox{if}\ x\in A\\
0 &\mbox{if}\ x\not\in A\end{matrix}\right.</math>

The indicator function is a basic tool in probability theory: if X is a probability space with probability measure P and A is a measurable set, then IA becomes a random variable whose expected value is equal to the probability of A:

<math>E(I_A)= \int_{X} I_A(x) dP = \int_{A} dP = P(A).\; </math>

For discrete spaces the proof may be written more simply as

<math>E(I_A)= \sum_{x\in X} I_A(x)p(x) = \sum_{x\in A} p(x) = P(A). </math>

Furthermore, if A and B are two subsets of X, then

<math>I_{A\cap B} = \min\{I_A,I_B\} = I_A I_B \qquad \mbox{and} \qquad I_{A\cup B} = \max\{{I_A,I_B}\} = I_A + I_B - I_A I_B.</math>



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Northwest Harbor, New York

... is spread out with 25.2% under the age of 18, 4.8% from 18 to 24, 27.3% from 25 to 44, 28.7% from 45 to 64, and 13.9% who are 65 years of age or older. The median age ...

 
 
 
This page was created in 35.2 ms