경매 유형별로 모델링하기
앞서 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)