return the mean not the pdf value, that was completely wrong
take noise into account
plot the resulting function regression