Open robertomolinari opened 8 years ago
@robertomolinari
SE in this case should not undergo a transformation since we are pulling it either from PSI or the Bootstrapped samples?
No transformation needed if we are bootstrapping the transformed value I guess. What do you mean by "pulling it from PSI"?
@robertomolinari
The issue is we transform to an AR(1)
then perform the inference procedure. So, the SE
is given by AR(1)
values.
For the asymptotic version we have:
https://github.com/SMAC-Group/gmwm/blob/master/src/inference.cpp#L90-L99
where:
se = sqrt(diagvec(psi));
is obtained from: https://github.com/SMAC-Group/gmwm/blob/master/src/inference.cpp#L40-L45
For the bootstrapped version we have:
The bootstrap happening under an AR(1)
with the SE
being given by:
out(3) = stddev(bs_theta,0,1); // Use N-1 and take by row
In theory we can derive the SE for GM through the delta method. Did you try that? We can discuss this on Friday after the meeting with Sachin where I will gladly lurk in the background…
@robertomolinari Meeting is on Thursday.
In this case, wouldn't a more efficient use be to just derive under zhang the GM()
WV form?
Whoops! We can discuss this on Thursday then!
Misc:
Transform all sample values...
[g'(theta)^2] * sigma ^2
GM() formulation via #97 under delta we have:
g(phi) = beta = -ln(phi)/delta_t
g'(phi) = -1/(phi*delta_t)
=> g'(phi)^2 = 1/(phi*delta_t)^2
g(sigma) = sigma^2_gm = sigma^2 / (1-phi^2)
g'(sigma) = -2*sigma/(1-phi^2)
=> g'(sigma)^2 = 4*sigma^2/(1-phi^2)^2
Note: This makes the bootstrapped CI values not exact.
When estimating the beta in GM we get CIs (and SE?) based on AR parameter.