I have some financial data, here I have the histogram and density with estimated parameters regarding normal distribution. What I want now is to determine the "distance" between the data of the histogram and the density.
I can't get to implement that right using $integrate$ in R. Maybe you have an idea?
I have searched for similar problems, but could not find an answer I appreciate your help.
Here is my code for that part, with $Rt$ being data.
Here's a script that may help: