Discrete Stochastic Delivery Modeling - Kartuzy, PL 83-300
A Non-Homogeneous Markov and Bayesian Recovery Model for Right-Censored Discrete Transit in Polish Postal Infrastructure
Abstract
We construct a non-homogeneous discrete-time Markov chain over the Polish postal pipeline from dispatch to delivery at Kartuzy, postal code 83-300, gated by a business-day indicator. Total transit latency is modeled as the convolution of an internal dispatch latency and a postal transit latency via probability generating functions, with parameters calibrated to a single empirical anchor (Mom baseline, Aug 14 - Aug 22). A conjugate Bayesian update yields a posterior transit distribution, and renewal-theoretic conditioning on right-censoring at operational day 4 (Friday, Aug 21) produces a truncated arrival distribution. We derive the posterior mass function, its expectation, variance and skewness, and a 97% credible interval for arrival at Kartuzy.
Axiomatic probability space and filtration
Let time be discrete, . The sample space carries the arrival calendar day together with the latent latencies that determine it.
The triple is a probability space. The filtration is the information revealed up to day : the dispatch status, the observed non-arrival, and the business-day calendar. It is a filtration because for , and the arrival time is a stopping time.
Non-homogeneous discrete-time Markov chain
The physical pipeline is a Markov chain on the state vector :
Let be the business-day gating indicator and the nominal one-step transition matrix. The time-varying transition matrix is
On a business day and ; on a non-business day and , so the chain holds in place. With advance probabilities from state :
Lemma - Stochasticity and absorption
Each row of sums to 1, so is row-stochastic. State is absorbing, , and the arrival time is the first-passage time to .
Convolution of latency via generating functions
Total operational latency is the sum of independent components. The internal dispatch latency is two-point,
and the postal transit latency is calibrated on the Mom baseline , , a six-business-day interval:
The probability generating function of the total latency factors:
Expanding the product is the discrete convolution, with support :
Theorem - Moments from the generating function
Proof. Since , termwise differentiation at yields the factorial moments, and the variance identity follows from .
The unconditioned mass function over :
| l | Pr(L = l) |
|---|---|
| 4 | 0.125 |
| 5 | 0.375 |
| 6 | 0.350 |
| 7 | 0.125 |
| 8 | 0.025 |
Bayesian likelihood and conjugate update
Model the postal transit probabilities as over . The single empirical anchor is the Mom baseline, a six-business-day total latency over .
Assumptions. Only one empirical observation is available, so the transit distribution is weakly identified. We adopt a symmetric Dirichlet prior and treat the supplied transit distribution as the posterior calibrated to this single anchor. No additional empirical observations are asserted.
The Dirichlet-multinomial pair is conjugate, so the posterior is again Dirichlet:
The posterior mode is with . Calibrating to the supplied transit distribution gives .
Renewal theory and discrete hazard rate
The arrival time is a first-passage (renewal) time. Define survival and hazard:
The renewal identities hold:
Evaluated on the conditioned distribution (Section 6):
Right-censoring at t=4 and conditional distribution
Arrival at operational day (Friday, Aug 21) was not observed. It is treated as right-censored and rejected from the support, conditioning on .
Theorem - Truncated conditional distribution
Proof. Since for , the conditional probability equals . The normalizing mass is , and normalization is exact.
The resulting posterior mass function over the support :
The support and normalization are summarized in the calendar table:
| t | Date | Day | Note |
|---|---|---|---|
| 0 | Aug 17 | Mon | dispatch |
| 1 | Aug 18 | Tue | |
| 2 | Aug 19 | Wed | |
| 3 | Aug 20 | Thu | |
| 4 | Aug 21 | Fri | right-censored |
| 5 | Aug 24 | Mon | |
| 6 | Aug 25 | Tue | |
| 7 | Aug 26 | Wed | |
| 8 | Aug 27 | Thu |
Moments, sensitivity and credible interval
Using the exact conditioned probabilities over :
Theorem - Expectation
Proof. . The expected operational day rounds to , Tuesday, Aug 25.
Theorem - Variance
Proof. and .
Theorem - Skewness
Proof. With third raw moment and , the positive skew indicates a right tail toward Aug 27.
The posterior mass function, summing to 100% subject to rounding:
| Date | Day | Pr | Distribution |
|---|---|---|---|
| Aug 24 | Mon | 42.86% | 0.429 |
| Aug 25 | Tue | 40.00% | 0.400 |
| Aug 26 | Wed | 14.29% | 0.143 |
| Aug 27 | Thu | 2.85% | 0.029 |
Parameter sensitivity table - illustrative diagnostic only. The values below vary the dispatch-latency split while holding the postal transit distribution fixed. They are a numerical check of the model's own structure, not new empirical observations.
| p | E[L] | E[T_arr | censored] |
|---|---|---|
| 0.40 | 5.6500 | 5.8333 |
| 0.45 | 5.6000 | 5.8028 |
| 0.50 | 5.5500 | 5.7714 |
| 0.55 | 5.5000 | 5.7391 |
| 0.60 | 5.4500 | 5.7059 |
The baseline reproduces , i.e. Tuesday, Aug 25.
Theorem - 97% credible interval
The model assigns 97% of the conditioned mass to Aug 24 - Aug 26, centered on the expected arrival of Tuesday, Aug 25.