What does Moving Festivals and Promotion Calendars conclude, in numbers, about “Closing the Loop: a Promotion Calendar for Malaysia, Singapore and Taiwan, the Moving Festival Aligner and a Pre-Registered Test”?
Answer: Chapter 8 gives promotion calendars for Malaysia, Singapore and Taiwan, the distilled Moving Festival Aligner and a pre-registered test, and shows that the claim fails when the festival lift is below about 0.145 of the illustrative model's. The book contains 24 runnable Python programs.
Scope of the numbers: Sales series and lead times are illustrative; all calculations are generated by the book's programs. Every festival date follows the official announcement; the book treats the religious and cultural meaning of each festival with respect, passes no judgment on it, and is general analysis, not individualised business advice.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.145
| noise: sd of a monthly YoY with no festival = 0.0203 | ||
| weight w | worst same-date error (Mar, Apr 2025) | > 2 sd? |
| 0.00 | 0.0031 | no |
| 0.02 | 0.0071 | no |
| 0.05 | 0.0153 | no |
| 0.10 | 0.0288 | no |
| 0.20 | 0.0548 | yes |
| 0.40 | 0.1041 | yes |
| 0.60 | 0.1499 | yes |
| 1.00 | 0.2348 | yes |
| threshold weight w* = 0.145 |
Show the full program
# Chapter 8. p83: below which festival lift does the claim fail?
# Model: the shop of p21 (Aidilfitri only, official 2024 and 2025
# dates, weekday factors), with festival weight w scaling the lift
# profile: daily factor 1 + w x (lift - 1). Without noise we get the
# same-date YoY error of March and April 2025; with noise (sigma
# 0.08, fixed seed, 200 replicate years) we get the spread of a
# monthly YoY when nothing moves. The claim "same-date YoY is badly
# distorted" holds only where the error exceeds twice that spread.
import math
import random
import statistics
from datetime import date, timedelta
G, SIG, REPS = 0.04, 0.08, 200
WEEK = [1.0, 0.95, 0.95, 1.0, 1.1, 1.25, 1.2]
RAYA = {2024: date(2024, 4, 10), 2025: date(2025, 3, 31)}
def lift(k):
if -21 <= k <= -1:
return 1.0 + 1.2 * (22 + k) / 21
if 0 <= k <= 2:
return 0.35
if 3 <= k <= 6:
return 0.8
return 1.0
def month(y, m, w, rng=None):
d, out = date(y, m, 1), []
while d.month == m:
v = (1 + G) ** (y - 2024) * WEEK[d.weekday()]
v = v * (1 + w * (lift((d - RAYA[y]).days) - 1))
if rng is not None:
v = v * math.exp(rng.gauss(0.0, SIG))
out.append(v)
d += timedelta(days=1)
return math.fsum(out)
def err(w):
return max(abs(month(2025, m, w) / month(2024, m, w) - 1 - G)
for m in (3, 4))
if __name__ == "__main__":
rng = random.Random(20261113)
yo = [month(2025, 6, 0.0, rng) / month(2024, 6, 0.0, rng) - 1
for _ in range(REPS)]
sd = statistics.stdev(yo)
print("noise: sd of a monthly YoY with no festival = {:.4f}".format(sd))
print("weight w worst same-date error (Mar, Apr 2025) > 2 sd?")
for w in (0.0, 0.02, 0.05, 0.1, 0.2, 0.4, 0.6, 1.0):
e = err(w)
print("{:6.2f} {:.4f} {}"
.format(w, e, "yes" if e > 2 * sd else "no"))
lo, hi = 0.0, 1.0
for _ in range(40):
mid = (lo + hi) / 2
if err(mid) > 2 * sd:
hi = mid
else:
lo = mid
print("threshold weight w* = {:.3f}".format(hi))Single source and citation
Fan, Y. (2026). Moving Festival Calendars in Multicultural Malaysia: Overlaps of Hari Raya, Chinese New Year and Deepavali and the Alignment of Promotional Schedules (Version 1.0.0), Chapter 8: Closing the Loop: a Promotion Calendar for Malaysia, Singapore and Taiwan, the Moving Festival Aligner and a Pre-Registered Test. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-313 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026313,
author = {Fan, Yafu},
title = {Moving Festival Calendars in Multicultural Malaysia: Overlaps of Hari Raya, Chinese New Year and Deepavali and the Alignment of Promotional Schedules},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Eleven Days of Drift: the Arithmetic Islamic Calendar, the Thirty-Year Leap Cycle and the Official Announcement of Aidilfitri
- Chapter 2 · The Same-Date Trap: How Moving Festivals Distort Year-on-Year Comparisons
- Chapter 3 · The Mean Synodic Month and Chinese New Year: the Solstice Rule, Periodic Terms and Exceptional Years
- Chapter 4 · The Sidereal Window of Deepavali: Entry into Libra, the Eve of the New Moon and the Gap between Time Zones
- Chapter 5 · How Often Festivals Meet: Why a Uniform-Phase Model Fails
- Chapter 6 · Festival-Aligned Comparisons: an Event-Time Map, the Split of Ramadan and the Cost of Date Errors
- Chapter 7 · Eastern and Western Classics Examined: the Jingchu Suishi Ji and Bede's The Reckoning of Time