 I believe the expression for the pdf of normal distribution is wrong.