## Figures

## Abstract

The theory of finite-size scaling explains how the singular behavior of thermodynamic quantities in the critical point of a phase transition emerges when the size of the system becomes infinite. Usually, this theory is presented in a phenomenological way. Here, we exactly demonstrate the existence of a finite-size scaling law for the Galton-Watson branching processes when the number of offsprings of each individual follows either a geometric distribution or a generalized geometric distribution. We also derive the corrections to scaling and the limits of validity of the finite-size scaling law away the critical point. A mapping between branching processes and random walks allows us to establish that these results also hold for the latter case, for which the order parameter turns out to be the probability of hitting a distant boundary.

**Citation: **Corral Á, Garcia-Millan R, Font-Clos F (2016) Exact Derivation of a Finite-Size Scaling Law and Corrections to Scaling in the Geometric Galton-Watson Process. PLoS ONE 11(9):
e0161586.
https://doi.org/10.1371/journal.pone.0161586

**Editor: **Enrique Hernandez-Lemus,
Instituto Nacional de Medicina Genomica, MEXICO

**Received: **June 28, 2016; **Accepted: **August 8, 2016; **Published: ** September 1, 2016

**Copyright: ** © 2016 Corral et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

**Data Availability: **All relevant data are within the paper and its Supporting Information files.

**Funding: **This work was supported by FIS2012-31324, from Spanish MINECO, http://www.mineco.gob.es/portal/site/mineco/; and 2014SGR-1307, from AGAUR, http://agaur.gencat.cat/ca/inici/. MINECO (Spanish Government) and AGAUR (Catalan Government) had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

**Competing interests: ** The funding does not alter the authors’ adherence to PLOS ONE policies on sharing data and materials.

## 1 Introduction: Finite-size scaling

Statistical mechanics provides a complete explanation of the thermodynamic (that is, macroscopic) properties of systems in terms of their microscopic laws when the so-called thermodynamic limit is considered—the limit of infinite system size [1–3]. However, there is a natural and increased interest in the properties of small systems [4, 5], i.e., systems whose size cannot be considered infinite. What is finite and what is infinite is a relative matter, as systems displaying a continuous or second-order phase transition illustrate. The key issue is that the size of the system needs to be measured in terms of its correlation length. For these systems a useful tool to deal with finite-size effects near the critical point of the transition is finite-size scaling [1, 2, 6, 7].

Let us consider a simple ferromagnetic system, whose thermodynamic variables are: the magnetic moment per particle *μ* (proportional to magnetization), the absolute temperature *T*, and the magnetic field *H*. It is convenient to rescale (and center) *T* by means of the critical temperature *T*_{c}, yielding the reduced temperature *τ* = (*T* − *T*_{c})/*T*_{c}, and to rescale *H* by *k*_{B}*T* (with *k*_{B} Boltzmann constant), yielding the reduced magnetic field *h* = *H*/(*k*_{B}*T*). Additionally, one may consider a system of units in which *μ* and *h* are dimensionless. The former, *μ*, will be the order parameter, whereas *h* and *τ* are control parameters.

“Near” the critical point of the transition, defined by *τ* = *h* = 0, the equation of state fulfills a scaling law, which gives *μ* as a function of *τ* and *h* as
(1)
where *β* and Δ are critical exponents, and represents two scaling functions, one (+) for *h* > 0 and another one (−) for *h* < 0. The scaling law Eq (1) indicates the invariance of the equation of state under appropriate scale transformations (which are linear transformations of the axes *μ*, *τ* and *h*). By the universality property many different systems share the same values of the critical exponents and the same scaling functions, and then the scaling law Eq (1) constitutes a law of corresponding states [8].

For instance, for the mean-field theory or the Landau theory of the Ising model [9, 10], *β* = 1/2, Δ = 3/2, and the scaling function is given by the two real solutions of , Ref. [11]. This yields
(2)
and substituting into the scaling law Eq (1), one gets
(3)
leading to the equation of the spontaneous magnetization, the critical-isotherm equation, and the Curie-Weiss law, respectively [9]. As is a smooth function, it is only at the critical point that a sharp transition emerges.

It is important that the correlation length *ξ* fulfills a scaling law analogous to Eq (1),
(4)
with *ν* another critical exponent and another pair of scaling functions. Then the main fact of critical phenomena is that *ξ* diverges (goes to ∞) right at the critical point (as *ν* and Δ are positive). For instance, at the critical isotherm, *τ* = 0, one has *ξ* ∝ 1/|*h*|^{ν/Δ}, whereas at zero field, *ξ* ∝ 1/|*τ*|^{ν}.

Strictly, all these equations are only valid in the thermodynamic limit. For a system of finite size *L* (in all dimensions [1]) the correlation length cannot be infinite. When *L* is much larger than the correlation length one does not expect that the finiteness of the system has any influence on the behavior of the system; however, this is not the case when *L* becomes smaller than the correlation length of the corresponding infinite system [1]. So, one can introduce a phenomenological additional dependence on *ξ*/*L* in the equation of state [7], as which, substituting the equation for *ξ* [Eq (4)], can be written as or, equivalently,
(5)
where the terms |*h*|^{β/Δ} and *τ*/|*h*|^{1/Δ} have been transformed to *L*^{−β/ν} and *L*^{1/ν} *τ*, respectively. The previous equation constitutes a finite-size scaling law or ansatz, where now , and *F* become bivariate scaling functions, with the latter unifying the positive and negative values of *h*. The finite-size-scaling ansatz can be verified by plotting *μL*^{β/ν} versus *τL*^{1/ν} and *hL*^{Δ/ν}; if a data collapse emerges, this gives the shape of the scaling function *F*. In this way, finite-size behavior is determined from the critical exponents of the infinite system [1]. Although usually finite-size scaling is derived in this phenomenological way, there have been exact derivations for particular systems [12].

Note that for a finite system with *h* = 0 the system size *L* plays a role similar to that of the inverse of the magnetic field in an infinite system, or more precisely, *L*^{1/ν} acts as 1/|*h*|^{1/Δ}, and in this way, one expects that the first argument of the scaling function *F* in Eq (5) behaves, qualitatively, as the scaling function in Eq (1). This implies that a sharp transition can only take place for *L* → ∞, i.e., in the thermodynamic limit. There are numerous examples in the literature about the “smoothness” of phase transitions for finite systems, see for instance Ref. [13]

## 2 Introduction: Phase transition in the Galton-Watson process

The Galton-Watson process [14, 15] provides the simplest model for the growth (and degrowth) of a biological population [16], but it is equally applicable to the growth of a nuclear reaction [17], an earthquake [18], or mean-field self-organized critical processes in general [18–21]. It belongs to a more general class of models known as branching processes. The Galton-Watson process starts with one single element that replicates, producing more elements, called offsprings, which also replicate, producing more elements and so on. The model is stochastic, as the (total) number of offsprings produced by each element is random, characterized by a distribution that is the same for all elements and also independent of the number of offsprings of the other elements.

In mathematical terms, the probability that the number of offsprings *K* of one element takes the value *k* is given by *P*[*K* = *k*], with *k* taking discrete values from 0 to ∞. In this paper we will consider that *P*[*K* = *k*] is given by the geometric distribution, or by the generalized geometric distribution, but the model is totally general. The distribution *P*[*K* = *k*] completely defines the model, as, we insist, the number of offsprings of each element are identically distributed and independent. The initial element defines the 0–th generation, its offsprings are the first generation, and so on. An index *t* labels each generation. The model does not incorporate time, but one can interpret *t* as a discrete time. An important auxiliary variable is *N*_{t}, which counts the number of elements in each generation, starting with *N*_{0} = 1 (one single original element).

The key question to ask is if the process gets extinct, i.e., *N*_{t} = 0 at some *t* ≥ 1, or not (where it goes on forever). A fundamental result in the theory of branching processes [15, 18] is that the probability of extinction *P*_{ext} can be obtained from
(6)
where *f*^{t}(*s*) is the *t*–th composition of the probability generating function *f*(*s*) of the random variable *K*, i.e., *f*^{t}(*s*) = *f*(…*f*(*f*(*s*))…) (composed *t* times), with
(7)
As we iterate successive compositions of *f*(*s*) starting from *s* = 0, the limit is given by the smallest fixed point *s** of *f*(*s*) in the interval [0, 1]; so, *s** necessarily satisfies *s** = *f*(*s**), but it is the smallest value in [0, 1] verifying such relation.

Introducing the probability of survival, or probability of non extinction *ρ*, fulfilling *P*_{ext} = *s** = 1 − *ρ*, the fixed-point condition becomes
(8)
From here, it is clear by normalization that *ρ* = 0 is a possible solution. Expanding the equation up to second order in *ρ* using the binomial theorem one gets
(9) (10)
The solutions, in terms of the mean number of offsprings, *m* = 〈*K*〉, and close to *m* = 1, are then
(11)
where we have used that when *ρ* is close to zero (from above) *m* is close to one, and therefore , where is the variance of *K* when its mean is one. It can be proved that there are no other fixed points than the two above [15, 18].

