corrected a mistake on std_dev calculation of pdf