I got the best fit distribution to a failure rate (data)
Now I want to prolong the fitted distribution curve to reach x-axis (in both tails)
I use:
binWidth = 1;binCtrs = 0:binWidth:18;figurehist(data,binCtrs);counts = hist(data,binCtrs);nu = length(data);prob = counts / (nu * binWidth); % rescale the figure
figureplot(binCtrs,prob,'ro');paramEsts = gevfit(data); %estimate parameter
xgrid = linspace(0,18,100);pdfEst = gevpdf(xgrid,paramEsts(1),paramEsts(2),paramEsts(3)); hold on;line(xgrid,pdfEst,'color','b')
to (fit distribution &) produce this figure:
Now , I want to prolong/extend the curve to reach x-axis
I try:
xaxis=linspace(-5,22); % create Matching vector
line(xaxis,pdfEst,'color','r')
but it produced another distribution.
Best Answer