I want to fit a hyperbolid distribution according to my notation:

\begin{align*} H(l;\alpha,\beta,\mu,\delta)&=\frac{\sqrt{\alpha^2-\beta^2}}{2\alpha \delta K_1 (\delta\sqrt{\alpha^2-\beta^2})} exp\left(-\alpha\sqrt{\delta^2+(l-\mu)^2}+\beta(l-\mu)\right) \end{align*}

I use the HyperblicDistr package, my R for the first step, the estimation of the parameters (data):


The output is


Now I transform the parameters to my notation:


Which gives


Now, I want to calculate the standard errors of my parameters, if I do:


I get


But these are the standard errors in case of the parameter notation I don't want. So my first question:

  1. To which parameters (in my notation) do the standard errors belong? So what is the standard error of $\hat{\alpha}, \hat{\beta}, \hat{\mu}$ and $\hat{\delta}$?
  2. The values stay the same, right, so they do not change or?
  • $\begingroup$ ok: I already noticed one big mistake: My "from" vector in hyperbChangePars is wrong, so I have to use the order of the output. But my question stays the same! $\endgroup$ – Stat Tistician Apr 10 '13 at 14:11
  1. Information about the relationship between $(\alpha,\beta,\mu,\delta)$ and $(\pi,\zeta,\delta,\mu)$ can be found in the following link:


hyperbPi <- beta / sqrt(alpha^2 - beta^2)
zeta <- delta * sqrt(alpha^2 - beta^2)

Since the output of hyperbFit corresponds to the MLE, then they can be inverted directly using the aforementioned reparameterisation.

Although it is possible to calculate the corresponding errors for $(\alpha,\beta,\mu,\delta)$ using the delta method (if you do not know it, google will tell you), I think it requires a significant effort. I would rather go for using bootstrap as follows:

  • Obtain B bootstrap samples of the estimators of $(\pi,\zeta,\delta,\mu)$.
  • Transform those values into estimators of $(\alpha,\beta,\mu,\delta)$ using the reparameterisation mentioned above (you have to calculate it, recall that this is your thesis).
  • Obtain bootstrap intervals using the sample of estimators of $(\alpha,\beta,\mu,\delta)$.

The following R code shows how to obtain the intervals for $(\pi,\zeta,\delta,\mu)$. Once you calculate the reparameterisation you can easily obtain those for the parameters of interest.

n = length(dat)

sampB <- data.frame(matrix(ncol = 4, nrow = B))

for(i in 1:B){
dat1 <-sample(dat,n,rep=T)
sampB[i,] <- hyperbFit(dat1,hessian=TRUE)$Theta

# quantile bootstrap interval for pi

# quantile bootstrap interval for zeta

# quantile bootstrap interval for delta

# quantile bootstrap interval for mu

As it was already mentioned in one of the answers to your questions, the MLE of this family of distributions converge slowly. These issues are inherited by the bootstrap algorithm. Any method that gives you stable results is worthy of suspicion.

Moreover, the use of standard errors in this family is completely unreliable since the distributions of the estimators are quite asymmetric as shown by the histogram of the bootstrap samples

  • $\begingroup$ mh, but I do not like the bootstrap method, I already kicked it out because it gave me to much different results. These were not useable. So I did not get this from your answer: Is it possible to just convert those values from the output? And yes, how can I do this? I also did not get the answer to my first question: To what parameters do these std errors belong (in my notation)? $\endgroup$ – Stat Tistician Apr 17 '13 at 14:06
  • $\begingroup$ ok, I uploaded it again and I got a different name! BTW: Your name is also quite interesting, eh? $\endgroup$ – Stat Tistician Apr 17 '13 at 14:12
  • $\begingroup$ @StatTistician Good. If you are only interested in the standard errors of the MLE, then you will probably have to use the delta method, which in turns requires the calculation of the Fisher information. This answer shows how to do it. I have included a code for the bootstrap part. You still have to work on the reparameterisation part. I have removed my comment about the name of your data set since it looks like you are innocent. $\endgroup$ – Ted Kaczynski Apr 17 '13 at 14:27
  • 1
    $\begingroup$ mh, I am not really looking through this - I guess I have to refrain from using the std errors of the hyperFit output. $\endgroup$ – Stat Tistician Apr 17 '13 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.