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

Refactor sensitivity calculation for AMC payoffs #53

Merged

Conversation

sschlenkrich
Copy link
Member

This PR updates and adds functions for Delta and Vega calculation. It aims at allowing sensitivity calculation for AMC-based payoffs.

  - Amend AMC payoffs for smooth step function
  - Add has_amc_function to identify AMC payoffs
  - Add regression re-calibration to sensitivity calculation
  - Add swaption sensitivity component test
  - Add gradient calculation via FiniteDifferences
@codecov-commenter
Copy link

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (27e6c73) 98.98% compared to head (4fa8ea3) 98.76%.

Files Patch % Lines
src/analytics/Valuations.jl 75.00% 4 Missing ⚠️
src/payoffs/AmcPayoffs.jl 82.35% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   98.98%   98.76%   -0.23%     
==========================================
  Files          59       59              
  Lines        2957     2988      +31     
==========================================
+ Hits         2927     2951      +24     
- Misses         30       37       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sschlenkrich sschlenkrich merged commit 90501d9 into frame-consulting:main Dec 10, 2023
4 checks passed
@sschlenkrich sschlenkrich deleted the wip/amc-sensitivities branch December 10, 2023 19:02
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