Skip to main content
Log in

Autonomous allocation of wireless body-sensor networks to frequency channels: modeling with repeated “balls-in-bins” experiments

  • Published:
Wireless Networks Aims and scope Submit manuscript

Abstract

In this paper we model a situation where several wireless body sensor networks (WBSN) compete for occupation of a number of frequency channels. Each channel can host at most one WBSN with satisfactory performance and WBSNs have the ability to change their operating channel, subject to the constraint that they can only monitor the performance or occupancy of their current channel but not of any other channel. We consider a number of randomized schemes for changing the frequency channels and present and evaluate Markov chain models for these, building on a “balls-in-bins” approach.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

Notes

  1. OEIS is the online encyclopedia of integer sequences, see https://oeis.org.

  2. The simulator has been written in the Haskell programming language. Its operation is conceptually simple: it starts with an allocation of all K balls into the same urn and then proceeds in rounds. At the start of a round it checks whether there are any urns with more than one ball (collisions). If this is not the case the simulation stops and the simulator outputs the number of total number of rounds required. If there is at least one urn with a collision then for all collided balls we run an independent random experiment to determine whether the ball jumps, and if so, a new urn will be chosen for the ball with uniform probability (excluding the urn the colliding ball was in). Then the next round starts.

  3. We have furthermore confirmed through simulations (not reported here for space reasons) that already for modest values of N this approximation shows very similar performance to the case where a colliding ball is not allowed to jump into its current bin again.

  4. The calculations for the analytical model of the transition matrix \({\mathbf {P}}\) have been carried out with Mathematica\(^{\copyright }\) and are exact. The empirical transition matrix for given values of N and K has been estimated by simulating, for each start state \(s_0\) from 0 to \(K-1\), a number of one million one-step transitions and counting how often each possible successor state is assumed. From these counts we can calculate the transition probabilities. We have repeated this for \(N=K\) ranging from \(N=K=10\) to \(N=K=150\) and have found excellent agreement between the calculated and the estimated transition matrices.

  5. Both values have been obtained with Mathematica\(^{\copyright }\) using exact calculations. The analytical solution has been obtained from solving Eq. (13) with \({\mathbf {P'}}\) being the sub-matrix of \({\mathbf {P}}\) in which the absorbing state K has been removed.

References

  1. Ahmed, E., Gani, A., Abolfazli, S., Yao, L. J., & Khan, S. U. (2016). Channel assignment algorithms in cognitive radio networks: Taxonomy, open issues, and challenges. IEEE Communications Surveys and Tutorials, 18(1), 795–820.

    Article  Google Scholar 

  2. Baker, S. B., Xiang, W., & Atkinson, I. (2017). Internet of things for smart healthcare: Technologies, challenges, and opportunities. IEEE Access, 5, 26,521–26,544.

    Article  Google Scholar 

  3. Berenbrink, P., Brinkmann, A., Friedetzky, T., Meister, D., & Nagel, L. (2013). Distributing storage in cloud environments. In Proceedings of IEEE 27th International Symposium on Parallel and Distributed Processing, Workshops and PhD Forum (IPDPSW). Cambridge, Massachusetts, USA.

  4. Berenbrink, P., Kling, P., Law, C., & Mehrabian, A. (2017). Tight load balancing via randomized local search. In Proceedings of IEEE 27th International Symposium on Parallel and Distributed Processing (IPDPS). Orlando, Florida, USA.

  5. Bremaud, P. (1998). Markov chains–Gibbs fields, Monte Carlo Simulation, and queues. New York: Springer.

    MATH  Google Scholar 

  6. Cavallari, R., Martelli, F., Rosini, R., Buratti, C., & Verdone, R. (2014). A survey on wireless body area networks: Technologies and design challenges. IEEE Communications Surveys and Tutorials, 16(3). http://www.comsoc.org/livepubs/surveys.

  7. Chieochan, S., Hossain, E., & Diamond, J. (2010). Channel assignment schemes for infrastructure-based 802.11 WLANs: A survey. IEEE Communications Surveys and Tutorials, 12(1), 124–136.

    Article  Google Scholar 

  8. Choi, J. S., & Zhou, M. (2010). Performance analysis of zigbee-based body sensor networks. In 2010 IEEE International Conference on Systems Man and Cybernetics (SMC) (pp. 2427–2433). IEEE.

  9. Degesys, J., Rose, I., Patel, A., & Nagpal, R. (2007). DESYNC: Self-organizing desynchronization and TDMA on wireless sensor networks. In Proceedings of Symposium on Information Processing in Sensor Networks (IPSN ’07). Cambridge, Massachusetts, USA.

  10. Deligiannis, N., Mota, J. F. C., Smart, G., & Andreopoulos, Y. (2015). Fast desynchronization for decentralized multichannel medium access control. IEEE Transactions on Communications, 63(9), 3336–3349.

    Article  Google Scholar 

  11. Demir, L., Kumar, A., Cunche, M., & Lauradoux, C. (2018). The pitfalls of hashing for privacy. IEEE Communications Surveys and Tutorials, 20(1). http://www.comsoc.org/livepubs/surveys.

  12. Dummit, D. S., & Foote, R. M. (2003). Abstract algebra (3rd ed.). New York: Wiley.

    MATH  Google Scholar 

  13. Fischer, S., Maehoenen, P., Schoengens, M., & Voecking, B. (2008). Load balancing for dynamic spectrum assignment with local information for secondary users. In Proceedings of 3rd IEEE Symposium on New Frontiers in Dynamic Spectrum Access Networks (DySPAN). IEEE, Chicago, Illinois, USA.

  14. Flajolet, P., & Sedgewick, R. (2009). Analytic combinatorics. Cambridge, UK: Cambridge University Press.

    Book  Google Scholar 

  15. Goodman, D. J., Valenzuela, R. A., Gayliard, K. T., & Ramamurthi, B. (1989). Packet reservation multiple access for local wireless communications. IEEE Transactions on Communications, 37(8), 885–890.

    Article  Google Scholar 

  16. Johnson, N. L., & Kotz, S. (1977). Urn models and their applications. New York: Wiley.

    MATH  Google Scholar 

  17. Kenney, J. B. (2011). Dedicated short-range communications (DSRC) standards in the United States. Proceedings of the IEEE, 99(7), 1162–1182.

    Article  Google Scholar 

  18. Kolchin, V. F., Sevast’yanov, B. A., & Chistyakow, V. P. (1978). Random allocations. Washington, DC: V.H. Winston.

    Google Scholar 

  19. LAN/MAN Standards Committee of the IEEE Computer Society. (2012). IEEE Standard for Local and metropolitan area networks—Part 15.6: Wireless Body Area Networks.

  20. LAN/MAN Standards Committee of the IEEE Computer Society. (2015). IEEE Standard for Low-Rate Wireless Networks—IEEE Std 802.15.4-2015.

  21. Latre, B., Braem, B., Moerman, I., Blondia, C., & Demeester, P. (2011). A survey on wireless body area networks. Wireless Networks, 17, 1–18.

    Article  Google Scholar 

  22. Levin, D. A., Peres, Y., & Wilmer, E. L. (2009). Markov chains and mixing times. Providence, RI: Americal Mathematical Society.

    MATH  Google Scholar 

  23. Li, Q., Yang, P., Tang, S., Xiang, C., & Li, F.(2015). Many is better than all: Efficient selfish load balancing in mobile crowdsourcing systems. In Proceedings of Third International Conference on Advanced Cloud and Big Data. Yangzhou, China.

  24. Liggett, T. M. (2008). Interacting particle systems. Berlin: Springer.

    MATH  Google Scholar 

  25. Liu, T. K., Silvester, J. A., & Polydoros, A. (1995). Performance evaluation of R-ALOHA in distributed packet radio networks with hard real-time communications. In Proceedings of 45th IEEE Vehicular Technology Conference (VTC) (pp. 554–558).

  26. Moravejosharieh, A., & Willig, A. (2016). Mutual interference in large populations of co-located IEEE 802.15.4 body sensor networks—A sensitivity analysis. Computer Communications, 81, 86–96.

    Article  Google Scholar 

  27. Nelson, R. (1995). Probability, stochastic processes, and queueing theory—The mathematics of computer performance modeling. New York: Springer.

    Book  Google Scholar 

  28. Neugebauer, M., Plönnigs, J., & Kabitzsch, K. (2005). A new beacon order adaptation algorithm for ieee 802.15. 4 networks. In Proceeedings of the Second European Workshop on Wireless Sensor Networks, 2005 (pp. 302–311). IEEE.

  29. Norris, J. R. (1997). Markov chains. Cambridge, UK: Cambridge University Press.

    Book  Google Scholar 

  30. Park, Y., & Kim, H. (2013). Collision control of periodic safety messages with strict messaging frequency requirements. IEEE Transactions on Vehicular Technology, 62(2), 843–852.

    Article  Google Scholar 

  31. Petrova, M., Olano, N., & Maehoenen, P. (2010). Balls and bins distributed load balancing algorithm for channel allocation. In Proceedings on 7th IEEE/IFIP International Conference on Wireless On-demand Network Systems and Services (WONS) (pp. 25–30). Kranjska Gora, Slovenia.

  32. Qiang, L., & Jun, T. (2011). Minimum-energy-cost algorithm based on superframe adaptation control. In 2011 IEEE International Conference on Communications (ICC) (pp. 1–5).

  33. Sari, R., et al. (2012). Analysis of the effect of beacon order and superframe order value to the performance of multihop wireless networks on IEEE 802.15. 4 protocol. In 2012 International Conference on Advanced Computer Science and Information Systems (ICACSIS) (pp. 89–94). IEEE.

  34. Seneviratne, S., Hu, Y., Nguyen, T., Lan, G., Khalifa, S., Thilakarathna, K., et al. (2017). A survey of wearable devices and challenges. IEEE Communications Surveys and Tutorials, 19(4), 2573–2620. http://www.comsoc.org/livepubs/surveys

    Article  Google Scholar 

  35. Siavoshani, M. J., Pourmiri, A., & Shariatpanahi, S. P. (2018). Storage, communication, and load balancing trade-off in distributed cache networks. IEEE Transactions on Parallel and Distributed Systems, 29(4), 943–957.

    Article  Google Scholar 

  36. Tao, Z., Panwar, S., Gu, D., & Zhang, J. (2006). Performance analysis and a proposed improvement for the ieee 802.15.4 contention access period. In Wireless Communications and Networking Conference, 2006. WCNC 2006. IEEE, (Vol. 4, pp. 1811–1818). IEEE.

  37. Wei, Z., Timothy, W., & Jinho, H. (2016). NetKV: Scalable, self-managing, load balancing as a network function. In Proceedings of IEEE International Conference on Autonomic Computing (ICAC), Wuerzburg, Germany.

  38. Wilf, H. S. (1994). Generatingfunctionology. Boston: Academic Press.

    MATH  Google Scholar 

  39. Yazdi, E. T., Willig, A., & Pawlikowski, K. (2014). Coupling power and frequency adaptation for interference mitigation in IEEE 802.15.4-based mobile body sensor networks. In Proceedings of IEEE Ninth International Conference on Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP), Singapore.

  40. Yazdi, E. T., Willig, A., & Pawlikowski, K. (2014). Frequency adaptation for interference mitigation in IEEE 802.15.4-based mobile body sensor networks. Computer Communications, 53, 102–119.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Andreas Willig.

Appendices

A Reducing system size in Eq. (5)

In this appendix we discuss how to reduce the size of the linear equation system (5) and (6), making it more accessible to numerical solution. The key roles are played by the notion of types introduced in Sect. 2 and the exploitation of symmetries.

To begin with, it is straightforward to see that we only need to consider terms for the colliding states in Eq. (6), as the hitting times in non-colliding states are always zero. Next, consider two colliding states \({\mathbf {s}}_a\) and \({\mathbf {s}}_b\) of the same type. Therefore, there exists a permutation \(\sigma (\cdot )\) of the bins from 1 to N such that \({\mathbf {s}}_b = \sigma ({\mathbf {s}}_a)\). From the definition of the transition probabilities (Eqs. 3 and 4) it is straightforward to check that \(p({\mathbf {t}}|{\mathbf {s}}) = p(\tau ({\mathbf {t}})|\tau ({\mathbf {s}}))\) holds for any permutation \(\tau (\cdot )\), and therefore the vector \((p({\mathbf {t}}|{\mathbf {s}}_b) : {\mathbf {t}} \in {\mathcal {C}}_{N,K})\) of transition probabilities from state \({\mathbf {s}}_b\) to all colliding states is a permutation of the vector \((p({\mathbf {t}}|{\mathbf {s}}_a) : {\mathbf {t}} \in {\mathcal {C}}_{N,K})\), as applying the permutation \(\sigma (\cdot )\) to all colliding states reproduces the entire set of colliding states.

Next, fix two different types \({\mathcal {T}}({\mathbf {s}})\) and \({\mathcal {T}}({\mathbf {t}})\). Since all states of the same type \({\mathcal {T}}({\mathbf {s}})\) are permutations of each other, a similar argument shows that the vector of transition probabilities \(\left( p({\mathbf {t'}}|{\mathbf {s}}_a) : {\mathbf {t'}} \in {\mathcal {T}}({\mathbf {t}}) \right)\) from some state \({\mathbf {s}}_a \in {\mathcal {T}}({\mathbf {s}})\) to all states in \({\mathcal {T}}({\mathbf {t}})\) is a permutation of the transition probabilities \(\left( p({\mathbf {t'}}|{\mathbf {s}}_b) : {\mathbf {t'}} \in {\mathcal {T}}({\mathbf {t}}) \right)\) from any other state \({\mathbf {s}}_b \in {\mathcal {T}}({\mathbf {s}})\) to all states in \({\mathcal {T}}({\mathbf {t}})\). If we now order the states according to their type (i.e. all states of the same type are grouped together) and leave out the non-colliding states, then the matrix of state transition probabilities for the remaining states can be written as a block matrix of the following form:

$$\begin{aligned} {\mathbf {P'}} = \left[ \begin{array}{llll} {\mathbf {A}}_{(K)}^{(K)} & {\mathbf {A}}_{(K-1,1)}^{(K)} & \ldots & {\mathbf {A}}_{(2,1,\ldots ,1)}^{(K)} \\ \ {\mathbf {A}}_{(K)}^{(K-1,1)} & {\mathbf {A}}_{(K-1,1)}^{(K-1,1)} & \ldots & {\mathbf {A}}_{(2,1,\ldots ,1)}^{(K-1,1)} \\ \ \ldots & \ldots & \ldots & \ldots \\ \ {\mathbf {A}}_{(K)}^{(2,1,\ldots ,1)} & {\mathbf {A}}_{(K-1,1)}^{(2,1,\ldots ,1)} & \ldots & {\mathbf {A}}_{(2,1,\ldots ,1)}^{(2,1,\ldots ,1)} \\ \end{array} \right] \end{aligned}$$

where the matrix \({\mathbf {A}}_{{\mathcal {T}}_2}^{{\mathcal {T}}_1}\) contains all transition probabilities from states \({\mathbf {s}} \in {\mathcal {T}}_1\) to states \({\mathbf {t}} \in {\mathcal {T}}_2\), and in such a matrix all the rows are permutations of each other. Considering only the colliding states, the Equations from (6) can be re-arranged as

$$\begin{aligned} \left( {\mathbf {P'}} - {\mathbf {I}}\right) \cdot {\mathbf {k}} = (-1, -1, \ldots , -1)^T \end{aligned}$$
(13)

where \({\mathbf {k}}\) is the solution vector with the hitting times of all non-colliding states and \({\mathbf {I}}\) is the identity matrix of suitable dimension. Please note that in this equation the matrix \(\left( {\mathbf {P'}} - {\mathbf {I}}\right)\) maintains the property of matrix \({\mathbf {P'}}\) of being a block matrix made up of matrices where all the rows are permutations of each other: in all the “diagonal matrices” \({\mathbf {A}}_{\mathcal {T}}^{\mathcal {T}}\) the respective diagonal elements are identical and remain so after subtracting the identity matrix. Furthermore, since we have omitted all transitions into non-colliding states (which occur with positive probability from every colliding state), the matrix \({\mathbf {P'}}\) is strictly sub-stochastic, which in turn makes the matrix \(\left( {\mathbf {P'}} - {\mathbf {I}}\right)\) strictly diagonal-dominant and thus the equation system (13) is uniquely solvable. Note that its dimension is given by the size of the state space \(|{\mathcal {S}}_{N,K}|\) with only the non-colliding states removed.

The key property which now allows to simplify the calculation of the hitting times is that all states of the same type have the same average hitting time. To see this, we argue as follows. If we denote by \(\alpha _{{\mathcal {T}}_2}^{{\mathcal {T}}_1}\) the row sum of sub-matrix \({\mathbf {A}}_{{\mathcal {T}}_2}^{{\mathcal {T}}_1}\), then the system

$$\begin{aligned} \left( \left( \begin{array}{llll} \alpha _{(K)}^{(K)} & \alpha _{(K-1,1)}^{(K)} & \ldots & \alpha _{(2,1,\ldots ,1)}^{(K)} \\ \alpha _{(K)}^{(K-1,1)} & \alpha _{(K-1,1)}^{(K-1,1)} & \ldots & \alpha _{(2,1,\ldots ,1)}^{(K-1,1)} \\ \ldots & \ldots & \ldots & \ldots \\ \alpha _{(K)}^{(2,1,\ldots ,1)} & \alpha _{(K-1,1)}^{(2,1,\ldots ,1)} & \ldots & \alpha _{(2,1,\ldots ,1)}^{(2,1,\ldots ,1)} \\ \end{array} \right) - {\mathbf {I}} \right) \cdot {\mathbf {k'}} = (-1, -1, \ldots , -1)^T \end{aligned}$$
(14)

is again strictly diagonal-dominant and thus has a unique solution \({\mathbf {k'}} = (k_{(K)}, k_{(K-1,1)}, \ldots , k_{(2,1,\ldots ,1)})\). Furthermore, its dimension is given by the number of types \(C_K\) existing for K balls [minus one, the non-colliding type \((1,1,\ldots ,1)\)—compare Eq. (7)]. We construct a vector \({\mathbf {k}}\) from \({\mathbf {k'}}\) by starting with repeating value \(k_{(K)}\) exactly \(|{\mathcal {T}}(K)|\) times, followed by \(|{\mathcal {T}}(K-1,1)|\) repetitions of \(k_{(K-1,1)}\) and so forth. It is then clear that this vector \({\mathbf {k}}\) is a solution of the full equation system (13).

Let us consider the savings that can be obtained from using system (14) instead of (13). For \(N=15\) and \(K=10\) we have that \(C_{10}=42\) and thus the system (14) has to be solved for 41 unknowns (after leaving out the single non-colliding type). As discussed before in Sect. 2.2, the full system (13) would have a dimension in the order of approximately 1.9 million unknowns.

B Sticky variant: derivation of transition probabilities

To derive explicit expressions for the transition probabilities of the sticky model we will use the framework of exponential generating functions (EGF) [14, 27, 38]. When applying EGF to balls-in-bin problems, a modified exponential power series

$$\begin{aligned} c(z) = \sum _{m=0}^\infty \frac{c_m}{m!} z^m \qquad (z \in \mathbb {C}) \end{aligned}$$
(15)

is associated to each bin, where the coefficients \(c_m \in \left\{ 0,1 \right\}\) are chosen to express whether or not it is permissible to have m balls in the bin. The power series for several bins are then multiplied to get the overall EGF for the problem, and the m-th coefficient of the overall EGF gives the total number of allocations of balls to bins which satisfy all constraints simultaneously.

Exponential generating functions are one widely used class of generating functions, another class are ordinary generating functions. EGFs are appropriate in settings with labeled (i.e. distinct) entities. When given a general power series f(z), we denote by \(\left\{ z^{n}\right\} f(z)\) the coefficient for the \(z^n\) term of f(z), and for the particular case of an EGF c(z) formed according to Eq. (15), the coefficient \(c_m\) is given by \(c_m = m! \cdot \left\{ z^{m}\right\} c(z)\). Note that an EGF c(z) (taken as a power series around \(z=0\)) is an analytic / holomorphic function within its convergence radius, and it is a basic fact from complex analysis that we can recover the coefficients of a power series c(z) from the derivatives of c(z):

$$\begin{aligned} \frac{c_m}{m!} = \frac{(\partial _mc)(0)}{m!} \end{aligned}$$
(16)

where \(\partial _m\) denotes the m-th complex derivative operator.

To transition from state \(S \in {\mathcal {S}}\) to state \(S+T \in {\mathcal {S}}\) we find the number of allocations of \(K-S\) unsettled balls to bins such that

  • Each of the S bins containing a settled ball can contain zero or more unsettled balls. To each such bin we assign the EGF \(e^z\), in which all coefficients are one (compare Eq. 15).

  • T of the bins that contained no settled ball before should now contain exactly one ball. To each of these bins we assign the EGF z (corresponding to \(c_1=1\) and \(c_m=0\) for \(m \ne 1\)).

  • The remaining \(N-S-T\) bins each contain either zero or at least two balls. To each of these bins we assign the EGF \((e^z-z)\), excluding the case of exactly one ball.

The EGF corresponding to these constraints is given by

$$f(z) = \left( e^z\right) ^S \cdot z^T \cdot \left( e^z - z\right) ^{N-(S+T)}$$
(17)

and the expression \((K-S)! \cdot \left\{ z^{K-S}\right\} f(z)\) gives the number of such allocations. This expression, however, refers to one particular choice of T bins out of the \(N-S\) bins not containing a settled ball, and there are in total \(\left(\begin{array}{c} {N-S} \\ {T} \end{array}\right)\) such choices. Therefore, the total number allocations of \(K-S\) unsettled balls to bins satisfying the above constraints is given by

$$\begin{aligned} n(S,T) = \left(\begin{array}{c} {N-S} \\ {T} \end{array}\right) \cdot (K-S)! \cdot \left( \left\{ z^{K-S}\right\} f(z)\right) \end{aligned}$$
(18)

and since the total number of allocations of \(K-S\) balls to N bins is given by \(N^{K-S}\) the transition probability becomes

$$\begin{aligned} p_{S,S+T} = \frac{n(S,T)}{N^{K-S}} = \frac{ \left(\begin{array}{c} {N-S} \\ {T} \end{array}\right) \cdot (K-S)! \cdot \left( \left\{ z^{K-S}\right\} f(z)\right) }{N^{K-S}} \end{aligned}$$
(19)

To get explicit expressions, we expand the term \((e^z-z)^{N-(S+T)}\) of Eq. (17) using the binomial theorem, and simplify the resulting expression (exploiting \(K\le N\)) to arrive at:

$$\begin{aligned}&{n(S,T) = \left(\begin{array}{c} {N-S} \\ {T} \end{array}\right) \cdot (K-S)! \cdot } \\&\quad \left( \sum _{\nu = 0}^{K-(S+T)} (-1)^\nu \left(\begin{array}{c} {N-(S+T)} \\ {\nu } \end{array}\right) \frac{(N - T - \nu )^{K-(S+T)-\nu }}{(K-(S+T)-\nu )!} \right) \end{aligned}$$
(20)

which for \(T=0\) simplifies to

$$n(S,0) = (K-S)! \cdot \left( \sum _{\nu =0}^{K-S} (-1)^\nu \left(\begin{array}{c} {N-S} \\ {\nu } \end{array}\right) \frac{(N-\nu )^{K-S-\nu }}{(K-S-\nu )!} \right)$$
(21)

Note that a straightforward calculation yields that in particular we have

$$p_{K,K} = 1$$
(22)
$$p_{K-1,K-1}= \frac{K-1}{N}$$
(23)
$$p_{K-2,K-2}= \frac{N + K^2 - 5 K + 6}{N^2}$$
(24)

C Sticky variant: monotonicity of self-transition probabilities

In this Appendix we show that the self-transition probabilities \(p_{S,S}\) in the Markov model of the sticky variant (compare Eqs. (20) and in particular (9)) are strictly monotonically increasing in S for \(K \ge 2\), i.e. that for \(S \in \left\{ 0, 1, \ldots , K-1 \right\}\) we have \(p_{S,S} < p_{S+1,S+1}\). Note that the self-transition probabilities are also all positive, which can be established probabilistically from the fact that colliding balls can jump with positive probability back to exactly where they currently are, so that they remain in the colliding state.

The EGF corresponding to the diagonal entries can be specialized from Eq. (17) for fixed state S to become:

$$f_S(z) = e^{zS} \cdot \left( e^z - z\right) ^{N-S}$$
(25)

by setting \(T=0\), and valid for all \(0 \le S \le K \le N\). When taken as a power series, note that \(f_S(z)\) has non-negative coefficients, since \(g_1(z)=e^{z}=1+\frac{z}{1!} + \frac{z^2}{2!} + +\frac{z^3}{3!}+\cdots\) and \(g_2(z)=e^z-z = 1 + \frac{z^2}{2!} + \frac{z^3}{3!}+\cdots\) have only non-negative coefficients and \(f_S(z)\) is formed out of \(g_1(z)\) and \(g_2(z)\) by multiplications. Note that the power series \(g_3(z)=z\) also has only non-negative coefficients.

We can say more: for \(S\ne 0\) a factor \(g_1(z)\) is present which has strictly positive coefficients throughout, and all other factors of \(f_S(\cdot )\) contribute a 1, so in \(f_S(\cdot )\) there is at least one term of any order and all the coefficients are truly positive. For \(S=0\) all coefficients of \(f_S(\cdot )\) of order zero or of order two or more are strictly positive. The coefficient of order one (for the term z) is zero, but this is relevant only for \(K=1\). So for all \(K \ge 2\) and all S the coefficients of \(f_S(\cdot )\) are strictly positive.

From the general expression for the transition probabilities (Eq. 8) and by taking into account that extracting coefficients is equivalent to taking derivatives (Eq. 16) we get

$$\begin{aligned} p_{S,S}= & \frac{(K-S)! \cdot \left( \left\{ z^{K-S}\right\} f_S(z)\right) }{N^{K-S}}\\ = & \frac{(K-S)! \cdot \left[ \frac{\partial _{K-S}f_S(0)}{(K-S)!}\right] }{N^{K-S}} \\= & \frac{\partial _{K-S}f_S(0)}{N^{K-S}} \end{aligned}$$
(26)

With this, the condition \(p_{S,S} < p_{S+1,S+1}\) is equivalent to the condition

$$\begin{aligned}&\partial _{K-S}\left[ e^{zS}\left( e^z-z\right) ^{N-S}\right] (0) \\&\quad < N \cdot \left[ \partial _{K-S-1}\left[ e^{z(S+1)}\left( e^z-z\right) ^{N-S-1}\right] (0)\right] \end{aligned}$$
(27)

For \(S=0\) the left-hand side of this relation becomes

$$\begin{aligned} \partial _{K-1}\left[ \partial _1\left( e^z-z\right) ^N\right] (0) = N \cdot \partial _{K-1}\left[ \left( e^z-z\right) ^{N-1} \cdot \left( e^z-1\right) \right] (0) \end{aligned}$$

and the right-hand side will be

$$N \cdot \left[ \partial _{K-1}\left[ e^z\left( e^z-z\right) ^{N-1}\right] (0)\right]$$

Plugging this back into condition (27) after canceling N, subtracting the left-hand side from the right-hand-side and using the linearity of the derivative we get the condition

$$\begin{aligned} 0&< \partial _{K-S}\left[ e^z \left( e^z-z\right) ^{N-1} - \left( e^z-z\right) ^{N-1} \cdot \left( e^z-1\right) \right] (0)\\&= \partial _{K-S}\left[ \left( e^z-z\right) ^{N-1}(e^z - \left( e^z-1\right) \right] (0)\\&= \partial _{K-S}\left[ \left( e^z-z\right) ^{N-1}\right] (0) \end{aligned}$$

which is just extracting the \(K-S\) coefficient out of a power series (an integer power of \(g_2(z)\)) with coefficients that are non-negative in general and strictly positive from the \(z^2\) coefficient onwards. Hence, for \(N \ge K\ge 2\) and \(S=0\) the claim is true. For \(0 < S \le K-1\) we get for the left-hand side of condition (27):

$$\begin{aligned}&\partial _{K-S-1}\left[ \partial _1\left[ e^{zS}\left( e^z - z\right) ^{N-S} \right] \right] (0) \\&\quad = \partial _{K-S-1}\left[ Se^{zS}\left( e^z - z\right) ^{N-S} + e^{zS}(N-S)\left( e^z - z\right) ^{N-S-1}\left( e^z-1\right) \right] (0) \end{aligned}$$

With this the condition to check becomes

$$\begin{aligned} 0&< \partial _{K-S-1} \left[ N e^{z(S+1)}\left( e^z-z\right) ^{N-S-1} - Se^{zS}\left( e^z - z\right) ^{N-S} - e^{zS}(N-S)\left( e^z - z\right) ^{N-S-1}\left( e^z-1\right) \right] (0)\\&= \partial _{K-S-1} \left[ e^{zS}\left( e^z-z\right) ^{N-S-1} \left( N e^z - S\left( e^z-z\right) - (N-S)\left( e^z-1\right) \right) \right] (0)\\&= \partial _{K-S-1} \left[ e^{zS}\left( e^z-z\right) ^{N-S-1} \left( Sz + (N-S) \right) \right] (0)\\ \end{aligned}$$

which again is built from (a sum of) products of \(g_1(z)\), \(g_2(z)\) and \(g_3(z)\) and has strictly positive coefficients, verifying the claim.

D Sticky variant: strict positivity of transition probabilities

In this Appendix we argue that the transition probabilities above the diagonal \(p_{S,S+T}\) (with \(T > 0\)) in the Markov model of the sticky variant (compare Eqs. (20) and in particular (9)) are strictly positive, with one exception.

The starting point is again the EGF f(z) from Eq. (17), which is a product of integer multiples of the three elementary EGFs \(g_1(z)=e^{z}\), \(g_2(z)=e^z-z\) and \(g_3(z)=z\).

The case of a state \(0< S < K\) is straightforward: the EGF f(z) contains the factor \(z^T\) and the two other factors \((g_1(z))^S\) and \((g_2(z))^{N-(S+T)}\) both contribute a \(z^0=1\) term, so the \(z^T\) term in f(z) is strictly positive.

For the state \(S = 0\) we distinguish three cases:

  • With \(T=K\) we are asking about state transition probability \(p_{0,K}\) which from elementary combinatorial considerations is given by \(N \cdot (N-1) \cdot \cdots \cdot (N-K+1) > 0\).

  • With \(T=K-1\) we are asking that we are jumping out of a state in which no ball is settled into a state where every ball but one is settled—but to make this happen the first \(N-1\) balls must jump alone into an empty bin (otherwise they would not settle) and the remaining ball cannot jump into the same bin as any of the others (otherwise none of the two would settle), so the last ball must jump into another empty bin, where it settles. More formally, for \(S=0\) and \(T=K-1\) we get the generating function \(f(z)=z^{K-1}\cdot \left( e^z-z\right) ^{N-K+1}\) which for \(K \ge 3\) does not contain a term in z, so the coefficient for z (and thus the transition probability into this state) are 0.

  • For \(1 \le T \le K-2\) the argument is very similar to the argument for \(S > 0\).

E Sticky variant: convergence speed towards absorbing state

The claim of a geometric convergence speed of the Markov chain for the sticky variant towards the absorbing state 0 is in itself not a surprise, as it is similar to well-known results from the literature (compare for example [5, Chap. 6]), but the proofs of these frequently rely on the Perron-Frobenius theorem, which is only valid for irreducible transition matrices, which our upper-triagonal matrix \({\mathbf {P}}\) with the entries derived in “Appendix B” is not. We therefore proceed to verify this directly. Since \({\mathbf {P}}\) is diagonalizable (compare Sect. 4.2), we can express \({\mathbf {P}}\) as \({\mathbf {P}} = {\mathbf {U}} \cdot {\mathbf {D}} \cdot {\mathbf {U}}^{-1} =: {\mathbf {U}} \cdot {\mathbf {D}} \cdot {\mathbf {V}}\), where \({\mathbf {D}} = {{\mathrm{diag}}}(\lambda _0, \lambda _1, \ldots , \lambda _K)\) is a diagonal matrix made up of the eigenvalues / diagonal elements of \({\mathbf {P}}\) and the columns of \({\mathbf {U}}\) are given by the (linearly independent) right eigenvectors \({\mathbf {x_i}}\) for eigenvalues \(\lambda _i\).

Let \(M_j\) be a non-negative, integer-valued random variable denoting the number of steps it takes to get from starting state \(j \in \left\{ 0,\ldots ,K-1 \right\}\) to the absorbing state K. The average hitting time is then the expectation \(E\left[ M_j\right]\). For this expectation we can use the well-known so-called survivor representation [27]:

$$\begin{aligned} E\left[ M_j\right] = \sum _{n=0}^\infty \Pr \left[ M_j>n\right] \end{aligned}$$

If we denote by \(\left[ {\mathbf {v}}\right] _{i}\) the i-th component of a vector \({\mathbf {v}}\) then we clearly have from the setup of our system that

$$\begin{aligned} \Pr \left[ M_j > n\right] = \left[ {\mathbf {e_K}} - {\mathbf {e_j}} \cdot {\mathbf {P^n}}\right] _{K} = 1 - \left[ {\mathbf {e_j}} \cdot {\mathbf {P^n}} \right] _{K} \end{aligned}$$

holds, where \({\mathbf {e_k}}\) is the k-th unit vector in \({\mathbb {R}}^{K+1}\) (taken as a row vector here). Recalling \(\lambda _K=1\) we get

$$\begin{aligned} {\left[ {\mathbf {e_j}} \cdot {\mathbf {P^n}}\right] _{K}}&= \left[ {\mathbf {e_j}} \cdot {\mathbf {U}} \cdot {\mathbf {D}}^n\cdot {\mathbf {V}}\right] _{K} \\&= \lambda _0^n u_{j,0} v_{0,K} + \lambda _1^n u_{j,1} v_{1,K} \ldots + \lambda _{K-1}^n u_{j,K-1} v_{K-1,K} + u_{j,K} v_{K,K} \end{aligned}$$

Since convergence to the absorbing state happens with probability one and recalling \(\lambda _i < 1\) for \(i \in \left\{ 0,1,\ldots ,K-1 \right\}\) we see

$$\begin{aligned} 0= & \lim _{n \rightarrow \infty } \left[ {\mathbf {e_K}} - {\mathbf {e_j}} \cdot {\mathbf {P^n}}\right] _{K} \\= & 1 - u_{j,K} v_{K,K} \end{aligned}$$
(28)

and therefore

$$\begin{aligned} { \left[ {\mathbf {e_K}} - {\mathbf {e_j}} \cdot {\mathbf {P^n}}\right] _{K}}&= -\left( \lambda _0^n u_{j,0} v_{0,K} + \lambda _1^n u_{j,1} v_{1,K} \ldots \right.\\&\left.\quad +\, \lambda _{K-1}^n u_{j,K-1} v_{K-1,K}\right) \\&= -\, \lambda _{K-1}^n \left( \left( \frac{\lambda _0}{\lambda _{K-1}}\right) ^n u_{j,0} v_{0,K} + \cdots \right.\\&\left.\quad+\, \left( \frac{\lambda _{K-1}}{\lambda _{K-1}}\right) ^n u_{j,K-1} v_{K-1,K}\right) \\&\le \lambda _{K-1}^n \cdot \left\| {\mathbf {u_j}}\right\| _2\cdot \left\| {\mathbf {v}}\right\| _2 \end{aligned}$$
(29)

(using the abbreviations \({\mathbf {u_j}}=(u_{j,0},u_{j,1},\ldots ,u_{j,K-1})\) and \({\mathbf {v}}=(v_{0,K},v_{1,K},\ldots ,v_{K-1,K})\)). This verifies the claim.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Willig, A. Autonomous allocation of wireless body-sensor networks to frequency channels: modeling with repeated “balls-in-bins” experiments. Wireless Netw 26, 33–50 (2020). https://doi.org/10.1007/s11276-018-1777-1

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11276-018-1777-1

Keywords

Navigation