No BSD License  

Highlights from
Weibull fit tests

2.0

2.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.36 KB File ID: #21079

Weibull fit tests

by Javier Amezcua

 

13 Aug 2008 (Updated 14 Aug 2008)

3 goodnes of fit tests for thw Weibull: Anderson-Darling, Chi-squared and graphic

| Watch this File

File Information
Description

3 goodnes of fit tests for thw Weibull: Anderson-Darling, Chi-squared and graphic

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
16 Sep 2008 Patrick Del Viso Hopkins

You have made a mistake in line:

param=weibmle(v);

MATLAB does not seem to recognize "weibmle(v)", could you please correct this?

Thanks!

16 Sep 2008 Javier Amezcua

I'm sorry, I hadn't noticed that the built-in function for the maximum likelihood estimators is different that the "weibmle" that I have here. My code for the maximum likelihood estimator is as follows

function [param] = weibmle(x)
b=1;
bgorro=0;
dif=abs(b-bgorro);
while (dif>0.001)
 bgorro=((sum((x.^b).*log(x))/sum(x.^b))-(1/length(x))*sum(log(x))).^(-1);
 dif=abs(b-bgorro);
 b=bgorro;
end
a=((1/length(x))*sum(x.^b)).^(1/b);
param=[a,b];

% a is the scale and b is the shape parameter

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Javier Amezcua 22 Oct 2008 10:14:42
probability Javier Amezcua 22 Oct 2008 10:14:42
weibull Javier Amezcua 22 Oct 2008 10:14:42
goodness of fit Javier Amezcua 22 Oct 2008 10:14:42

Contact us at files@mathworks.com