Determining Optimal Real-Time Group Video Capacity via A/B Testing
Statistics & ExperimentsModel answerLast updated
Design a multi-arm experiment to pick the optimal group video call limit among 4, 8, and 16 participants while accounting for network interference, safety guardrails, and non-linear effects.
You need to establish the optimal maximum participant limit for a real-time group video calling feature. Your product team wants to evaluate three specific caps: 4, 8, and 16 participants.
Design a comprehensive 4-week experimental framework to select the single best limit (or segment-specific limits) for production.
Your proposal must directly address the following five areas:
- Experimental Design Strategy: Choose between a fixed multi-arm study and an adaptive multi-armed bandit given the fixed 4-week timeline. Contrast the exploration-exploitation trade-offs, inference validity, and statistical power of your choice.
- Metrics Framework: Define your target population (triggering condition), primary success metric (accounting for dilution), secondary engagement metrics, and critical guardrails (latency quantiles, success rates, crash rates, and client/server infrastructure constraints).
- Randomization Unit & Stratification: Explain how you will handle network spillover and interference effects when participants in the same call might belong to different experimental variants. Detail your stratification parameters across device categories, connection speeds, and geographical regions.
- Evaluating Non-Monotonicity & Heterogeneity: Provide an analytical strategy to detect non-linear performance (e.g., cap 8 outperforming both 4 and 16). Define your approach to subgroup analysis (e.g., casual social vs. professional team calls) while controlling for false discovery rates.
- Safety Ramps, Monitoring, & Stopping Rules: Outline early-phase rollout steps, interim evaluation protocols, safety-driven adaptive traffic shifts, and automatic rollback rules for breaches of tail latency or call quality SLOs.
Hints
Hint 1
Consider how group calls create non-independent data units: if User A initiates a call capped at 16 and invites User B (assigned to cap 4), whose assignment takes precedence?
Hint 2
Standard A/B tests often suffer from heavy metric dilution if every app user is included; think carefully about triggered metric logging.
Hint 3
Tail latency (p95/p99) on real-time media streams generally cannot be averaged linearly; consider variance estimation techniques for aggregated cluster data.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Comprehensive Experimental Design: Group Call Size Limits
1. Experimental Design Strategy
Decision: Fixed Multi-Arm Design with Safety-Based Ramp Control
We choose a 3-arm fixed-allocation randomized design (Arms: Cap 4, Cap 8, Cap 16) with an initial safety phase, rather than a dynamic context-free or contextual bandit algorithm.
┌─── Arm 4 (Fixed 33.3% after ramp) ───┐
│ │
Traffic ─── Arm 8 (Fixed 33.3% after ramp) ───┴──> 3-Week Stable Phase
│ │ (Weekly Seasonality)
└─── Arm 16 (Fixed 33.3% after ramp) ───┘
Justification against Multi-Armed Bandits:
- Delayed & Multi-Objective Signals: Primary business impact (such as 7-day user retention and habituated call frequency) takes days to observe. Multi-armed bandits depend on immediate feedback loops. Furthermore, adjusting allocations based solely on short-term call volume risks shifting traffic toward an arm that silently degrades p99 latency or increases crash rates.
- Inference Integrity & Seasonality: Dynamic traffic shifting introduces temporal confounding. Weekday vs. weekend call dynamics differ drastically. If a bandit throttles an arm early during weekdays, it loses statistical power to evaluate weekend behavior.
- Interference & Unit Consistency: Group calls inherently violate the Independent and Identically Distributed (IID) assumption required by multi-armed bandit reward estimators.
- Product Decision Goal: The objective is to make a durable, long-term infrastructure and product policy decision, not to maximize short-term yield during the 4-week trial. The marginal regret saved by a bandit is negligible compared to the cost of selecting an incorrect global cap.
Experiment Schedule (4-Week Window):
- Days 1–3: Safety Ramp-Up & Telemetry Verification (Canary stage).
- Days 4–24 (3 Full Weeks): Balanced traffic allocation capturing 3 complete weekly business cycles.
- Days 25–28: Final inference window, subgroup evaluation, and decision sign-off.
2. Metrics Framework & Guardrails
Target Population & Triggered Logging
Including all active platform users dilutes the signal because most app sessions do not involve group calls.
- Trigger Event: A user enters the group call setup flow or attempts to launch a call with $\ge 3$ invitees.
- Counterfactual Logging: For every call attempt, log whether the call would have been constrained by caps 4, 8, or 16 regardless of the user's assigned arm. This allows a high-power triggered analysis isolated to users impacted by the cap.
Total Active Users ──> Group Call Intent (≥3 invitees) ──> Logged Counterfactual Impact
└──> Triggered Analysis Cohort
Metric Hierarchy
| Category | Metric | Definition & Formula | Variance Reduction |
|---|---|---|---|
| Primary | Successful Group Starts per Eligible User | $\frac{\text{Calls with } \ge 2 \text{ members connected for } \ge 30\text{s}}{\text{Total Triggered Eligible Users}}$ | CUPED using pre-experiment call attempts as baseline covariate. |
| Secondary | Weekly Active Callers (7D Retention) | % of triggered users who start another group call within 7 days. | Logistic regression with pre-period usage controls. |
| Secondary | Call Duration Volume | Total participant-minutes per user per week. | Winsorized at the 99th percentile to limit outlier distortion. |
| Secondary | Invite Conversion Rate | $\frac{\text{Accepted Group Call Invites}}{\text{Total Group Call Invites Sent}}$ | Aggregated at the call cluster level. |
Reliability & Quality Guardrails (Non-Inferiority Criteria)
Guardrail evaluations compare Caps 8 and 16 against Cap 4 baseline.
- Call Connection Failure Rate: Non-inferiority margin $\le +0.35$ percentage points relative to Cap 4.
- Media Stream Join Latency (p95 & p99):
- Relative degradation must not exceed $+5%$ (p95) and $+10%$ (p99).
- Absolute constraint: Global p99 join latency must stay $< 3.0$ seconds.
- Application Crash Rate: Non-inferiority margin $\le +0.02$ percentage points per call-hour.
- Client & Infrastructure Constraints:
- Thermal throttling & frame drop rate on low-tier mobile devices ($< +2%$ increase).
- Selective Forwarding Unit (SFU) server CPU load ($< 80%$ peak utilization per server instance).
Note on Quantiles: p95 and p99 latency metrics cannot be evaluated via standard sample averages. Standard errors are computed using cluster bootstrapping over call clusters.
3. Interference & Stratified Randomization
Mitigating Network Interference
If User A (assigned Cap 16) initiates a call with Users B and C (assigned Cap 4), an assignment conflict arises:
- Option A (Initiator Rule): The caller's variant sets the room cap. While simple, control users participating in 16-person calls experience treated conditions, contaminating the control group.
- Option B (Graph Cluster Randomization - Preferred): Build an ego-network interaction graph from historical 60-day call data. Apply community detection (e.g., Louvain or Label Propagation) to group frequently co-calling users into clusters. Merge households (shared IP/device fingerprints) into single nodes.
Randomization is executed at the Cluster Level.
[User Network Graph] ──> [Louvain Community Detection] ──> [Clusters assigned to Cap 4, 8, or 16]
Stratification Protocol
To prevent variance imbalance across client hardware and network capabilities, clusters are assigned via block randomization using the dominant characteristics of each cluster:
- Hardware Tier: Low-end, Mid-tier, Flagship.
- Primary Network: Cellular (3G/4G/5G) vs. Wi-Fi.
- Geographic Region: North America, LATAM, EMEA, APAC.
- Cluster Size Class: Small (3–5 members), Medium (6–10 members), Large ($> 10$ members).
Inference Model with Clustering
Statistical testing employs Cluster-Robust Standard Errors (CRSE) aggregated at the network cluster level:
$$Y_{ij} = \beta_0 + \beta_1 \text{Arm8}{ij} + \beta_2 \text{Arm16}{ij} + \theta X_{ij,\text{pre}} + \gamma_{\text{stratum}} + \varepsilon_{ij}$$
Where $Y_{ij}$ is the outcome for user $i$ in cluster $j$, and $X_{ij,\text{pre}}$ represents the pre-period CUPED covariate.
4. Evaluating Non-Monotonicity & Heterogeneity
Non-Monotonic Preference Strategy
Call satisfaction is often non-monotonic. Cap 8 may outperform Cap 4 by facilitating larger groups, while Cap 16 might underperform Cap 8 due to screen real estate constraints, audio cross-talk, or hardware throttling.
Primary Metric Response Curve (Non-Monotonic Example)
Successful Starts
▲
│ ┌───┐ (Cap 8 Optimal)
│ │ 8 │
│ ┌───┐ └───┘
│ │ 4 │ ┌────┐
│ └───┘ │ 16 │
│ └────┘
└─────────────────────────► Participant Limit
To test non-monotonicity:
- Treat the treatment parameter as categorical, not as a continuous variable.
- Define two distinct primary contrasts:
- Contrast 1 ($C_1$): Cap 8 vs. Cap 4
- Contrast 2 ($C_2$): Cap 16 vs. Cap 8
To claim Cap 8 is the global optimum, we require:
- Statistically significant superiority of Cap 8 over Cap 4 ($C_1 > 0$).
- Non-inferiority or superiority of Cap 8 relative to Cap 16 ($-C_2 \ge -\delta$).
Subgroup Analysis & Multiple Testing Correction
We evaluate heterogeneity across pre-specified dimensions:
- Call Context: Social/Friends vs. Workgroups/Professional (classified via graph density and call scheduling patterns).
- Device Tier: Low-end vs. High-end hardware.
False Discovery Rate (FDR) Control:
- Primary Family ($C_1, C_2$): Control the Family-Wise Error Rate (FWER) at $\alpha = 0.05$ using the Holm-Bonferroni method.
- Secondary & Subgroup Family: Apply a Hierarchical Bayesian Model with partial pooling:
$$\gamma_{\text{arm, segment}} \sim \mathcal{N}(\mu_{\text{arm}}, \tau^2)$$
Partial pooling shrinks unstable estimates in small sub-segments back toward the main effect, avoiding false positives from small samples. If a frequentist approach is required, apply Benjamini-Hochberg FDR control at $q = 0.10$ across all segment-level side tests.
5. Ramp Protocol, Safety Monitoring, & Rollback Rules
Adaptive Safety Ramp Sequence
To protect network stability and system SLA, Cap 16 uses a controlled exposure ramp:
Ramp Timeline:
Day 1: [Arm 4: 33%] [Arm 8: 33%] [Arm 16: 2% (Canary)] [Holdout: 32%]
Day 2-3: [Arm 4: 33%] [Arm 8: 33%] [Arm 16: 10%] [Holdout: 24%]
Day 4+: [Arm 4: 33.3%] [Arm 8: 33.3%] [Arm 16: 33.3%] [Holdout: 0%]
Traffic scaling for Cap 16 is contingent on 24-hour error-free operations at each step.
Real-Time Automated Rollback Conditions
An automated circuit breaker will halt and roll back an experimental arm to Cap 4 within 15 minutes if any of these conditions are met:
- p99 Join Latency: Exceeds $3.5\text{ seconds}$ across a moving 1-hour window.
- Server Infrastructure Stress: Media server CPU usage exceeds $85%$ continuously for $> 10\text{ minutes}$.
- Crash Spike: Mobile application crash rate increases by $\ge +0.05$ percentage points over baseline.
Interim Analysis Protocol
- Interim Looks: Two scheduled evaluations at Day 7 and Day 14.
- Alpha Spending Function: Use a O'Brien-Fleming group-sequential boundary to preserve the overall Type I error rate ($\alpha = 0.05$). This keeps early-stopping thresholds strict ($\alpha_{\text{day7}} \approx 0.0005$), preventing premature stops caused by transient novelty effects.
Summary Matrix for Final Decision
| Outcome Scenario | C1 (8 vs 4) | C2 (16 vs 8) | Guardrails (16) | Final Recommendation |
|---|---|---|---|---|
| Monotonic Growth | Positive | Positive | Passed | Launch Cap 16 globally. |
| Interior Peak | Positive | Negative / Flat | Passed / Failed | Launch Cap 8 globally. |
| Capacity Constrained | Positive | Positive | Failed (p99 Latency) | Launch Cap 8 globally; restrict Cap 16 to high-end devices on Wi-Fi. |
| No Impact | Neutral | Neutral | Passed | Retain Cap 4 (saves infrastructure cost). |