It is clear that the case in which the offspring distribution verifies *m* = 1 is critical, in the sense that it separates two very different “phases” of the system: extinction for sure if *m* ≤ 1 and non-sure extinction (and the possibility of a “demographic” explosion) for *m* > 1. Even more, this phase diagram is analogous to the spontaneous (zero-field) behavior of a magnetic system, Eq (3), if we identify *m* − 1 with the control parameter *τ* and *ρ* with the order parameter *μ*, and so we can talk about a phase transition in the Galton-Watson model [18] with critical point at *m* = *m*_{c} = 1. Note then that becomes the variance of the number of offsprings in the critical case. There are, though, two quantitative differences: *β* = 1 (in contrast to *β* = 1/2 in the magnetic example above) and that the ordered phase (non-zero order parameter) is above the critical point now. Eq (11) also tell us that when the distance to the critical point, *m* − 1, is rescaled by the behavior of the transition is universal, i.e., independent on the underlying distribution of the number of offsprings *K*.

In this paper we investigate this phase transition for a finite number of generations, i.e., when the number of generations is limited by *t* ≤ *L*. In a previous paper [22] we expanded *f*(*f*^{t}(0)) around the critical point *s** to obtain a general finite-size-scaling law for the probability of survival *ρ*. Here we follow a different, more direct approach, particularized for a geometric distribution in the number of offsprings, which will allow us to obtain also the corrections to scaling.

After the introduction to finite-size scaling in critical phenomena in the previous section and the introduction to branching processes in this section, in Sec. 3 we analyze the finite-size effects in the critical properties of the Galton-Watson process when the offspring distribution is given by the geometric distribution. Two different order parameters are explored, [*ρ* and *ρ*/(1 − *ρ*)], and the corrections to scaling and the range of validitity of the scaling law are obtained as well. We generalize the finite-size scaling law for the so-called generalized geometric distribution in Sec. 5. Previously, in Sec. 4, we establish that our scaling law also describes the escape probability of a simple one-dimensional random walk. An appendix gives some details of the calculations of Secs. 3 and 5.

## 3 Finite-size scaling in the geometric Galton-Watson process

We consider the Galton-Watson model with a finite number of generations *L*, which means that the process is stopped when it reaches the *L*–th generation, i.e., the elements of this generation are not allowed to replicate. Viewing the process as a branched tree, *L* becomes the height of the tree and is therefore a measure of system size (more precisely, the height of the tree is *L* + 1, counting the 0–th generation).

The extinction of this process is given by the event *N*_{L} = 0, as extinction at any generation *t* < *L* is included in the case *N*_{L} = 0 (extinction is forever, as it is an absorbing state). In the same way as for an unbounded system, the probability of extinction will be
(12)
(we only make explicit the dependence on *L*, but a hidden dependence exists in the parameters of the distribution of *K*, in particular on *m*). The probability of extinction is obtained then as the *L*–th composition of the probability generating function of the distribution of the number of offsprings, but note that as *L* is not infinite, *f*^{L}(0) will not reach the fixed point *s**. Although formally the problem is solved by the calculation of *f*^{L}(0), in general it is not feasible to arrive to an explicit expression for the composition, even for small values of *L*.

A remarkable exception is the case when *K* follows the geometric distribution, given by
(13)
for *k* = 0, 1, … ∞ (and zero otherwise) and with *q* = 1 − *p*. The only parameter of the distribution is *p*, which is called the success probability. The geometric distribution has a straightforward interpretation in terms of biological populations. For instance, consider that the elements that replicate are female individuals, and each female has a probability *q* to produce another female and a probability *p* of producing a male. Each female reproduces until it gets a male, and when the male is obtained the mother does not reproduce anymore. Although getting a male is considered a “success” (this is just a name), it is the female individuals what are counted as offsprings, so *K* counts the number of females disregading the male. Note that another variant of the geometric distribution counts also the male, this would be for us a shifted geometric distribution and is not considered here.

