Return value calculation from gumbel cdf for MAXIMA not minima
Show older comments
I am trying to calculate some return values (e.g. find x when cumulative probability is 0.99) from a series of annual maxima. In matlab it says that to fit a Gumbel to maxima (not minima) you must negate the X values, which I have done. This gives me a (negative) mu and sigma. I then use evinv and negate the result to get the final answer.
However, I get negative values, which is completely outside the range of annual maximum values that I have (these are all positive).
Here is the code:
par = evfit(-P) mu = par(1) sigma = par(2) 100yrVal = -evinv(0.99,mu,sigma)
Can anyone advise?
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!