You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow option for generalized least squares (i.e. instead of ||r(x)||^2, have ||r(x)||_A^2, where A is the inverse of the correlation matrix; see https://en.wikipedia.org/wiki/Generalized_least_squares). This captures correlation/heteroskedacity in the residuals.
The text was updated successfully, but these errors were encountered:
And as I gave been having a hard time with DFOLS and "noise" in my trials so have been looking at that bit of my code I put it here!
Part 1 --generate transformation matrix from Covariance matrix. You might want to filter this
evalue, evect = np.linalg.eigh(Cov)
transMatrix = np.diag(evalue ** (-0.5)).dot(evect.T)
Part 2 -- apply
resid = transMatrix @ fn(params)
Allow option for generalized least squares (i.e. instead of ||r(x)||^2, have ||r(x)||_A^2, where A is the inverse of the correlation matrix; see https://en.wikipedia.org/wiki/Generalized_least_squares). This captures correlation/heteroskedacity in the residuals.
The text was updated successfully, but these errors were encountered: