This exercise set contains some solved exercises on indicator functions. The theory needed to solve these exercises is introduced in the lecture entitled Indicator functions.
Consider a random variable
and another random variable
defined as a function of
.
Express
using the indicator functions of the events
and
.
Denote by
the
indicator of the event
and denote by
the
indicator of the event
.
We can write
as:
Let
be a positive random variable, i.e. a random variable that can take on only
positive values. Let
be a constant. Prove that
where
is the indicator of the event
.
First note that the sum of the indicators
and
is always equal to
:
As
a consequence, we can
write:
Now,
note that
is a positive random variable and that the
expected value of a positive random
variable is
positive:
Thus:
Let
be an event and denote its indicator function by
.
Let
be the complement of
and denote its indicator function by
.
Can you express
as a function of
?
The sum of the two indicators is always
equal to
:
Therefore: