Expected Wait Until the Next XRP Ledger Close
Last updated: November 29, 2026
Quick Overview
Assume XRP Ledger close intervals are independent and uniformly distributed between 3 and 5 seconds, and a payment is submitted at a uniformly random moment. Compute the expected wait until the next ledger close and the probability that the wait exceeds 3 seconds.
Ripple
November 29, 20260
0
0 solved
Assume XRP Ledger close intervals are independent and uniformly distributed between 3 and 5 seconds, and a payment is submitted at a uniformly random moment. Compute the expected wait until the next ledger close and the probability that the wait exceeds 3 seconds.
Ripple markets settlement in seconds, so data scientists working on payment latency SLAs need to reason correctly about time-to-settlement distributions. The interviewer is checking whether you spot the inspection paradox instead of answering half the mean interval.
What the Interviewer Expects
- Recognise that a random arrival lands in longer intervals more often
- Use the residual-life formula $E[L^2] / (2E[L])$
- Derive the residual density to get the tail probability
- Compare to the naive answer and explain the gap
- Connect to how you would measure this from real ledger close times
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- If a transaction misses the open ledger cutoff with probability p and waits an extra interval, what is the expected time to validation?
- How would you estimate the interval distribution from historical close times?
- Why might a p99 settlement SLA be a better product metric than the mean?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Closes form a renewal process with interval . The submission time is independent of the process and uniform over a long horizon. We want , the residual time to the next close, an...
Approach
The naive answer is half the mean interval, 2 seconds. That is wrong because a random moment is more likely to fall inside a long interval than a short one (length-biased sampling). Renewal theory giv...