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

Test-0.4.0 #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Test-0.4.0 #57

wants to merge 1 commit into from

Conversation

taylordb
Copy link

@taylordb taylordb commented May 25, 2020

This notebook validates the hera_pspec pipeline's ability to recover the mean power from a flat-k Gaussian delay spectrum from an ensemble of simulations with random Gaussian noise added to the visibilities. We extract the mean power estimate from each simulation using the hera_pspec pipeline and perform an ensemble average on the resulting power and compare to the mean from a flat-k Gaussian delay spectrum without added noise. The percent difference averaged over 500 simulations is found to be less than 0.04%.

Fixes #27

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

@acliu acliu requested a review from steven-murray May 26, 2020 15:17
@@ -0,0 +1,648 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of splitting the simulation into interleaving time series and computing the cross-correlation here?


Reply via ReviewNB

@@ -0,0 +1,648 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These numbers don't seem to match the numbers appearing below in the keys of the read-in data?


Reply via ReviewNB

@@ -0,0 +1,648 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The numbers here are the ones I was referring to above


Reply via ReviewNB

@@ -0,0 +1,648 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm looking too hard, but it seems that in each of the panels, there are short sections of realization number where all four standard deviations have estimates that are above/below the truth (eg. at about N=110 in the left-hand plot). Of course, all things statistical are possible, but is this considered highly unlikely (it looks like it does this for ~5-6 realizations in a row). Are you sure there are no correlations between runs?


Reply via ReviewNB

@@ -0,0 +1,648 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, it seems like the different sigma are correlated -- do they all maybe use the same initial seed? Is this intended? Is there a good reason that ((0,11),(0,11)) should have significantly higher fractional difference?


Reply via ReviewNB

@@ -0,0 +1,648 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me, after about 400 realizations, it looks like the residuals are roughly flat, rather than converging (maybe slightly). Is there an argument for how fast we should expect it to converge? Also, the plot legend seems to be discrepant with the caption (sigma=1mK vs. sigma = 0.5).


Reply via ReviewNB

Copy link
Contributor

@steven-murray steven-murray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @taylordb, this is great work!

Can you confirm whether the notebook tests a case of P_N < P(k) and also P_N > P(k), as suggested in the corresponding issue #27? I think the main improvement to this would be if you were able to also plot some kind of analytic expectation of the decrease in noise over realizations.

Also, an idea (maybe not a good one) might be to plot the whole distribution of powers (for times and delays) at each realization (with some kind of transparency for each dot).

@steven-murray
Copy link
Contributor

@acliu @taylordb are there plans to address the comments on this and merge it in?

@steven-murray steven-murray linked an issue Oct 12, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Step 0.4
2 participants