-
Notifications
You must be signed in to change notification settings - Fork 27
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
Simulation Envelopes, Low & High #57
Comments
@vpapaioannou if you could add a PR that illustrates they type of functionality you are interested in, that would be very helpful. |
What does PR mean? To my understanding, the envelopes should be independent from the level of significance. That means, given the existing code, that the low envelope should be always row 0 and the high envelope should be always the last row of numpy array res. They should be the same if only one realization is provided. |
Pull Request
The simulation envelopes are dependent on the specification of the significance level. |
Do you have a reference about "The simulation envelopes are dependent on the specification of the significance level."? |
https://esajournals.onlinelibrary.wiley.com/doi/abs/10.1890/13-2042.1 |
Reading the paper, I understand your rationale. To my mind though, there are two different but very close concepts. The first one is that of the Lower / Upper Bound (LB / UB) and the second one is that of a K function at level α. In the first case, the LB should be the row 0 in array Finally, in line https://github.com/pysal/pointpats/blob/master/pointpats/distance_statistics.py#L626, the length |
Would clarifying the documentation help? It seems your interpretation of envelope is the extrema, while we're using it to mean the (1- α)% extrema. It is unlikely that we will change the nomenclature in this code, but a re-vamp of the code is about to be merged that is oriented to let users work with simulations directly. |
Edit: Of course, I should also say thank you for reviewing this in depth and giving feedback!! I believe this is done correctly in the new implementation. |
Yes, updating the documentation it would be enough. If As of You are welcome, thanks for implementing all this functionality. |
This should be addressed in the new implementation |
The way the low and high functions are calculated, https://github.com/pysal/pointpats/blob/master/pointpats/distance_statistics.py#L627, it appears to be confusing since it depends on the
pct
parameter whereas it shouldn't. Ifpct=1
then the low and high envelopes are the same as can be seen below.realizations = PoissonPointProcess( spp.window, spp.n, 10, asPP = True)
kenv = Kenv( spp, intervals = 20, realizations = realizations, pct = 1)
kenv.plot()
If
pct = 0.05
having the same realizations, then,If there is an intention to incorporate some sort of p - value in the graphs, then from what I know this p - value is determined exclusively by the amount realizations and nothing else. Finally, I would suggest to have an assertion about
pct
valid values.Thanks,
Vasilis
The text was updated successfully, but these errors were encountered: