基於機器學習之 NBA 勝負預測:從預測準度到投注報 酬
Machine Learning for NBA Game Outcome Prediction: From Accuracy to Betting Profitability
摘要
NBA 勝負預測可以說是運動分析領域中的經典課題,而機器學習是研究此類課題最
常見的方法,過往研究文獻大多止於模型預測結果,著重於將準確率(Accuracy, Acc)
作為主要評估指標,較少有延伸至實務應用之完整探討。然而在現實生活應用中,單
純追求準確率的最大化未必能將其成果轉化為有實際價值的資訊,例如是否要對某場
勝率較高的球隊下注。有鑑於此,本研究提出一個投注應用之端對端 NBA 勝負預測與
資金管理框架,整體涵蓋了特徵工程、特徵選擇及解讀、機器學習預測、機率融合與
投注策略等環節,並以 2016–17 至 2025–26 共十個賽季的 NBA 賽事資料進行系統性實
證。
研究方法為兩階段的實驗,全程嚴格遵守訓練集(train)/開發集(dev)/測試集
(test)三段式切分原則,避免資料洩漏。首先是勝負預測階段,先建構五組資料集
(a、a′、b、c、d),分析各特徵的重要性,並比較過濾式(Pearson)、包裹式(RFECV)
及嵌入式(ElasticNetCV)三類特徵選擇方法對七個分類模型(Lasso、Logistic、Ridge、
SVM、Random Forest、XGBoost、Stack)之預測效益;接著是投注模擬階段,設計四
種策略,於前階段選定之資料集上實驗,逐步疊加期望值(EV)篩選、Kelly 公式注
碼決策、雙視角共識(consensus)機制與分數帶(probability band)過濾等風險控制策
略。
至於主要結果,本研究設計之新計算特徵(Elo 動態實力指標、賽程與旅行特徵、
i
團隊爆發力指標)使跨模型平均 Acc 由 0.6334 提升至 0.6547,而 Stack 配合完整特徵
集達成本研究最高之單一組合 Acc 67.62%。在投注模擬階段中,XGBoost 配合 RFECV
篩選之資料集與雙重過濾投注策略,先於 2024–25 開發集取得投注報酬率(ROI)+13.55%
的成績,再於完全獨立之 2025–26 樣本外賽季達成 ROI +15.53%,此結果較市場 fa-
vorite baseline 之 −3.37% 高出 18.90 個百分點。
值得指出的是,XGBoost 於勝負預測階段在開發集之 Acc(63.25%)為七個模型中
最低,卻於投注階段取得最高報酬,此 Acc 與 ROI 解耦(decouple)現象為本研究核
心發現之一,揭示了預測準確度與投注獲利能力為兩個本質不同之評估維度,並點出
一項實務啟示:過度追求預測準確度可能反而偏離獲利目標。本研究所提出之完整框
架及此一觀察,能為後續類似的 NBA 預測及應用研究提供方法論基礎與啟發。
常見的方法,過往研究文獻大多止於模型預測結果,著重於將準確率(Accuracy, Acc)
作為主要評估指標,較少有延伸至實務應用之完整探討。然而在現實生活應用中,單
純追求準確率的最大化未必能將其成果轉化為有實際價值的資訊,例如是否要對某場
勝率較高的球隊下注。有鑑於此,本研究提出一個投注應用之端對端 NBA 勝負預測與
資金管理框架,整體涵蓋了特徵工程、特徵選擇及解讀、機器學習預測、機率融合與
投注策略等環節,並以 2016–17 至 2025–26 共十個賽季的 NBA 賽事資料進行系統性實
證。
研究方法為兩階段的實驗,全程嚴格遵守訓練集(train)/開發集(dev)/測試集
(test)三段式切分原則,避免資料洩漏。首先是勝負預測階段,先建構五組資料集
(a、a′、b、c、d),分析各特徵的重要性,並比較過濾式(Pearson)、包裹式(RFECV)
及嵌入式(ElasticNetCV)三類特徵選擇方法對七個分類模型(Lasso、Logistic、Ridge、
SVM、Random Forest、XGBoost、Stack)之預測效益;接著是投注模擬階段,設計四
種策略,於前階段選定之資料集上實驗,逐步疊加期望值(EV)篩選、Kelly 公式注
碼決策、雙視角共識(consensus)機制與分數帶(probability band)過濾等風險控制策
略。
至於主要結果,本研究設計之新計算特徵(Elo 動態實力指標、賽程與旅行特徵、
i
團隊爆發力指標)使跨模型平均 Acc 由 0.6334 提升至 0.6547,而 Stack 配合完整特徵
集達成本研究最高之單一組合 Acc 67.62%。在投注模擬階段中,XGBoost 配合 RFECV
篩選之資料集與雙重過濾投注策略,先於 2024–25 開發集取得投注報酬率(ROI)+13.55%
的成績,再於完全獨立之 2025–26 樣本外賽季達成 ROI +15.53%,此結果較市場 fa-
vorite baseline 之 −3.37% 高出 18.90 個百分點。
值得指出的是,XGBoost 於勝負預測階段在開發集之 Acc(63.25%)為七個模型中
最低,卻於投注階段取得最高報酬,此 Acc 與 ROI 解耦(decouple)現象為本研究核
心發現之一,揭示了預測準確度與投注獲利能力為兩個本質不同之評估維度,並點出
一項實務啟示:過度追求預測準確度可能反而偏離獲利目標。本研究所提出之完整框
架及此一觀察,能為後續類似的 NBA 預測及應用研究提供方法論基礎與啟發。
NBA game outcome prediction is a classic problem in sports analytics, and machine learn-
ing has become the dominant approach for tackling it. Many studies conclude at the model-
prediction stage and treat accuracy as the primary evaluation metric. They rarely extend the
analysis to practical applications aspect. However, in reality, maximizing accuracy alone doesn’t
always translate into actionable value—for example, whether to wager on a team that the model
favors. Motivated by this gap, this thesis proposes an end-to-end framework for NBA win/loss
prediction and bankroll management oriented toward betting applications, integrating feature
engineering, feature selection and interpretation, machine-learning prediction, probability fu-
sion, and betting strategy. The framework is empirically validated on ten NBA seasons from
2016–17 to 2025–26.
The methodology comprises a two-stage experiment that strictly follows a train / dev / test
split to avoid data leakage. In the prediction stage, five datasets (a, a′, b, c, d) are constructed
to analyze feature importance and compare three feature-selection methods—filter-based (Pear-
son), wrapper-based (RFECV), and embedded (ElasticNetCV)—across seven models: Lasso,
Logistic, Ridge, SVM, Random Forest, XGBoost, and Stack. In the betting-simulation stage,
four strategies are designed on the dataset selected from the prediction stage, progressively lay-
iii
ering expected-value (EV) filtering, Kelly stake sizing, a dual-view consensus mechanism, and
a probability-band filter as risk-control components.
The newly designed features—Elo ratings, game schedule and travel load, and team ex-
plosiveness indicators—raise the cross-model average accuracy from 0.6334 to 0.6547, with
Stack combined with the full feature set attaining the highest single-combination accuracy
of 67.62%. In the betting simulation, XGBoost combined with the RFECV-filtered dataset
and the dual-filter strategy achieves an ROI of +13.55% on the 2024–25 development set and
+15.53% on the fully independent 2025–26 out-of-sample season, which is 18.90 percentage
points above the market favorite baseline of −3.37%.
Notably, although XGBoost obtains the lowest accuracy (63.25%) among the seven models
in the prediction stage, it attains the highest return in the betting stage. This accuracy–ROI
decoupling is a central finding of the thesis, revealing that predictive accuracy and betting prof-
itability are fundamentally distinct evaluation dimensions, thereby pinpointing a key practical
implication: an excessive pursuit of predictive accuracy may inadvertently result in a deviation
from profitability goals. The proposed framework, together with this observation, provides a
methodological foundation and ideas for subsequent research on NBA prediction and applica-
tions.
ing has become the dominant approach for tackling it. Many studies conclude at the model-
prediction stage and treat accuracy as the primary evaluation metric. They rarely extend the
analysis to practical applications aspect. However, in reality, maximizing accuracy alone doesn’t
always translate into actionable value—for example, whether to wager on a team that the model
favors. Motivated by this gap, this thesis proposes an end-to-end framework for NBA win/loss
prediction and bankroll management oriented toward betting applications, integrating feature
engineering, feature selection and interpretation, machine-learning prediction, probability fu-
sion, and betting strategy. The framework is empirically validated on ten NBA seasons from
2016–17 to 2025–26.
The methodology comprises a two-stage experiment that strictly follows a train / dev / test
split to avoid data leakage. In the prediction stage, five datasets (a, a′, b, c, d) are constructed
to analyze feature importance and compare three feature-selection methods—filter-based (Pear-
son), wrapper-based (RFECV), and embedded (ElasticNetCV)—across seven models: Lasso,
Logistic, Ridge, SVM, Random Forest, XGBoost, and Stack. In the betting-simulation stage,
four strategies are designed on the dataset selected from the prediction stage, progressively lay-
iii
ering expected-value (EV) filtering, Kelly stake sizing, a dual-view consensus mechanism, and
a probability-band filter as risk-control components.
The newly designed features—Elo ratings, game schedule and travel load, and team ex-
plosiveness indicators—raise the cross-model average accuracy from 0.6334 to 0.6547, with
Stack combined with the full feature set attaining the highest single-combination accuracy
of 67.62%. In the betting simulation, XGBoost combined with the RFECV-filtered dataset
and the dual-filter strategy achieves an ROI of +13.55% on the 2024–25 development set and
+15.53% on the fully independent 2025–26 out-of-sample season, which is 18.90 percentage
points above the market favorite baseline of −3.37%.
Notably, although XGBoost obtains the lowest accuracy (63.25%) among the seven models
in the prediction stage, it attains the highest return in the betting stage. This accuracy–ROI
decoupling is a central finding of the thesis, revealing that predictive accuracy and betting prof-
itability are fundamentally distinct evaluation dimensions, thereby pinpointing a key practical
implication: an excessive pursuit of predictive accuracy may inadvertently result in a deviation
from profitability goals. The proposed framework, together with this observation, provides a
methodological foundation and ideas for subsequent research on NBA prediction and applica-
tions.