為各種拍賣型態建模
你剛剛看到,在 eBay 拍賣中,Palm Pilot 的起標價似乎不會影響最後的成交價。現在來看看,當我們分別對三種拍賣型態(3 天、5 天、7 天)各自建模時,會發生什麼情況。
已提供 auctions。
本練習屬於課程
使用 Python 的 statsmodels 進行迴歸分析:中級
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Fit linear regression of price vs. opening bid and auction type, with an interaction, without intercept
mdl_price_vs_both = ____
# See the result
print(mdl_price_vs_both.params)