Skip to content

Fix Bachelier put implied volatility to sum the full B polynomial#314

Open
SAY-5 wants to merge 1 commit into
avhz:mainfrom
SAY-5:fix-bachelier-put-iv
Open

Fix Bachelier put implied volatility to sum the full B polynomial#314
SAY-5 wants to merge 1 commit into
avhz:mainfrom
SAY-5:fix-bachelier-put-iv

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jun 18, 2026

Copy link
Copy Markdown

The put implied volatility skipped the first coefficient of the B polynomial while the call version summed all of them, so put IV disagreed with call IV for the same option (and the original indexed loop in #312 went one past the end and panicked). This sums the full B array in put_iv to match call_iv, and adds a test checking the two agree. Closes #312.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
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.

Index out of bounds in Bachelier put_iv

1 participant