LOTTO — 로또는 예측할 수 있을까?
Can the Korean lottery be predicted? This is not a number-picking helper. It is a teaching repository that uses the Korean 6/45 lottery (draws 1–1230, 2002-12 → 2026-06) and the 연금복권 pension lottery as a dataset for a full methodology curriculum, and its conclusion is that there is no signal you can use to predict or profit.
The point is how that conclusion is reached. Frequency analysis, hot/cold numbers, gradient boosting and deep learning all fail to beat random picking (expected 0.8 matches per ticket), and every backtest confidence interval crosses that baseline — AUC ≈ 0.49, silhouette ≈ 0.19.
What makes it honest is that the weak signal that does exist is not hidden. The sum time-series shows real lag 9–10 autocorrelation and a spectral permutation test at p ≈ 0.003 that survives Bonferroni correction. It is statistically significant and practically useless — about 2% of total variance, r² ≈ 0.5% — and the study says exactly that instead of dressing it up.
로또는 예측할 수 있을까 — 정직한 데이터 사이언스 스터디. 흔한 "AI 로또 예측" 앱과 정반대 방향의 프로젝트입니다. 예측을 파는 대신, 왜 예측이 불가능한지를 데이터로 규명합니다. 있는 신호는 있는 그대로 보여주고 왜 실전에 쓸 수 없는지까지 설명합니다. 학생이 따라 하며 배울 수 있도록 각 단계에서 무엇을·왜·어떻게 하는지를 다룹니다.
01 정제 419열 → 9열 (유령열 399개, mojibake 당첨금, 고아 테이블 정리)
02 확률 조합론 · 초기하분포 · CLT → 기대 적중 0.8, 합계 μ=138
03 EDA 분포 시각화와 이론값 대조
04 가설검정 χ² · 런 · 자기상관 + 효과크기 · 검정력 · 다중검정 보정
05 무작위성 엔트로피 · KS · AD · ADF · 순열검정 (6개 중 5개 통과)
06 베이지안 Beta-Binomial 켤레사전분포, 신용구간 (44/45가 공정값 포함)
07 ML 누수 없는 walk-forward CV, 보정, ROC/AUC, 순열 중요도 → AUC ≈ 0.49
08 비지도 PCA · k-means · DBSCAN · t-SNE → 실루엣 0.19 (난수 대조군 0.18)
09 백테스트 누수 없는 검증, ROI, 종합 결론 → 모든 전략 ≈ 0.80
10 부록 연금복권 균등성 · 자릿수 · 등수 확률
비복원 추출 구조를 반영한 분산 보정, Anderson–Darling의 실제 p-value 계산(하드코딩 placeholder가 아니라), 시간을 섞어 CV할 때 생기는 누수의 함정까지 함께 다룹니다. 무거운 계산은 재사용 패키지가 맡고 노트북은 해석에 집중하며, 11개 노트북 모두 독립 실행됩니다.
Live / 바로가기: lot.simplicity-is-art.com · Status / 상태: Beta (베타) · Verdict / 결론: 예측 불가 (no usable signal)
No comments yet. Be the first to say something!