I just encountered the random variable $Y = |X|$, where $X \sim \text{N}(\mu, \sigma^2)$. Now, based on what we know about the absolute value function, this random variable is still continuous; however, the absolute value function means that there exists a cusp at $X = 0$, and so the derivative is undefined at this point.
This makes me wonder: How does this affect the PDF and CDF? How would we go about calculating such things in this case?
I would greatly appreciate it if people could please take the time to clarify this situation.
New CDF:if $z\le 0$, clearly $F_Y(z)=0$.Otherwise, $$ F_Y(z)=P\{|X|\le z\}=P\{-z\le X\le z\}=2\Phi(z)-1 $$ where $\Phi$ is the CDF of the normal variable. Your PDF is zero for $z<0$, and $2f_X(z)$ for $z> 0$ (just take the derivative). At $z=0$ it has a jump.
Well, the above is for $X\sim \mathcal{N}(0,1)$ but you can easily adapt it to the general case.