What does Revenue Management and Slot Packing for Space Rentals conclude, in numbers, about “Closing the Loop: The Studio Price Table and a Pre-Registered Test”?
Answer: Chapter 8 gives the weekly procedure for the studio price table, the Slot Protection Level Calculator and a pre-registered switchback test: 196 weeks for one studio, 25 weeks with eight studios in parallel. Marked boxes separate published evidence, runnable Python calculations (18 programs), classical sources and the author's hypotheses.
Scope of the numbers: Chapter 1 computes exact expectations for an illustrative month of 20 studio-days: protecting 10 days lifts monthly revenue from 47323.9 yuan to 57432.1 yuan, 21.36 % more, though simulation shows that protection earns less in 0.1900 of months. Marked boxes separate published evidence, runnable Python calculations (18 programs), classical sources and the author's hypotheses.
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: 196, 25
| weekly Littlewood level y* | 3 of 5 days |
| FCFS: mean 11066.8 sd 3517.9 | |
| protect: mean 12817.8 sd 5057.2 | |
| modelled effect 1751.1 yuan/week | 98 weeks per arm, 196 in all |
| 1 studio(s) in parallel | 196 calendar weeks |
| 4 studio(s) in parallel | 49 calendar weeks |
| 8 studio(s) in parallel | 25 calendar weeks |
| half the effect 875.5 yuan/week | 389 weeks per arm, 778 in all |
| 1 studio(s) in parallel | 778 calendar weeks |
| 4 studio(s) in parallel | 195 calendar weeks |
| 8 studio(s) in parallel | 98 calendar weeks |
Show the full program
# Chapter 8. p82: pre-registered switchback test, weeks needed.
# Unit: one studio-week of C = 5 days (p11 scaled to a week: full-day
# Poisson mean 2.25 at 4800, short-blocks-a-day Poisson mean 4 at 1800).
# Weeks alternate between FCFS and Littlewood protection. The exact mean
# and variance of weekly revenue under each rule come from enumerating
# both Poisson demands. Two-sided alpha 0.05, power 0.8:
# n per arm = (z_.975 + z_.8)^2 (var_a + var_b) / delta^2
# for the modelled effect and for half of it (the falsification line).
import math
from statistics import NormalDist
C, F_H, F_L, M_H, M_L, N = 5, 4800, 1800, 2.25, 4.0, 60
def pois(mean):
p = [math.exp(-mean)]
for k in range(1, N + 1):
p.append(p[-1] * mean / k)
return p
PH, PL = pois(M_H), pois(M_L)
def moments(y):
vals = []
for dh, ph in enumerate(PH):
for dl, pl in enumerate(PL):
sl = min(dl, C - y)
sh = min(dh, C - sl)
vals.append((ph * pl, F_H * sh + F_L * sl))
m = math.fsum(p * v for p, v in vals)
var = math.fsum(p * (v - m) ** 2 for p, v in vals)
return m, var
tail = [math.fsum(PH[k:]) for k in range(N + 1)]
ystar = max(y for y in range(C + 1) if F_H * tail[y] >= F_L)
m0, v0 = moments(0)
m1, v1 = moments(ystar)
z = NormalDist().inv_cdf(0.975) + NormalDist().inv_cdf(0.8)
print("weekly Littlewood level y* = %d of %d days" % (ystar, C))
print("FCFS: mean %.1f sd %.1f" % (m0, math.sqrt(v0)))
print("protect: mean %.1f sd %.1f" % (m1, math.sqrt(v1)))
for label, delta in (("modelled effect", m1 - m0),
("half the effect", (m1 - m0) / 2)):
n = math.ceil(z * z * (v0 + v1) / delta ** 2)
print("%s %.1f yuan/week: %d weeks per arm, %d in all"
% (label, delta, n, 2 * n))
for studios in (1, 4, 8):
print(" %d studio(s) in parallel: %d calendar weeks"
% (studios, math.ceil(2 * n / studios)))Single source and citation
Fan, Y. (2026). Dynamic Revenue Management and Slot Packing for Space Rentals: Nested Protection Levels and the Elimination of Fragmented Idle Time (Version 1.0.0), Chapter 8: Closing the Loop: The Studio Price Table and a Pre-Registered Test. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-282 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026282,
author = {Fan, Yafu},
title = {Dynamic Revenue Management and Slot Packing for Space Rentals: Nested Protection Levels and the Elimination of Fragmented Idle Time},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · The Cost of First Come, First Served: Littlewood's Two-Class Rule and the Full-Day Orders It Saves
- Chapter 2 · Nested Protection Levels: EMSR-a, EMSR-b and the Exact Optimum
- Chapter 3 · Bid Prices: How the Value of a Studio-Day Changes over the Booking Run
- Chapter 4 · Slot Packing: First-Fit Decreasing and Fragmented Idle Time
- Chapter 5 · Bookings at Fixed Times: Interval Partitioning and Weighted Interval Scheduling
- Chapter 6 · Price Ladders Posted in Full: Dynamic Pricing, a Promise Not to Cut, and Real Scarcity
- Chapter 7 · Classics of East and West: Season and Soil in the Qimin Yaoshu, and Ricardo's Differential Rent