Repository navigation
plan(whatfontisthis-wonju-voucher-202409): 원주사랑상품권 월 단위 분석 계획 개정과 첫 결과 - #25
Draft
whatfontisthis wants to merge 3 commits into
Draft
whatfontisthis wants to merge 3 commits into
whatfontisthis wants to merge 3 commits into
Conversation
- 결제정보 API는 월 단위(crtr_ym)만 제공해 주 단위 설계(v1)를 월 단위로 변경 - fetch.py: 조폐공사 운영 81개 지역에 R1(정책 안정)·R2(자료 충분)·R3(급변 없음)을 적용해 비교 7곳 선정 - 월별 합계를 한 번 본 뒤의 개정임을 README·plan.yaml에 밝힘 - extra_checks.py: 한 곳 빼기·10월 복귀·가짜 시점·바꿔치기 점검 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXTuu1Jmi6DisxoF4ypSWh
… 해석 추가 - 원주 vs 비교 7곳, 9월 모바일 결제금액: -0.022 (95% CI -0.155~0.156), 판정 조건부 - 비교 지역 하나씩 빼기·10월 복귀·가짜 시점·바꿔치기 점검은 extra_checks.py 결과를 README에 정리 - discussion.md에 계획 변경 이유와 한계 기록 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXTuu1Jmi6DisxoF4ypSWh
This branch has not been deployed
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.
무엇을 했나요?
관련 작업 제안: #24
2024년 9월 원주시 모바일 원주사랑상품권의 할인 상향(7% → 10%) 기간에 결제금액이 어떻게 달라졌는지 살펴봅니다. 계획 초안에 이어 자료 수집기, 첫 분석 결과, 해석까지 갱신했습니다. 여전히 Draft입니다. 학습·연구용 작업이며 정부·공공기관의 공식 평가가 아닙니다.
한 줄 결과: 조건부(판별 불가). 원주의 9월 월간 모바일 결제금액은 비교 7곳과 거의 같이 움직였습니다(차이 약 -2%, 95% 신뢰구간 약 -14%~+17%). 같은 크기의 "차이"가 처치가 없던 달에도 나옵니다. "효과 없음"이 아니라 "이 자료로는 알 수 없음"입니다.
계획에서 바뀐 것
/paymentsV3)에는 일·주 조회가 없고 월 합계(crtr_ym)만 있습니다. 처음 계획의 중단 조건("월별 자료만 있으면 주간 분석을 보류")에 해당해 설계를 바꿨습니다. 변경 전 68월(3개월), 변경 후 9월(1개월)입니다. 원주의 15월 할인율은 6%, 8%, 10%, 8%로 달마다 바뀌어 사전 기간에 쓰지 못했습니다.fetch.py의 규칙을 적용했습니다. R1 69월 할인율·구매한도 불변, R2 110월 모든 달 모바일 결제 월 1억 원 이상, R3 인접 달 급변 없음. 7곳(시흥, 보령, 서천, 태안, 문경, 합천, 남원)이 남았습니다. R1 탈락 52곳 중 40곳이 9월에 새 정책을 도입했습니다(한시 혜택이 전국에서 겹침).사전 등록 원칙에서 벗어난 점을 밝힙니다. 이 개정은 월별 합계를 한 번 훑어본 뒤에 작성했습니다. 처음 계획(
7e8c6b8)은 지우지 않고 남겼고, 비교 지역 선정을 코드 규칙으로 고정해 선택 여지를 줄였습니다. 자세한 내용은discussion.md에 있습니다.케이스
cases/whatfontisthis-wonju-voucher-202409/— B 트랙 가설과 분석fetch.py(수집·비교 지역 선정),extra_checks.py(공용 흐름이 자동으로 하지 않는 점검),region_codes_komsco.csv(참고문서의 조폐공사 운영 지역 코드),report.md·flow_log.json·run_manifest.json·figures/(make flow결과),discussion.md.체크리스트
plan.yaml을make flow실행 전에 커밋했습니다(bae45ce). 다만 위에 적은 대로 월별 합계를 본 뒤의 개정이며, 변경 이유를 README·discussion.md·커밋 메시지에 기록했습니다.plan.yaml > data_sources에 명시했습니다(이용허락범위 제한 없음,license: other)..env·원자료·분석용 표를 커밋하지 않았습니다(data/는.gitignore대상).fetch.py→make flow→extra_checks.py로 재현할 수 있습니다. 인증키는 각자 공공데이터포털에서 활용신청(자동승인)해.env의DATA_GO_KR_API_KEY에 넣습니다.make check:ruff check .통과.pytest1건 실패(test_template_fetch_fails_with_clear_message, 윈도우 한글 인코딩cp949오류).origin/main을 따로 내려받아 같은 환경에서 돌려도 똑같이 실패했습니다.core/를 수정하지 않았습니다.scripts/check_licenses.py통과.확인한 것
fetch.py실행,python -m core.agent cases/whatfontisthis-wonju-voucher-202409(사전 등록 확인 포함) 통과. 12개 품질 점검 통과, 판정 조건부.did경로는 사전추세 검정과 비교 지역 하나씩 빼기를 자동으로 하지 않아extra_checks.py로 별도 계산했습니다. 사전 기간이 3개월뿐이라 사전추세 검정은 하지 않았습니다.min_clusters: 20보다 적어 조건부 판정이 붙습니다. 경고를 없애려고 기준을 낮추지 않았습니다.리뷰어에게
min_clusters경고를 어떻게 다루는 게 좋을까요?이 PR이 합쳐져도 #24의 자료 확보·설계 질문이 모두 해결되는 것은 아니므로, 이슈를 자동으로 닫는 키워드는 사용하지 않았습니다.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GXTuu1Jmi6DisxoF4ypSWh