1. 数据源与清洗口径(秘鲁价格仓)
- 数据文件:
PE_Price_Warehouse.parquet(秘鲁索尔 PEN / S/)。
- 范围过滤:严格保留
In_Scope = 'Y',覆盖两大核心电商渠道 Falabella 与 Hiraoka。
- 时间跨度:2026-09-11 至最新快照日(当前为 2026-11-29,共 60 个快照日;10/13 起逐日高频采集)。
- 覆盖品类与品牌:4 大品类(Phone / Wearable / Tablet / Audio)、8 大品牌组(Huawei、Samsung、Apple、Xiaomi[含 Redmi/POCO]、Honor、Motorola、Garmin、Lenovo)。
规范商品追踪键(去重逻辑)
sku_key = Config_ID (回退 Unified_Name) + ("|B:" + Bundle_Name 若 Is_Bundled='Y' else "|S")
同一天、同一渠道、同一配置(含不同颜色或同日多次采集)自动聚合取当日最低 Current_Price;裸机(|S)与捆绑套装(|B:*)严格隔离,绝不跨形态混算基准价。
2. 大促窗口定义
- Cyber Wow (3.ª edición):
2026-11-02 至 2026-11-05(4 天完整覆盖)。
- Black Friday 2026:
2026-11-27 至 2026-11-30(随最新采集自动滚动更新,当前含 11/27–11/29)。
大促价格取值
Event_Price(sku_key, Channel) = min(Current_Price during [event_start, event_end])
所有基准价与大促价严格在同一 (sku_key, Channel) 内匹配,避免跨渠道结构性价差干扰折扣测算。
3. 四大折扣基准维度与水分监测
前14天基准 d14 = (Median[start-14d, start-1d] - Event_Price) / Median[start-14d, start-1d]
前30天基准 d30 = (Median[start-30d, start-1d] - Event_Price) / Median[start-30d, start-1d] [默认]
首期14天 dl14 = (Median[first_seen, first_seen+13d] - Event_Price) / Median[first_seen, first_seen+13d]
标称折扣 drrp = (RRP_Price - Event_Price) / RRP_Price
- RRP 水分差值 (
rrp_gap = drrp - d30):衡量前台划线折扣比真实前30天降幅高出的百分点(pp),数值越大说明划线原价水分越高。
- 先涨后降预警 (
pre_markup = (p14 - p30) / p30 > 5%):若某 SKU 在大促前两周中位价明显高于前30天中位价,系统自动打上黄色“预涨”标签。
提示:黑五前 30 天窗口(10/28–11/26)包含 Cyber Wow(11/02–11/05),若某商品在 Cyber 后未回调价格,其黑五 d30 显得收敛,此时可结合「首期14天基准 (dl14)」和 60 天日度曲线交叉验证。
4. 分品类 PEN 索尔价带与工程架构
- Phone:<S/500 · S/500–999 · S/1,000–1,999 · S/2,000–3,499 · ≥S/3,500
- Wearable:<S/300 · S/300–699 · S/700–1,199 · S/1,200–1,999 · ≥S/2,000
- Tablet:<S/600 · S/600–1,199 · S/1,200–1,999 · S/2,000–2,999 · ≥S/3,000
- Audio:<S/150 · S/150–299 · S/300–599 · S/600–999 · ≥S/1,000
两类脚本分离与部署架构
1) 数据采集/处理:scripts/extract_data.py → dist/data/promo_data.json
2) 静态站点生成:scripts/build_site.py → dist/*.html, *.css, *.js
3) 独立部署脚本:deploy.ps1 → Cloudflare Pages (peru-promo-discount)
1. Data Source & Cleaning (Peru Price Warehouse)
- Source:
PE_Price_Warehouse.parquet (Currency: Peruvian Sol PEN / S/).
- Scope: Strictly filtered to
In_Scope = 'Y' across Peru's two core retail channels: Falabella and Hiraoka.
- Coverage: 2026-09-11 through latest snapshot (60 snapshot days, daily frequency from Oct 13 onward).
- Taxonomy: 4 Categories (Phone / Wearable / Tablet / Audio) and 8 Brand Groups (Huawei, Samsung, Apple, Xiaomi [incl. Redmi/POCO], Honor, Motorola, Garmin, Lenovo).
Canonical SKU Tracking Key
sku_key = Config_ID (fallback Unified_Name) + ("|B:" + Bundle_Name if Is_Bundled='Y' else "|S")
Same-day color variants and multiple intra-day scrapes collapse to daily minimum Current_Price; standalone units (|S) and gift bundles (|B:*) are strictly isolated.
2. Promotional Windows
- Cyber Wow (3rd Edition):
2026-11-02 to 2026-11-05 (complete 4-day window).
- Black Friday 2026:
2026-11-27 to 2026-11-30 (auto-expands as new daily snapshots arrive).
Event Price Definition
Event_Price(sku_key, Channel) = min(Current_Price during [event_start, event_end])
All baselines are computed strictly within the same (sku_key, Channel) pair.
3. Four Discount Baselines & Integrity Checks
Pre-14d d14 = (Median[start-14d, start-1d] - Event_Price) / Median[start-14d, start-1d]
Pre-30d d30 = (Median[start-30d, start-1d] - Event_Price) / Median[start-30d, start-1d] [Default]
First14d dl14 = (Median[first_seen, first_seen+13d] - Event_Price) / Median[first_seen, first_seen+13d]
Nominal drrp = (RRP_Price - Event_Price) / RRP_Price
- RRP Inflation Gap (
rrp_gap = drrp - d30): Measures how many percentage points strike-through RRP badges overstate true 30-day price cuts.
- Pre-Hike Detector (
pre_markup = (p14 - p30) / p30 > 5%): Flags SKUs whose prices jumped >5% in the 14 days leading into an event.
Note: Black Friday's 30-day lookback includes Cyber Wow (Nov 2–5). Use First-14d (dl14) and the 60-day trend curve alongside Pre-30d (d30) to see sustained post-Cyber markdowns.
4. Category PEN Ladders & Decoupled Architecture
- Phone: <S/500 · S/500–999 · S/1,000–1,999 · S/2,000–3,499 · ≥S/3,500
- Wearable: <S/300 · S/300–699 · S/700–1,199 · S/1,200–1,999 · ≥S/2,000
- Tablet: <S/600 · S/600–1,199 · S/1,200–1,999 · S/2,000–2,999 · ≥S/3,000
- Audio: <S/150 · S/150–299 · S/300–599 · S/600–999 · ≥S/1,000
Decoupled Pipeline
1) Data ETL: scripts/extract_data.py → dist/data/promo_data.json
2) Site Build: scripts/build_site.py → dist/*.html, *.css, *.js
3) Deploy: deploy.ps1 → Cloudflare Pages (peru-promo-discount)