How to perform extreme value distribution in Matlab?
Show older comments
%Water level observations
WL=[ 6.79 6.89 6.38 5.67 6.91 7.66 6.41 6.04 6.41 5.55 6.93 5.67 6.69 6.51 6.32 7.33 6.43 6.52 6.13 6.72 6.7 7.78 6.18 5.41 6.94 6.51 6.02 5.94 6.08 ];
Now i want to apply gumble distribution for that data which will give me several return period values(50,100,150) along with the probability plot(confidence limit line should be visible on the plot). Gumbel distribution of same data gave 8.27 for 100 year return period with another software whereas matlab gives 8.54 for same return period.In that case i use the following coding,
WL= [ 6.79 6.89 6.38 5.67 6.91 7.66 6.41 6.04 6.41 5.55 6.93 5.67 6.69 6.51 6.32 7.33 6.43 6.52 6.13 6.72 6.7 7.78 6.18 5.41 6.94 6.51 6.02 5.94 6.08 ];
p = fitdist(-WL','ev')
p = extreme value distribution
mu = -6.19143
sigma = 0.512164
val100yr=-evinv(0.01,-6.19143,0.512164)
val100yr = 8.5475
Is there any error here? why this difference? pls help me out
Accepted Answer
More Answers (0)
Categories
Find more on Extreme Value Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!