'Normalizing' a pdf

I have the following code:
mu = 0.000298522234037; % parameters of daily log returns norm distribution
sigma = 0.0137875852101;
x =-0.081:0.00001:0.0970; % creating the 'continuous' domain to estimate the area under the curve.
theoretical_y = (1/(sigma*sqrt(10*pi)))*exp(-((x/(sqrt(5))-mu).^2)/(2*sigma^2)); % calculating the theoretical pdf values
Area = trapz(x,theoretical_y); % calculating the area under the curve.
Now the area under the curve is actually 1... But I am trying to make the y-labels show the percentage values. These are the scaled estimated parameters and I have other distributions with integer values on the y-label and when I plot them all together I do not obtain what I am looking for. This is because I need the values to be percentage values. How can this be fixed?
Thank you

回答(0 个)

类别

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by