Hi everyone,
im working with the Statistics Toolbox, and i want to perform a Monte Carlo Simulation for a Weibull pdf. After reading a lot of papers i found the inverse transform method. My question is, if i use the command wblrnd it generates random values of the pdf defined by shape and scale parameter. If i use the random number generator between 0 and 1 and use the inverse cdf of this Weibull pdf, do i get the same results as wblrnd? In the description of wblrnd there was no explanation how the numbers are generated.
WeibullPDFGB=fitdist(MTTF,'Weibull');
i can extract the shapefactor=2 and scalefactor=4800 for example
is:
z=rand(200,1); y=icdf('Weibull',z,shapefactor,scalefactor);
the same as:
y=wblrnd(shapefactor,scalefactor,200,1); ?
Thanks a lot for the support
Jeremy
Best Answer