Open avivajpeyi opened 1 week ago
Can we just wavelet transform the entire timeseries with the gap? -- Maybe this will be hard due to correlations in the noise.
When we have gaps in timedomain, we need noise covar matrix in timedomain.
We need to take into account the noise correlations in the wavelet domain.
Nt, Nf = 4, 8 ND = 32
Wnm.flatten = [...] shape-> 32
Flattened Wnm and Wn'm' covar matrix --> 32x32
We want to show that we can use the var (the diagonal)
Then we can take the flattened Wnm covariance matrix, and recast recast --> 4x8x??
if we want to use the FULL covar matrix: s covar s
repeat 100s of times: noise --> from PSD take noise --> WDM transform with and without windows.
WDM without windows:
WDM with window:
Compute magnitude of off-diagonal terms
Ollie has made some progress on this. See https://github.com/pywavelet/case_studies/compare/db6b90b...4e04dfd
He says:
You can see with the Cornish style noise (high red noise) that the MCMC will not converge properly if noise is included (with the gap). It works very well if you set the filter kwarg to true… that is, if we filter out that nasty red noise then we converge to the true parameters. Cool.
The MCMC doesnnt seem to be working with noise... Sadness...
Is the noise correct?
(maybe filtering is incorrect? in the data plots i don't see the signal at all...)
Data generation
We take a ~4 day long signal:
$$y(a,f,\dot{f}, t) = a \left( \sin \left( 2 \pi \left( f t + 0.5 \dot{f} t^2 \right) \right) \right)$$
with
and add a ~6hr gap in the middle.
We then take each 'chunk' of timeseries, zero-pad and WDM transform it (bottom plot is the PSD):
Single parameter likelihood
I set up a small search range:
and compute the likelihood, changing one parameter at a time:
MCMC
Seems like the MCMC is taking a while to converge...