We’ve provided a labeled training set for a fraudulent booking model.
Each record is a historical Airbnb booking and its corresponding characteristics (or features). These features are:
price: dollar amount paid for the reservationnights: number of nightsmarket_avg_price_per_night: average price per night paid in the marketpast_delta_checkin: days between past reservations by the guestlisting_market: market of the listinghost_past_nights: number of prior nights hosted by the hostds: date-stamp of the reservationlabel: whether the reservation is fake (1) or not (0)pred_score: risk score from a model trained on this data set
Question:
Explore the data set and propose a good imputation strategy for missing values.
这道 Airbnb 数据处理题的核心是:先分析各字段的缺失模式,再针对不同类型特征制定有区分度的填补方案。像数值型字段可以按市场、日期或分组统计进行中位数 / 分位数填补,并结合缺失指示器保留“是否缺失”这一信号;类别型字段可用众数、专属缺失类别或按市场分层填补;对于时间相关特征,还要注意避免未来信息泄露。若缺失本身与欺诈风险相关,建议把“缺失”当作一种特征来源,而不是简单删除,从而提升模型对异常预订的能力。
正文完