'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개)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!