Clarify daily return units and add GPU-vs-CPU composition comparison in mean_variance_basic#54
Open
jgoldberg-nvidia wants to merge 2 commits into
Open
Clarify daily return units and add GPU-vs-CPU composition comparison in mean_variance_basic#54jgoldberg-nvidia wants to merge 2 commits into
jgoldberg-nvidia wants to merge 2 commits into
Conversation
…_variance_basic Answers recurring user questions about the notebook's "Expected Return: 0.2914%" figure and how to compare solver results: - Add a units note: all returns are 1-day LOG returns, so every reported statistic is daily, not annualized (0.29%/day ~ 73% annualized log return ~ 108% annualized simple return, in-sample). - Label the portfolio statistics as daily and add an annualized block (x252 log return, exp conversion to simple, sqrt(252) volatility/Sharpe). - Add a portfolio-composition comparison cell (direct cuOpt vs CVXPY-cuOpt vs CLARABEL side by side with per-weight diffs) alongside the existing compare_results metrics comparison. - Rename the CVXPY-API solve results to cvxpy_gpu_* so the direct cuOpt solve no longer silently shadows them. - Re-executed end-to-end on GPU (cuOpt 26.06): all solvers agree at 0.2914%/day expected return with max GPU-vs-CPU weight difference of 5.9e-06. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses user questions about
mean_variance_basic.ipynb(why "Expected Return: 0.2914%", and how to compare CPU vs GPU portfolios):compare_results.cvxpy_gpu_*so the direct cuOpt solve no longer overwrites them.tests/test_skill.py,ci/utils/validate_skills.sh) and full CPU suite pass.🤖 Generated with Claude Code