80 likes | 257 Views
Probability Plot Examples. Jake Blanchard Spring 2008. Making Your Own Prob Plots. Sort data Formulate CDF Linearize distribution for CDF Fit to straight line Plot both. An Example (7.4 from text). Exponential Distribution Slope is . Code. data =[blah blah ]; data=sort(data);
E N D
Probability Plot Examples Jake Blanchard Spring 2008 Uncertainty Analysis for Engineers
Making Your Own Prob Plots • Sort data • Formulate CDF • Linearize distribution for CDF • Fit to straight line • Plot both Uncertainty Analysis for Engineers
An Example (7.4 from text) • Exponential Distribution • Slope is Uncertainty Analysis for Engineers
Code data=[blah blah]; data=sort(data); n=numel(data); for i=1:n plotcdf(i)=-log(1-i/n); end data=data(1:n-1); plotcdf=plotcdf(1:n-1); p=polyfit(data,plotcdf,1); f=polyval(p,data); plot(data,plotcdf,'x',data,f) slope=p(1) invslope=1/slope Uncertainty Analysis for Engineers
Plot Uncertainty Analysis for Engineers
Example 7.5 • Gumbel Extreme Value • Slope= • Intercept=u Uncertainty Analysis for Engineers
Code data=[blah blah]; n=numel(data); for i=1:n plotcdf(i)=-log(-log(i/n)); end data=data(1:n-1); plotcdf=plotcdf(1:n-1); p=polyfit(data,plotcdf,1); f=polyval(p,data); plot(data,plotcdf,'x',data,f) slope=p(1) Uncertainty Analysis for Engineers
Plot Uncertainty Analysis for Engineers