Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unscaled features in tstab.gpd lead to failure of optimization routines #11

Open
lbelzile opened this issue Dec 11, 2020 · 1 comment
Open
Assignees

Comments

@lbelzile
Copy link
Owner

lbelzile commented Dec 11, 2020

Reported by John Ery.

Error in t(c(1, -thresh[i] + thresh[1])) %*% gpdu$vcov : 
  requires numeric/complex matrix/vector arguments
In addition: Warning message:
In gp.fit(xdat = na.omit(as.vector(xdat)), threshold = threshold,  :
  Cannot calculate standard error based on observed information

This error is caused by unscaled features (approximately 10e9); the numerical tolerance is too small, leading to lack of convergence in the optimizer and warning/failure of the routine.

Perhaps it would make sense to scale data first before computing and using location-scale properties to give back the estimates.

@lbelzile lbelzile self-assigned this Dec 11, 2020
@lbelzile lbelzile added the bug label Dec 11, 2020
@lbelzile
Copy link
Owner Author

It is easy to scale threshold exceedances / do a location/scale normalization of the maxima, but must then back-transform the output before computing standard errors, log-likelihood, etc.

This would require some checks to make sure it indeed improves the optimization in fit.gpd, etc.

The problem is reported in a particular function that uses it's own routines (it's now possible to fix parameters with the latest versions), but none of the profiling functions does this).

@lbelzile lbelzile removed the bug label Apr 13, 2022
@lbelzile lbelzile changed the title tstab.gpd fails when shape is negative Unscaled features in tstab.gpd lead to failure of optimization routines Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant