Let $X$ a real random variable with density $f_X$ and $Y=g(X)$ with $g$ measurable.
I have some trouble understanding the following statement :
" If $g(x)=a$ with $a$ a constant, for all $x$, the distribution of $Y$ is the Dirac mass in $a$, which doesn't have a density "
My questions :
1 - How can we translate this statement into formulas?
2 - Why doesn't the density exist?
Let $(\Omega,\mathcal A,\Pr)$ denote the probability space that serves as domain for random variable $X:\Omega\to \mathbb R$. Then $\{Y\in A\}=\{\omega\in\Omega\mid g(X(\omega))\in A\}=\Omega$ if $a\in A$ and $\{Y\in A\}=\varnothing$ otherwise.
1) Let $P_Y$ denote the probability meausure on $(\mathbb R,\mathcal B)$ prescribed by $A\mapsto\Pr(Y\in A)$.
That leads to:$$P_Y=\delta_a$$
This because $P_Y(A)=\Pr(Y\in A)=1$ if $a\in A$ and $P_Y(A)=\Pr(Y\in A)=0$ otherwise.
2) The distribution (it exists all right) will have function $F(x)=1_{[a,\infty)}(x)$ as cumulative distribution function. In order to have a density function the CDF must at least be continuous, which is not the case.