Computing expected moments of the Rényi parking problem on the circle
Abstract
A highly accurate and efficient method to compute the expected values of the count, sum, and squared norm of the sum of the centre vectors of a random maximal sized collection of non-overlapping unit diameter disks touching a fixed unit-diameter disk is presented. This extends earlier work on Rényi’s parking problem [Magyar Tud. Akad. Mat. Kutató Int. Közl. 3 (1-2), 1958, pp. 109-127]. Underlying the method is a splitting of the the problem conditional on the value of the first disk. This splitting is proven and then used to derive integral equations for the expectations. These equations take a lower block triangular form. They are solved using substitution and approximation of the integrals to very high accuracy using a polynomial approximation within the blocks.
1 Introduction
Consider the two-dimensional process of unit-diameter disks attaching randomly onto the circumference of a fixed central unit-diameter disk, as shown in Figure 1(a). The accretion is assumed to occur sequentially in such a way that the location of each additional disk is randomly and uniformly distributed over the available accessible part of the central disk. The process stops when no further attachment points are available. Herein we analyse the distributional properties of the vector sum of the location of the centres of the attached disks.
The problem is related to a well-known one-dimensional packing problem known as Rényi’s car parking problem [2]. [8] (see [5, pp 203–218] for an English translation) analysed a stochastic process arising when sequentially packing unit intervals representing parked cars into an interval (where and is a random number), such that the unit intervals do not overlap. The location of each additional car is randomly and uniformly distributed over the available subset of , and the packing is completed when all the remaining gaps are less than one. Rényi showed [8] that the expected value of the number of parked cars satisfies an integral equation resulting from a splitting property of the number of cars in sub-intervals on either side of the first parked car. He further established an exact value (approximately equal to ) for the limit of the expected packing density as the parking interval . After the first external disk has attached, our approach involves of mapping the available part of the circumference of the central disk onto the interval , as shown in Figure 1 (b) for the interval case which is appropriately mapped to the circular case in Figure 1 (a), and developing analogues of Rényi’s integral equation for features relevant to the disk accretion problem.
The expected maximal number of parked cars is computed explicitly for small . However the formulas get very complicated even for moderate , take a long time to compute and often evaluate poorly due to rounding errors. Thus numerical approaches were established for computing the expectation [3, 4]. These numerical approaches give highly accurate results. The approach taken here is similar in that it also uses a highly accurate piecewise polynomial approximation. In addition to computing the expected number of added disks, we compute the mean squared shift of the vector sum of centres of the attached disks. This requires the solution to high numerical accuracy of a system of integral equations. We review the underlying splitting property in Section 2 for various features relevant to the disk accretion problem and derive a system of integral equations for their expected values in Section 3. The method is then implemented using the new framework developed by [7]. The algorithm is summarised in Section 4 and final results are presented in Section 5.

2 Mathematical modelling
2.1 Rényi Point Process for
Let be the (random) number of unit-length cars parked in an interval when packing is completed. Rényi’s stochastic process defines a random set
which is a translational invariant point process, as shown below where the random variables are formally introduced.
Lemma 1 (Translational Invariance).
Proof idea:
The stochastic process for the interval generates a sequence of random variables where the are the random variables generated by the process for the interval . It follows that for all real .
A consequence of the one-dimensionality of the Rényi point process is a splitting property of the random set conditional on the first point . This conditional set is denoted by . The splitting property gives rise to the integral equations derived in the next section.
Lemma 2 (Splitting Property).
Proof:
When the random variables are generated, each element is either in or in . Now are independent if and as they cannot overlap. Consequently, the points in the two subsets generated for the conditional process produce two independent random sets and .
The Rényi point process gives rise to a random counting measure with parameters defined by
where is the atomic measure for which
for any set . It follows that the support of this measure is . This measure is defined for any set by
(1) |
In particular, one has . Note that is translational invariant, that is .
The conditional counting measure satisfies a splitting property
(2) |
This is a consequence of Lemma 2.1.
2.2 Randomly packing disks touching a central disk
We map the interval bijectively onto the unit circle by
(3) |
where
(4) |
as shown in Figure 1. Packing subintervals of then corresponds to packing unit diameter disks touching a central unit diameter disk, conditional on an initial disk being attached with its centre at . The centres of the touching disks are on the unit-radius circle . One can thus apply Rényi’s point processes to the addition of disks subsequent to the first added disk.
We now introduce real and vector valued features of the point process which are polynomial functions of the random variables invariant under permutations of the . In particular we consider features invariant under any translation of the parameters and . Clearly, is an example as and is a constant function of the . We introduce a 2-component vector-valued polynomial
(5) |
The value is the centre of mass of the circular polygon with vertices . The splitting property of follows from the definition and is
(6) |
But is not invariant under translations since
(7) |
We introduce the feature
(8) |
which is used in Section 5 to determine the expected shift in the centre of the polygon with vertices . We introduce another second degree feature
(9) |
which is better suited to the computations performed in Section 3. We show below how this feature relates to . This feature is also invariant under translations of the as it only depends on the differences and the translated difference is . This feature admits the following splitting property:
Proposition 3.
(10) |
Proof:
The sum in Equation (9) decomposes into three sums over , one sum over where and one sum over where as follows
The summand in each term is . We use the splitting property to derive integral equations in the next section for the expectation of and of .
We now have three features and connected by the following Lemma.
Proposition 4.
Proof:
One has
The result follows as lies on the unit circle.
3 Integral equations
3.1 Equation for
The random variables denoting the counts of parked vehicles (or disks) in Rényi’s model on an interval are translational invariant, that is for any . An application of these properties provides the following lemma.
Proposition 5.
Let be the expected number of vehicles in the interval . Then
(11) |
Proof:
Let be the (random) position of the first vehicle. For any , Equation (2) implies that the counting variable conditional on satisfies a splitting property
As is uniformly distributed over one has
As the counting variable is translational invariant, that is one solves the proposition by substituting the conditional count on the right-hand side using the splitting property and substituting and .
The expected count for a general interval is
3.2 Equation for
Proposition 6.
Proof:
3.3 Equation for
Proposition 7.
Let . Then
(13) |
where
Proof:
The splitting of , Equation (10) gives
Using the independence of and one gets
Noting that and integrating over with a change of integration variable in the last term gives the result
4 Numerical solution
Equations (11), (12) and (13), for the expectations , and are all integral equations of the form
(14) |
for some linear integral operator and function specified in the following sub-sections. In the Rényi process, a space of length less than 1 must be unoccupied, so for . Furthermore,
where for the vector case , and for the scalar cases and . We are interested in computing for . The solution of Equation (14) follows trivially for :
Now if one interprets the function as a block vector where each block corresponds to a function on an interval then the integral equation (14) is of block lower triangular structure and can be solved by repeated substitution. Specifically, one computes for by
which uses for . It then follows directly that is on each interval for and is continuous on .
The approach was implemented in the Julia language [1] using the ApproxFun package [7, 6]. The code is available on request from the first author. Plots of the functions , and are shown in Figure 2. Computed values agree to machine accuracy with analytic calculations of for [9], and our own analytic calculations of and and for .

5 Results
It remains to compute the expected values of features pertaining to the full set of attached disks. The expected total number of disks is
The expected vector sum of centres of the attached discs conditional on the first disk being located at is
By symmetry, the second component must be zero, and this is confirmed to machine accuracy. Finally, define the mean square shift of the sum of centres of the attached disks as
Its expected value is, using Proposition 2.2,
Acknowledgements
An initial version of the code was developed and tested using the cloud service for VSCode on juliahub.com.
References
- [1] Jeff Bezanson, Alan Edelman, Stefan Karpinski and Viral B. Shah “Julia: A Fresh Approach to Numerical Computing” In SIAM Review 59.1, 2017, pp. 65–98 DOI: 10.1137/141000671
- [2] Matthew P. Clay and Nándor J. Simányi “Rényi’s parking problem revisited” In Stoch. Dyn. 16.2, 2016, pp. 1660006, 11 DOI: 10.1142/S0219493716600066
- [3] M. Lal and P. Gillard “Evaluation of a constant associated with a parking problem” In Math. Comp. 28, 1974, pp. 561–564 DOI: 10.2307/2005927
- [4] George Marsaglia, Arif Zaman and John C. W. Marsaglia “Numerical solution of some classical differential-difference equations” In Math. Comp. 53.187, 1989, pp. 191–201 DOI: 10.2307/2008355
- [5] Institute Mathematical Statistics “Selected Translations in Mathematical Statistics and Probability.” American Mathematical Society, Providence, RI, 1963
- [6] S. Olver “ApproxFun.jl v0.13.14”, 2022 URL: https://github.com/JuliaApproximation/ApproxFun.jl
- [7] S. Olver and A Townsend “A practical framework for infinite-dimensional linear algebra” In Proceedings of the 1st First Workshop for High Performance Technical Computing in Dynamic Languages, 2014, pp. 57–62
- [8] Alfréd Rényi “On a one-dimensional problem concerning random space filling” In Magyar Tud. Akad. Mat. Kutató Int. Közl. 3.1-2, 1958, pp. 109–127
- [9] Howard Weiner “Elementary Treatment of the Parking Problem” In Sankhyā: The Indian Journal of Statistics, Series A (1961-2002) 31.4 Springer, 1969, pp. 483–486 URL: http://www.jstor.org/stable/25049616