The probability generating function of the geometric distribution turns out to be
(14)
from which the mean is obtained as *m* = 〈*K*〉 = *f*′(1) = *q*/*p* and the variance as *σ*^{2} = *f*′′(1) − *m*(*m* − 1) = *q*/*p*^{2}, see Ref. [18]. Note that the critical point of the corresponding Galton-Watson process is at *m* = *q*/*p* = 1 and so *p*_{c} = *q*_{c} = 1/2, with a critical variance .

The fundamental property (for our problem) of the geometric distribution comes from the fact that its probability generating function is a fractional linear function [15], also called a linear fractional function [23]. In this case the successive compositions of *f*(*s*) can be computed for any *L*, yielding
(15)
see Ref. [23] or Eq (58) at our Appendix. The constant *s*_{0} is a fixed point of *f*(*s*) different from 1 (this fixed point, *s*_{0}, always exists except for *m* = 1), and the constant *κ* is given in the Appendix. Then, the probability of survival will be
(16)
which contains the solution to our problem.

For the geometric distribution the fixed point *s*_{0} is at *s*_{0} = *p*/*q* = *m*^{−1}, and then *κ* = *p*/*q* = *m*^{−1} (see Appendix); therefore, substituting into Eq (16) we get
(17)
This exact equation provides the order parameter *ρ* as a function of the control parameter *m* for any system size *L* (in the case of the geometric distribution).

In order to verify if a scaling law is fulfilled it is convenient to introduce the rescaled distance to the critical point,
(18)
where the “distance” *m* − 1 is rescaled (divided) by the term 1/*L*^{1/ν}, with the value of the exponent *ν* unknown. Substituting *m* − 1 = *x*/*L*^{1/ν} and
(19)
into Eq (17) we observe that the rescaled survival probability *L*^{1/ν} *ρ*(*L*) in the limit *L* → ∞ either tends to zero or infinite (depending on the sign of *x* and on whether *ν* > 0 or *ν* < 0), except in the case *ν* = 1. For *ν* = 1 and close to the critical point, the limit of *L*^{1/ν} *ρ*(*L*) is a positive value that only depends on *x*, which is the signature of a scaling law,
(20)
with *F* the scaling function.

Indeed, rewritting Eq (17) in terms of *x*, using that *m*^{L} → *e*^{x} for *ν* = 1 leads to
(21)
up to the lowest order in *L*^{−1}. Taking into account that the variance at the critical point is , the scaling law can be written as
(22)
with scaling function
(23)
in total agreement with Ref. [22]. The reason to introduce the value of will become more clear when we consider the generalized geometric case, in Sec. 5. Note that the scaling law obtained here for the Galton-Watson process is very similar to the purely mathematical case considered in Sec. 2.5.1 (p. 85) of Ref. [2].

It is important that the scaling function Eq (23) fulfills
(24)
Although our calculation does not include the critical case, *x* = 0, the Appendix shows that indeed the critical case is also described by the value of the scaling function *F* at *x* = 0. Therefore, there is a removable singularity at *x* = 0. The limit behavior of *F*, substituted into the scaling law, leads to
(25)
We see that the infinite-size case, Eq (11), is recovered when *L* is infinite, and that it is only in this case that a sharp transition exists.

Comparison with Eq (3) allows one to see which is the equivalent of the “critical isotherm” and “spontaneous magnetization” laws for the Galton-Watson process. For the latter case we see that *β* = 1. The Curie-Weiss law is not fulfilled as *ρ* does not decay as a power law in *L* but exponentially for *m* < 1.

