feat: QuantStats parity 지표 추가#5
Merged
Merged
Conversation
mingi3314
force-pushed
the
feat/quantstats-parity-metrics
branch
from
May 12, 2026 00:23
28884a4 to
fa33f29
Compare
chado13
approved these changes
May 12, 2026
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.
리뷰어가 작업내용을 이해하기 쉽도록 아래내용을 상세히 작성해주세요.
Changes
alphastats.stats에 추가했습니다.probabilistic_sharpe_ratio/psr는 QuantStats와 같은rf,periods,annualize,smart인터페이스로 변경했습니다.information_ratio는 QuantStats와 동일하게 기본값을 비연율화 결과로 맞췄습니다.cagr,calmar,skew,kurtosis,cpc_index등 parity 과정에서 발견된 계산 차이를 QuantStats 기준으로 보정했습니다.quantstats>=0.0.81을 dev dependency로 추가했습니다.tests/test_quantstats_parity.py를 추가해 가능한 지표들을 QuantStats 결과와 직접 비교하도록 했습니다.Test
uv run pytest -q167 passeduv run ruff check .uv run mypy alphastats testsruff,ruff-format,mypy, commit message validation 통과Task Link