Research Article | Open Access
Hal Caswell, Silke F. van Daalen, "A Note on the vec Operator Applied to Unbalanced Block-Structured Matrices", Journal of Applied Mathematics, vol. 2016, Article ID 4590817, 3 pages, 2016. https://doi.org/10.1155/2016/4590817
A Note on the vec Operator Applied to Unbalanced Block-Structured Matrices
The vec operator transforms a matrix to a column vector by stacking each column on top of the next. It is useful to write the vec of a block-structured matrix in terms of the vec operator applied to each of its component blocks. We derive a simple formula for doing so, which applies regardless of whether the blocks are of the same or of different sizes.
The vec operator, applied to a matrix , produces a column vector, denoted by stacking each column of on top of the following column . Here, we consider the result of applying the vec operator to block-structured matrices, including the case in which the blocks differ in size. Such a matrix is called unbalanced . Previous studies of the vec operator and Kronecker product applied to block-structured matrices [2, 3] have not addressed this problem.
In many applications, block-structured matrices arise because the blocks represent different states or processes. In general, these blocks will be of different sizes and may depend on different parameters. If the vec operator is applied to such a matrix, it may be helpful to write the result in terms of the vec of each of the component blocks. This calculation arises, inter alia, in applications of matrix calculus  in demography and ecology, including nonlinear matrix population models  and finite-state Markov chains [6, 7]. In such models (we give an example below), the outcome is often a vector-valued function of the same matrix, and the matrix has an inherent block structure.
Our goal is to write the vec of the unbalanced block-structured matrix as a linear combination of the vec operator applied to each of the component blocks. Although the solution is simple, it is widely useful, so we present it here.
If the matrixcontainsblocks, we write it as the sum ofmatrices, each containing one of the blocks surrounded by zero matrices, as in where,, and and the corresponding zero matrices may be of different (but compatible) sizes. The vec of is the sum of the vec operator applied to each of the component matrices in (2). A generic member of this set of component matrices can be written as in the following result.
Theorem 1. Let be anblock-structured matrix, with the dimensions of the blocks indicated as subscripts, written where and and ,,,, or any combination, may be zero. Then where
Proof. To convert to requires the addition ofrows of zeros above,rows of zeros below,columns of zeros to the left, andcolumns of zeros to the right of . This is accomplished by multiplying on the left by and on the right by, so that Applying the vec operator to (6), using a well known result of Roth , yields (4).
Remark 2. We said it was simple.
Here are several examples of interest, to demonstrate the formulation of the block-structured matrices and the result of applying the vec operator.
(1) The transition matrix for a finite-state absorbing Markov chain withtransient states andabsorbing states can be written as a block-structured matrix. Numbering the states so that the transient states precede the absorbing states yields a canonical form for the (column-stochastic) transition matrix (e.g., ),The matrixdescribes transitions among the transient states anddescribes transitions from transient states to absorbing states. Suppose thatis a vector-valued () differentiable function of and thatandare differentiable functions of a vector ()of parameters. In demographic and ecological applications,might describe transitions and survival among life cycle stages of some organism, and might describe transitions to different causes of death (e.g., [7, 10]).
Following , the derivative ofwith respect tois thematrix To obtain we must apply the vec operator to the block-structured matrix. Applying the results (5) gives (noting thatandare both zero). Applying the vec operator and the chain rule gives In applications, it is likely that parameters of interest are defined in terms of their effects onand; (10) makes it possible to incorporate that dependence easily into the necessary derivative of the block-structured matrix.
We note that the intensity matrix of a continuous-time absorbing Markov chain also has a block structure (e.g., [9, Chap. 8]); applications of matrix calculus to such models  will benefit from the results presented here.
(2) The transition matrix of an absorbing Markov chain is a special case of the canonical form of a reducible nonnegative matrix . Ifis a reducible matrix, it can be written Each of the diagonal blocksis square and irreducible (or azero matrix). The division into diagonal blocks corresponds to a division of the vector space upon whichoperates into invariant subspaces.
(3) A balanced block-structured matrix, in which all blocks are the same size, is a special case of an unbalanced matrix. Theorem 1 provides a simple result for the vec of such a matrix. Consider thematrix where are each of dimension. This case is considered by .
The vec operator, by transforming a matrix into a vector, is useful in many applications . When the matrix is block structured and the blocks represent various processes involved in the application, it is convenient to be able to express the vec of the matrix as a linear combination of the vec operator applied to the component blocks. We have shown how to do so and described a few examples, but these do not exhaust the potential uses of the result.
The authors declare that they have no competing interests.
This research was supported by ERC Advanced Grant 322989, NSF Grant DEB-1257545, and NWO-ALW Project ALWOP.2015.100.
- H. V. Henderson and S. R. Searle, “The vec-permutation matrix, the vec operator and Kronecker products: a review,” Linear and Multilinear Algebra, vol. 9, no. 4, pp. 271–288, 1981.
- R. H. Koning, H. Neudecker, and T. Wansbeek, “Block Kronecker products and the vecb operator,” Linear Algebra and Its Applications, vol. 149, pp. 165–184, 1991.
- I. Ojeda, “Kronecker square roots and the block vec matrix,” The American Mathematical Monthly, vol. 122, no. 1, pp. 60–64, 2015.
- J. R. Magnus and H. Neudecker, Matrix Differential Calculus with Applications in Statistics and Econometrics, John Wiley & Sons, New York, NY, USA, 1988.
- H. Caswell, “Sensitivity and elasticity of density-dependent population models,” Journal of Difference Equations and Applications, vol. 15, no. 4, pp. 349–369, 2009.
- H. Caswell, “Perturbation analysis of continuous-time absorbing Markov chains,” Numerical Linear Algebra with Applications, vol. 18, no. 6, pp. 901–917, 2011.
- H. Caswell, “Sensitivity analysis of discrete Markov chains via matrix calculus,” Linear Algebra and Its Applications, vol. 438, no. 4, pp. 1727–1745, 2013.
- W. E. Roth, “On direct product matrices,” Bulletin of the American Mathematical Society, vol. 40, no. 6, pp. 461–468, 1934.
- M. Iosifescu, Finite Markov Processes and Their Applications, Wiley-Interscience, New York, NY, USA, 1980.
- H. Caswell, “Stage, age and individual stochasticity in demography,” Oikos, vol. 118, no. 12, pp. 1763–1782, 2009.
- F. R. Gantmacher, Matrix Theory, Volume 2, Chelsea, New York, NY, USA, 1959.
Copyright © 2016 Hal Caswell and Silke F. van Daalen. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.