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

Correcting 3 sigma in 2D gaussian distribution #445

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jckhng
Copy link
Contributor

@jckhng jckhng commented Oct 9, 2024

2DGaussian
2D multivariate distribution has a different probability related to 1-2-3 sigma

The black scatter is a plot of 1000 samples 2D multivariate gaussian distribution. The blue ellipse uses the 3 sigma scaling. 3 sigma scaling works well in 1 dimension, and correspond to 99.7% probability. However, the corresponding probability in 2D is actually lower if 3 sigma scaling is used. To get the equivalent 99.7% red ellipse in 2D, it should be scaled by 3.4086 instead.

This is also described in the table in this link

Thus, I propose to change the scale_factor to 3.4086, to have the same effect of the 99.7% ellipse such that the contribution of the gaussian beyond the ellipse boundary becomes vanishingly small.

Also modified the inside view frustum test to use the AABB of the ellipse directly.

@jb-ye
Copy link
Collaborator

jb-ye commented Nov 5, 2024

Did you observe any material improvements in terms of quality?

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.

2 participants