We may also obtain the corrections to scaling, taking care of terms beyond the leading one. Going back to Eq (17), we substitute there the exact expression *m*^{L} = (1 + *x*/*L*)^{L} = *e*^{x}(1 + ∑_{n} *a*_{n}), with *a*_{1} = −*x*^{2}/(2*L*), *a*_{2} = *x*^{3}/(3*L*^{2}), etc., then,
(26) (27) (28)
with *u* = *e*^{x}/(*e*^{x} − 1) and ∑*b*_{n} = *x*/*L* + (1 + *x*/*L*)∑*a*_{n}. The first terms of the different sums are
(29) (30) (31) (32) (33) (34)
Let us study the behavior as far from the critical point as possible. Below it (*x* < 0), we take *x* → −∞ and then *u* → 0 (exponentially in *x*); therefore, only ∑*a*_{n} contributes and we get
(35)
so, the first correction-to-scaling term goes as −*x*^{2}/(2*L*) = −*L*(*m* − 1)^{2}/2. This means that if this term is of order *ε* (i.e., *L*(*m* − 1)^{2}/2 = *ε*) all other terms are of higher order in *ε*, in the limit *L* → ∞. This is so because the rest of terms are of the form
(36)
and
(37)
Above the critical point (*x* > 0) we consider *x* → ∞, then, *u* → 1 and the sums lead to the cancellation of all terms that are not powers of *x*/*L*, so
(38)
The first correction to scaling is given by the term −*x*/*L*. If we impose this to be of order *ε*, (i.e. *ε* = *x*/*L* = *m* − 1), we will obtain the limit of validity of the scaling law above the critical point. In summary, the scaling law will hold in the range
(39)
with *ε* ≪ 1. For instance, for a 5% error [defined as the ratio between the approximation given by the scaling law and the exact *ρ*(*L*), Eq (17)], *ε* = 0.05 and then . Fig 1 shows that this is valid for *L*–values above 40 for *m* < 1 and above 160 for *m* > 1. Note that the range of validity that we obtain, Eq (39), is much larger than the one implicit in Ref. [22], 1 − *c*/*L* < *m* < 1 + *c*/*L*, with *c* a constant. If we do not take the limits *x* → ±∞, we have, keeping terms up to first order in 1/*L*,
(40)
which is also shown in Fig 1a and 1b.

(a) Comparison of the exact probability of survival, *ρ*(*L*), given by Eq (17), with the approximations given by the scaling law Eq (22) and by the scaling law with the first correction to scaling, Eq (40), for different *m* and *L*. (b) The same taking the *y*–axis logarithmic. (c) The same data, taking the ratio between the approximation given by the scaling law [], Eq (22), and the exact value of *ρ*(*L*). Larger values of *L* are included in this case. The program used to draw the figure is provided as S1 File.

A scaling law with a broader range of validity is obtained taking as an order parameter not *ρ* but *ρ*/(1 − *ρ*). This is just the ratio between the number of realizations that survive at *t* = *L* and the number that are extinct at *t* = *L*. From Eq (17) we obtain
(41)
and proceeding as in the preceding case, we get
(42) (43)
The factors *u*^{k}(1 − *u*) = −*e*^{kx}/(*e*^{x} − 1)^{k+1} go to zero exponentially fast when *x* → ±∞, except the first one (*k* = 0) when *x* → −∞, for which *u* → 1. This is the only contribution away from the critical point, and so (below the critical point) the correction to scaling goes as −*x*^{2}/(2*L*). The range of validity of the scaling law is then given by
(44)
i.e., the scaling law is valid arbitrarily far from the fixed point in the supercritical region, as the correction term there decays exponentially fast in *x*. If we keep *x* finite and terms up to first order in 1/*L* we arrive at
(45)
This can be verified in Fig 2, where the scaling law describes system sizes as small as *L* = 10 arbitrarily far from the critical point in the supercritical region.

The exact behavior is given by Eq (41), and the scaling law with the first correction to scaling is given by Eq (45). It becomes clear how the performance of the finite-size scaling law is even better than for *ρ*(*L*), in particular for *m* > 1. The program used to draw the figure is provided as S1 File.

## 4 Applicability to random walks

Thanks to a well-known mapping between branching processes and random walks [24, 25], our finite-size scaling law is also applicable to the latter system. In concrete, a one-dimensional random walk can be obtained from the geometric Galton-Watson branching process by following the branches sequentially. Instead of considering that each generation *t* of the process is generated in parallel from the previous one (as the identification of the index *t* with time suggests) one changes the order in which offsprings appear. The position of a walker in the tree associated to the branching process determines which element (which node of the tree) replicates.

The walker is initially located at the root (the element at the 0–th generation), and moves to one of the elements in the first generation (it does not matter which one). If this element has its own offsprings, the walker moves to one of this, and so on. A branch is followed sequentially until the branch gets extinct (the last element has no offsprings), and then the walker moves back to the parent of the last element (from generation *t* to *t* − 1); if this parent has more offsprings the walker follows the branch of one of the remaining offsprings; if not, the walker moves back to the previous parent (at generation *t* − 2) and so on. Note then that the walker passes twice through each link or edge between parent and offspring. If, arbitrarly, we consider that the root is at the bottom of the tree (as in real, biological trees!) and each new generation is one level above the previous one, the walker travels up and down through all the tree.

The one-dimensional random walk is obtained from the projection of the position of the walker on the axis counting the number of generations, so, the *t*–axis of the branching process becomes the spatial axis of the random walk. Then, the walker moves up with probability *q* and down with probability *p* (the parameters of the geometrical distribution). Notice that the mapping is possible and exact because the number of offprings follows the geometric distribution, Eq (13).

The finite-size condition imposed to the branching process translates into the existence of a reflecting boundary at *t* = *L* for the random walk, and then, the probability of survival *ρ* of the branching process turns out to be the probability of hitting the reflecting boundary, *P*_{hit}, for the random walk. This also has an absorbing boundary at *t* = −1, where the walk dies (after a duration equal to twice the number of elements, minus one).

After all these considerations, the mapping is established, and we can write a finite-size scaling relation for the hitting probability,
(46)
with *F*(*x*) given by Eq (23) and
(47)
Remember that this is valid for large *L* and close to the critical point *q* = *q*_{c} = 1/2, because *m* = *q*/*p*. In particular, the corrections to scaling of the previous section hold in exactly the same way when the relationships are written in terms of *m* or *x* = *L*(*m* − 1).

In fact, the previous scaling law describes the probability that a random walk starting next to the absorbing boundary hits the other boundary, independently of the nature of the latter (reflecting or not), as it is only the first-passage time what matters. In this way, the one-dimensional random walk, the simplest system in statistical physics, displays a continuous phase transition with finite size scaling, for which the corrections to scaling can be easily obtained as well.

## 5 The generalized geometric distribution

The previous analysis of the geometric Galton-Watson process in terms of fractional linear functions (see Appendix) suggests a generalization of the problem. We may consider the generalized geometric distribution, in which the zero-offspring probability, *P*[*K* = 0], is released from following the geometric distribution and instead it takes a free value *p*_{0}, which is a new parameter. The rest of values of *K* follow the geometric distribution, but rescaled by (1 − *p*)/(1 − *p*_{0}) (because of normalization). In a formula,
(48)
and zero otherwise. We recover the usual geometric distribution for *p*_{0} = *p*. The generating function is indeed a fractional linear function,
(49)
which yieds *m* = *f*′(1) = (1 − *p*_{0})/*p* and *σ*^{2} = (1 + *p*_{0} − *p*)(1 − *p*_{0})/*p*^{2}. The critical point turns out to be at *p*_{c} = (1 − *p*_{0})

The analysis of Sec. 3 is fully applicable in this case, in particular Eq (16). We need to know that *s*_{0} = *p*_{0}/*q* and *κ* = *m*^{−1} (see Appendix); in fact, we write *s*_{0} as a function of *m* and *p*_{0}, which is *s*_{0} = *p*_{0}*m*/(*m* − *q*_{0}), with *q*_{0} = 1 − *p*_{0}. Notice that we study the transition keeping fixed *p*_{0}. Substituting into the formula for the order parameter *ρ*(*L*), Eq (16), we arrive at
(50) (51)
Introducing again the rescaled variable *x* = *L*^{1/ν}(*m* − 1), and taking the limit *L* → ∞, the only non trivial limit arises for *ν* = 1. In this case, up to first order in 1/*L* and introducing the critical variance , we get
(52)
which is the same scaling law as for the geometric case, with the scaling function *F*(*x*) given again by Eq (23).

## 6 Summary

We have presented here direct analogies between branching processes and thermodynamic phase transitions. We have considered the classical Galton-Watson model of branching processes when the number of offsprings *K* per element is given by the geometric distribution. This process has as natural control and order parameters the mean value of *K* and the probability of survival *ρ*, respectively. We study finite-size effects by imposing an upper limit *L* to the number of generations. After obtaining the exact expression for the equation of state, that is, the dependence of the order parameter with the control parameter, Eq (17), we introduce the rescaled distance to the critical point, *x* = *L*^{1/ν}(*m* − 1). When *ν* = 1 we demonstrate that a finite-size scaling law, Eq (22), emerges in the limit *L* → ∞.

In general, the theory of critical phenomena does “not explain why in some systems scaling holds for only 1-2% away from the critical point and in other systems it holds for 30-40% away” [26]. In particular, finite-size scaling should work when the system size tends to infinite and the control parameter approaches the critical point; nevertheless, in practice, finite-size scaling predictions turn out to apply to rather small systems at a non-negligible distance from the critical point [1]. We provide a quantitative derivation of these limits for the finite-size scaling behavior of the Galton-Watson process, Eq (39), thanks to the calculation of the corrections to scaling, Eqs (35) and (38), or Eq (40). If we define an alternative order parameter as *ρ*/(1 − *ρ*), the same scaling law holds, but with a larger range of validity, given by Eq (44). In this case the corrections to scaling are given by Eq (35), below the critical point or by Eq (45), in general.

A straightforward mapping between branching processes and random walks allows one to establish that all our results for the survival probability of a geometric Galton-Watson process are equally valid for the probability that a one-dimensional random walk, starting above but close to an absorbing origin and evolving through ±1 increments, reaches a distance to the origin equal to *L*. In this way, a subcritical Galton-Watson process corresponds to a random walk with a bias to the negative (−1) increment, for which the hitting probability becomes zero as *L* → ∞. On the other hand, the supercritical case corresponds to a random walk with a positive bias in the increment, for which there exists a non-zero probability that never returns to the origin in the limit *L* → ∞. Obviously then, the critical case is the one of a fair random walk. To the best of our knowledge, the one-dimensional random walk provides the simplest example of a system exhibiting a finite-size scaling law. Therefore, the analogies between branching processes and equilibrium phase transitions are totally applicable to the one-dimensional random walk.

## Appendix

A fractional linear function is defined by
(53)
with *a*, *b*, *c* and *d* constants fulfilling *ad* ≠ *bc* (to avoid that the numerator and the denominator are proportional). Note that for the geometric distribution, Eq (14), *a* = *p*, *b* = 0, *c* = 1, and *d* = −*q*, although in the next paragraphs we will keep generality.

The advantge of fractional linear functions is that their compositions are very manageable. To see this we follow the calculation of Karlin and Taylor [23]. Let us consider any point *s*_{i}, then, it is direct to see that
(54)
and for two points *s*_{0} and *s*_{1} one has
(55)
For fractional linear functions representing probability generating functions there exist just two fixed points that, by definition, verify *s*_{i} = *f*(*s*_{i}), so one can identify the previous *s*_{0} and *s*_{1} with these fixed points. It can be also verified that it is only at the critical point (*m* = 1) that the two fixed points take the same value, *s*_{0} = *s*_{1}. Note that the fixed point *s** corresponding to the probability of extinction in the infinite system (mentioned in Sec. 2) is defined as *s** = min(*s*_{0}, *s*_{1}). So, using the defining property of fixed points (*s*_{i} = *f*(*s*_{i})) and defining *κ* = (*c* + *ds*_{1})/(*c* + *ds*_{0}) and *w* = *f*(*s*) one gets
(56)
In order to calculate *f*(*w*) one can iterate the same argument for the left-hand side of the equation, and in general, by induction,
(57)
with *w*_{t} = *f*^{t}(*s*). Isolating *w*_{t} one arrives at the desired formula for the compositions of *f*(*s*),
(58)
which holds for any values of the parameters of the offspring distribution, except at the critical point (*m* = 1).

In the case in which *f*(*s*) is a probability generating function, one of the fixed points is equal to one, by normalization. So, one can take, without loss of generality *s*_{1} = 1. Substituting the form of a fractional linear function, Eq (53), into *f*(1) = 1 one gets a relation between the parameters *a*, *b*, *c* and *d*. One can also verify that the other fixed point is *s*_{0} = −*a*/*d*. Finally, the constant *κ* turns out to be, substituting *s*_{0},
(59)
which happens to be identical to the inverse of the mean, i.e.,
(60)

For the generalized geometric distribution, from its probability generating function, Eq (49), and from the definition of fractional linear functions, Eq (53), one establishes that *a* = *p*_{0}, *b* = *p* − *p*_{0}, *c* = 1, and *d* = −*q*, and the fixed point *s*_{0} turns out to be
(61)
which, for the particular case of the geometric distribution, defined by *p*_{0} = *p*, turns into
(62)
The knowledge of the value of the fixed point *s*_{0} leads to the explicit form for *f*^{t}(*s*).

At the critical point, given by *m* = 1, it is necessary to follow a separate approach. For the generalized geometric distribution, the critical point is given by *p* = 1 − *p*_{0}, which, substituting into the probability generating function, Eq (49), leads to
(63)
Induction leads directly to
(64) (65)
from where the order parameter of the transition turns out to be
(66)
taking the limit of large *L* and using the expression above for . This is in perfect agreement with the results obtained for *m* ≠ 1. Note that the results for the geometric distribution are a particular case corresponding to *p*_{0} = *p* = 1/2 at *m* = 1.

## Supporting Information

### S1 File. This program has been used to construct Figs 1 and 2.

https://doi.org/10.1371/journal.pone.0161586.s001

(F)

## Acknowledgments

G. Pruessner encouraged us to study the limits of applicability of the finite-size scaling law. Expansions have been revised with the help of the online Taylor Series Calculator of WolframAlpha. R. Garcia-Millan is grateful to the Centre de Recerca Matemàtica and its Internship Program.

## Author Contributions

**Conceptualization:**AC RGM FFC.**Formal analysis:**AC RGM FFC.**Funding acquisition:**AC.**Investigation:**AC RGM FFC.**Methodology:**AC RGM FFC.**Project administration:**AC.**Software:**FFC.**Supervision:**AC.**Validation:**AC RGM FFC.**Visualization:**FFC.**Writing original draft:**AC RGM FFC.**Writing review & editing:**AC RGM FFC.

## References

- 1.
Barber MN. Finite-size scaling. In: Domb C and Lebowitz JL, editors. Phase Transitions and Critical Phenomena, Vol. 8. Academic Press, London; 1983. pp. 145–266.
- 2.
Bhattacharjee SM. Critical phenomena: An introduction from a modern perspective. In: Rao S, editor. Field Theories in Condensed Matter Physics. Institute of Physics Publishing, Bristol and Philadelphia; 2001. pp. 69–117.
- 3. Kuzemsky AL. Thermodynamic limit in statistical physics. Int. J. Mod. Phys. B. 2014; 28:1430004.
- 4. Bustamante C, Liphardt J, Ritort R. The nonequilibrium thermodynamics of small systems. Phys. Today. 2005; 58(7):43–48.
- 5. Parrondo JMR, Horowitz JM, Sagawa T. Thermodynamics of information. Nature Phys. 2015; 11:131–139.
- 6. Brézin E. An investigation of finite size scaling. J. Phys. 1982; 43:15–22.
- 7.
Privman V. Finite-size scaling theory. In: Privman V, editor. Finite Size Scaling and Numerical Simulation of Statistical Systems. World Scientific, Singapore, 1990. pp 1–98.
- 8.
Stanley HE. Introduction to Phase Transitions and Critical Phenomena. Oxford University Press, Oxford; 1973.
- 9.
Yeomans JM. Statistical Mechanics of Phase Transitions. Oxford University Press, New York; 1992.
- 10.
Christensen K, Moloney NR. Complexity and Criticality. Imperial College Press, London; 2005.
- 11.
Weisstein EW. Vieta’s substitution.
*Mathworld*. http://mathworld.wolfram.com/VietasSubstitution.html. - 12. Bhattacharjee SM, Nagle JF. Finite-size effect for the critical point of an anisotropic dimer model of domain walls. Phys. Rev. A. 1985; 31:3199–3213.
- 13. Turalska M, West BJ, Grigolini P. Temporal complexity of the order parameter at the phase transition. Phys. Rev. E. 2001; 83:061142.
- 14. Watson HW, Galton F. On the probability of the extinction of families. J. Anthropol. Inst. Great Britain Ireland. 1875; 4:138–144.
- 15.
Harris TE. The Theory of Branching Processes. Springer, Berlin; 1963.
- 16.
Kimmel M, Axelrod DE. Branching Processes in Biology. Springer-Verlag, New York; 2002.
- 17.
Pázsit I, Pál L. Neutron Fluctuations. Elsevier, Oxford; 2008.
- 18.
Corral A, Font-Clos F. Criticality and self-organization in branching processes: application to natural hazards. In: Aschwanden M, editor. Self-Organized Criticality Systems. Open Academic Press, Berlin; 2013. pp. 183–228.
- 19. Alstrøm P. Mean-field exponents for self-organized critical phenomena. Phys. Rev. A. 1988; 38:4905–4906.
- 20. Zapperi S, Lauritsen KB, Stanley HE. Self-organized branching processes: Mean-field theory for avalanches. Phys. Rev. Lett. 1995; 75:4071–4074. pmid:10059807
- 21.
Pruessner G. Self-Organised Criticality: Theory, Models and Characterisation. Cambridge University Press, Cambridge; 2012.
- 22. Garcia-Millan R, Font-Clos F, Corral A. Finite-size scaling of survival probability in branching processes. Phys. Rev. E. 2015; 91:042122.
- 23.
Karlin S, Taylor HM. A first course in stochastic processes. 2nd ed. Academic Press, San Diego; 1975.
- 24. Harris TE. First passage and recurrence distributions. Trans. Am. Math. Soc. 1952; 73:471–486.
- 25.
Font-Clos F, Moloney NR. Percolation on trees as a Brownian excursion: from Gaussian to Kolmogorov-Smirnov to Exponential statistics.
*arXiv. 2016; 1606.03764*. - 26. Stanley HE. Scaling, universality, and renormalization: Three pillars of modern critical phenomena. Rev. Mod. Phys. 1999; 71:S358–S366.