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

Fix MitM Babai e-admissability computation #131

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Fix MitM Babai e-admissability computation #131

merged 3 commits into from
Oct 17, 2024

Conversation

ludopulles
Copy link
Contributor

  • The e^(-x^2) forgot to take the square in the exponent,
  • there was a unnecessary change from stddev to standard width 'alphaq',
  • negative values don't occur because the formula is right :),
  • applying some scaling to (r_i, \sigma) such that \sigma = 1/\sqrt{2} makes formulas easier to parse.

@malb
Copy link
Owner

malb commented Oct 16, 2024

I'm fixing the doctest failures on main.

estimator/prob.py Outdated Show resolved Hide resolved
@malb
Copy link
Owner

malb commented Oct 16, 2024

Okay, if you rebase on main, doctests should now run.

@malb
Copy link
Owner

malb commented Oct 16, 2024

Also: thank you!

It was simply wrong. The e^(-x^2) forgot to take the square in the exponent, and the sigma was not
really the standard deviation of the Gaussian sample (which they use in the proof).
@malb malb merged commit baf9382 into malb:main Oct 17, 2024
2 checks passed
@malb
Copy link
Owner

malb commented Oct 17, 2024

Ta!

@bencrts
Copy link
Collaborator

bencrts commented Oct 21, 2024

Ooh. This is a nice catch @ludopulles!

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.

3 participants