Estimating PDF based on data