【線形代数】7-3-1 確率行列|要点まとめ
大学数学の線形代数における「確率行列」の定義や固有値の性質、長期的挙動の求め方を分かりやすく解説します。具体的な移行確率の例題と丁寧な解答を通じて、確実に理解を深めることができます。
確率行列
【確率行列】
\(A\in M_n(\mathbb{R})\)の成分が全て\(0\)以上であり、さらに
\(\displaystyle \sum_{i=1}^{n}a_{ij}=1\ \ (j=1,2,\cdots,n)\)
が成り立つ。各列ベクトルの成分の和が\(1\)になるとき、\(A\)を確率行列という。
【確率行列の固有値】
\(A\in M_n(\mathbb{R})\)が確率行列ならば、\(A\)の固有値の\(1\)つは\(1\)であり、さらに\(A\)の固有値の絶対値は全て\(1\)以下である。
【例題】次の問いに答えなさい。
ある業界では\(A\)社、\(B\)社、\(C\)社がサービスを提供し、毎年次のように利用者が契約を変更する。
・\(A\)社から\(A\)社で継続が\(80\)%、\(B\)社へ変更が\(10\)%、\(C\)社へ変更が\(10\)%
・\(B\)社から\(A\)社へ変更が\(10\)%、\(B\)社で継続が\(70\)%、\(C\)社へ変更が\(20\)%
・\(C\)社から\(A\)社へ変更が\(10\)%、\(B\)社へ変更が\(5\)%、\(C\)社で継続が\(85\)%
長期間後に各社の契約者数の比率はどうなっていくか調べなさい。ただし、全契約者数は毎年一定とし、新規契約や契約解除は考えないものとする。
・\(A\)社から\(A\)社で継続が\(80\)%、\(B\)社へ変更が\(10\)%、\(C\)社へ変更が\(10\)%
・\(B\)社から\(A\)社へ変更が\(10\)%、\(B\)社で継続が\(70\)%、\(C\)社へ変更が\(20\)%
・\(C\)社から\(A\)社へ変更が\(10\)%、\(B\)社へ変更が\(5\)%、\(C\)社で継続が\(85\)%
長期間後に各社の契約者数の比率はどうなっていくか調べなさい。ただし、全契約者数は毎年一定とし、新規契約や契約解除は考えないものとする。
今年の\(A\)社、\(B\)社、\(C\)社の契約者数をそれぞれ\(a_0,b_0,c_0\)とし、\(n\)年後の人数をそれぞれ\(a_n,b_n,c_n\)とする。このとき、\(n\)年後の人数と\(n+1\)年後の人数の関係は
\(\left\{\begin{array}{l}a_{n+1}=0.8a_n+0.1b_n+0.1c_n \\ b_{n+1}=0.1a_n+0.7b_n+0.05c_n \\ c_{n+1}=0.1a_n+0.2b_n+0.85c_n\end{array}\right.\)
行列で表すと
\(A=\begin{pmatrix}0.8 & 0.1 & 0.1 \\ 0.1 & 0.7 & 0.05 \\ 0.1 & 0.2 & 0.85\end{pmatrix},\)\(\begin{pmatrix}a_{n+1} \\ b_{n+1} \\ c_{n+1} \end{pmatrix}=A\begin{pmatrix}a_n \\ b_n \\ c_n \end{pmatrix}\ \ (n=0,1,2,\cdots)\)
\(A\)の固有方程式は
\(F_A(x)=\begin{vmatrix}x-0.8 & -0.1 & -0.1 \\ -0.1 & x-0.7 & -0.05 \\ -0.1 & -0.2 & x-0.85\end{vmatrix}\)
\(=\begin{vmatrix}x-1 & x-1 & x-1 \\ -0.1 & x-0.7 & -0.05 \\ -0.1 & -0.2 & x-0.85\end{vmatrix}\)
\(=\begin{vmatrix}x-1 & 0 & 0 \\ -0.1 & x-0.6 & 0.05 \\ -0.1 & -0.1 & x-0.75\end{vmatrix}\)
\(=(x-1)\begin{vmatrix}x-0.6 & 0.05 \\ -0.1 & x-0.75\end{vmatrix}\)
\(=(x-1)(x^2-1.35x+4.505)\)
\(=(x-1)(x-0.7)(x-0.65)=0\)
より、\(A\)の固有値は\(\lambda=1,0.7,0.65\)であり、固有値が全て異なるので\(A\)は対角化可能。
・固有空間\(V(1)\)のとき、
\((A-E)\mathbf{x}=\mathbf{0}\)の解空間であるから
\(A-E=\begin{pmatrix}-0.2 & 0.1 & 0.1 \\ 0.1 & -0.3 & 0.05 \\ 0.1 & 0.2 & -0.15\end{pmatrix}\)
\(\mapsto\begin{pmatrix}0 & 0.5 & -0.2 \\ 0 & -0.5 & 0.2 \\ 0.1 & 0.2 & -0.15\end{pmatrix}\)
\(\mapsto\begin{pmatrix}1 & 0 & -0.7 \\ 0 & 1 & -0.4 \\ 0 & 0 & 0\end{pmatrix}\)
解は\(\begin{pmatrix}x_1 \\ x_2 \\ x_3\end{pmatrix}=t\begin{pmatrix}7 \\ 4 \\ 10\end{pmatrix}\ \ (t\in\mathbb{R})\)
すなわち、\(V(1)\)の基底として\(\boldsymbol{p}_1=\begin{pmatrix}7 \\ 4 \\ 10\end{pmatrix}\)がとれる。
・固有空間\(V(0.7)\)のとき、
\((A-0.7E)\mathbf{x}=\mathbf{0}\)の解空間であるから
\(A-0.7E=\begin{pmatrix}0.1 & 0.1 & 0.1 \\ 0.1 & 0 & 0.05 \\ 0.1 & 0.2 & 0.15\end{pmatrix}\)
\(\mapsto\begin{pmatrix}0 & 0.1 & 0.05 \\ 0.1 & 0 & 0.05 \\ 0 & 0.2 & 0.1\end{pmatrix}\)
\(\mapsto\begin{pmatrix}1 & 0 & 0.5 \\ 0 & 1 & 0.5 \\ 0 & 0 & 0\end{pmatrix}\)
解は\(\begin{pmatrix}x_1 \\ x_2 \\ x_3\end{pmatrix}=t\begin{pmatrix}-1 \\ -1 \\ 2\end{pmatrix}\ \ (t\in\mathbb{R})\)
すなわち、\(V(0.7)\)の基底として\(\boldsymbol{p}_2=\begin{pmatrix}-1 \\ -1 \\ 2\end{pmatrix}\)がとれる。
・固有空間\(V(0.65)\)のとき、
\((A-0.65E)\mathbf{x}=\mathbf{0}\)の解空間であるから
\(A-0.65E=\begin{pmatrix}0.15 & 0.1 & 0.1 \\ 0.1 & 0.05 & 0.05 \\ 0.1 & 0.2 & 0.2\end{pmatrix}\)
\(\mapsto\begin{pmatrix}0 & -0.2 & -0.2 \\ 0 & -0.15 & -0.15 \\ 0.1 & 0.2 & 0.2\end{pmatrix}\)
\(\mapsto\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 0\end{pmatrix}\)
解は\(\begin{pmatrix}x_1 \\ x_2 \\ x_3\end{pmatrix}=t\begin{pmatrix}0 \\ -1 \\ 1\end{pmatrix}\ \ (t\in\mathbb{R})\)
すなわち、\(V(0.65)\)の基底として\(\boldsymbol{p}_3=\begin{pmatrix}0 \\ -1 \\ 1\end{pmatrix}\)がとれる。
ゆえに、
\(P=\begin{pmatrix}\boldsymbol{p}_1 & \boldsymbol{p}_2 & \boldsymbol{p}_3\end{pmatrix}=\begin{pmatrix}7 & -1 & 0 \\ 4 & -1 & -1 \\ 10 & 2 & 1\end{pmatrix}\)
\(P^{-1}AP=\begin{pmatrix}1 & 0 & 0 \\ 0 & 0.7 & 0 \\ 0 & 0 & 0.65\end{pmatrix}\)
ここで、
\((P^{-1}AP)^n=P^{-1}A^nP=\begin{pmatrix}1 & 0 & 0 \\ 0 & 0.7^n & 0 \\ 0 & 0 & 0.65^n\end{pmatrix}\)
\(\displaystyle P^{-1}=\frac{1}{21}\begin{pmatrix}1 & 1 & 1 \\ -14 & 7 & 7 \\ 18 & -24 & -3\end{pmatrix}\)
すなわち、
\(\begin{pmatrix}a_n \\ b_n \\ c_n\end{pmatrix}=A^n\begin{pmatrix}a_0 \\ b_0 \\ c_0\end{pmatrix}\)
\(=P\begin{pmatrix}1 & 0 & 0 \\ 0 & 0.7^n & 0 \\ 0 & 0 & 0.65^n\end{pmatrix}P^{-1}\begin{pmatrix}a_0 \\ b_0 \\ c_0\end{pmatrix}\)
\(\displaystyle =\frac{1}{21}\begin{pmatrix}x \\ y \\ z\end{pmatrix}\)
\(x=7(a_0+b_0+c_0)-(-14a_0+7b_0+7c_0)0.7^n\)
\(y=4(a_0+b_0+c_0)-(-14a_0+7b_0+7c_0)0.7^n\)
\(\ \ \ \ \ -(18a_0-24b_0-3c_0)0.65^n\)
\(z=10(a_0+b_0+c_0)+(-28a_0+14b_0+14c_0)0.7^n\)
\(\ \ \ \ \ +(18a_0-24b_0-3c_0)0.65^n\)
よって、
\(\displaystyle \lim_{n\to\infty}a_n=\frac{7(a_0+b_0+c_0)}{21}\)
\(\displaystyle \lim_{n\to\infty}b_n=\frac{4(a_0+b_0+c_0)}{21}\)
\(\displaystyle \lim_{n\to\infty}c_n=\frac{10(a_0+b_0+c_0)}{21}\)
となり、\(A:B:C=7:4:10\)に限りなく近づく。
\(\left\{\begin{array}{l}a_{n+1}=0.8a_n+0.1b_n+0.1c_n \\ b_{n+1}=0.1a_n+0.7b_n+0.05c_n \\ c_{n+1}=0.1a_n+0.2b_n+0.85c_n\end{array}\right.\)
行列で表すと
\(A=\begin{pmatrix}0.8 & 0.1 & 0.1 \\ 0.1 & 0.7 & 0.05 \\ 0.1 & 0.2 & 0.85\end{pmatrix},\)\(\begin{pmatrix}a_{n+1} \\ b_{n+1} \\ c_{n+1} \end{pmatrix}=A\begin{pmatrix}a_n \\ b_n \\ c_n \end{pmatrix}\ \ (n=0,1,2,\cdots)\)
\(A\)の固有方程式は
\(F_A(x)=\begin{vmatrix}x-0.8 & -0.1 & -0.1 \\ -0.1 & x-0.7 & -0.05 \\ -0.1 & -0.2 & x-0.85\end{vmatrix}\)
\(=\begin{vmatrix}x-1 & x-1 & x-1 \\ -0.1 & x-0.7 & -0.05 \\ -0.1 & -0.2 & x-0.85\end{vmatrix}\)
\(=\begin{vmatrix}x-1 & 0 & 0 \\ -0.1 & x-0.6 & 0.05 \\ -0.1 & -0.1 & x-0.75\end{vmatrix}\)
\(=(x-1)\begin{vmatrix}x-0.6 & 0.05 \\ -0.1 & x-0.75\end{vmatrix}\)
\(=(x-1)(x^2-1.35x+4.505)\)
\(=(x-1)(x-0.7)(x-0.65)=0\)
より、\(A\)の固有値は\(\lambda=1,0.7,0.65\)であり、固有値が全て異なるので\(A\)は対角化可能。
・固有空間\(V(1)\)のとき、
\((A-E)\mathbf{x}=\mathbf{0}\)の解空間であるから
\(A-E=\begin{pmatrix}-0.2 & 0.1 & 0.1 \\ 0.1 & -0.3 & 0.05 \\ 0.1 & 0.2 & -0.15\end{pmatrix}\)
\(\mapsto\begin{pmatrix}0 & 0.5 & -0.2 \\ 0 & -0.5 & 0.2 \\ 0.1 & 0.2 & -0.15\end{pmatrix}\)
\(\mapsto\begin{pmatrix}1 & 0 & -0.7 \\ 0 & 1 & -0.4 \\ 0 & 0 & 0\end{pmatrix}\)
解は\(\begin{pmatrix}x_1 \\ x_2 \\ x_3\end{pmatrix}=t\begin{pmatrix}7 \\ 4 \\ 10\end{pmatrix}\ \ (t\in\mathbb{R})\)
すなわち、\(V(1)\)の基底として\(\boldsymbol{p}_1=\begin{pmatrix}7 \\ 4 \\ 10\end{pmatrix}\)がとれる。
・固有空間\(V(0.7)\)のとき、
\((A-0.7E)\mathbf{x}=\mathbf{0}\)の解空間であるから
\(A-0.7E=\begin{pmatrix}0.1 & 0.1 & 0.1 \\ 0.1 & 0 & 0.05 \\ 0.1 & 0.2 & 0.15\end{pmatrix}\)
\(\mapsto\begin{pmatrix}0 & 0.1 & 0.05 \\ 0.1 & 0 & 0.05 \\ 0 & 0.2 & 0.1\end{pmatrix}\)
\(\mapsto\begin{pmatrix}1 & 0 & 0.5 \\ 0 & 1 & 0.5 \\ 0 & 0 & 0\end{pmatrix}\)
解は\(\begin{pmatrix}x_1 \\ x_2 \\ x_3\end{pmatrix}=t\begin{pmatrix}-1 \\ -1 \\ 2\end{pmatrix}\ \ (t\in\mathbb{R})\)
すなわち、\(V(0.7)\)の基底として\(\boldsymbol{p}_2=\begin{pmatrix}-1 \\ -1 \\ 2\end{pmatrix}\)がとれる。
・固有空間\(V(0.65)\)のとき、
\((A-0.65E)\mathbf{x}=\mathbf{0}\)の解空間であるから
\(A-0.65E=\begin{pmatrix}0.15 & 0.1 & 0.1 \\ 0.1 & 0.05 & 0.05 \\ 0.1 & 0.2 & 0.2\end{pmatrix}\)
\(\mapsto\begin{pmatrix}0 & -0.2 & -0.2 \\ 0 & -0.15 & -0.15 \\ 0.1 & 0.2 & 0.2\end{pmatrix}\)
\(\mapsto\begin{pmatrix}1 & 0 & 0 \\ 0 & 1 & 1 \\ 0 & 0 & 0\end{pmatrix}\)
解は\(\begin{pmatrix}x_1 \\ x_2 \\ x_3\end{pmatrix}=t\begin{pmatrix}0 \\ -1 \\ 1\end{pmatrix}\ \ (t\in\mathbb{R})\)
すなわち、\(V(0.65)\)の基底として\(\boldsymbol{p}_3=\begin{pmatrix}0 \\ -1 \\ 1\end{pmatrix}\)がとれる。
ゆえに、
\(P=\begin{pmatrix}\boldsymbol{p}_1 & \boldsymbol{p}_2 & \boldsymbol{p}_3\end{pmatrix}=\begin{pmatrix}7 & -1 & 0 \\ 4 & -1 & -1 \\ 10 & 2 & 1\end{pmatrix}\)
\(P^{-1}AP=\begin{pmatrix}1 & 0 & 0 \\ 0 & 0.7 & 0 \\ 0 & 0 & 0.65\end{pmatrix}\)
ここで、
\((P^{-1}AP)^n=P^{-1}A^nP=\begin{pmatrix}1 & 0 & 0 \\ 0 & 0.7^n & 0 \\ 0 & 0 & 0.65^n\end{pmatrix}\)
\(\displaystyle P^{-1}=\frac{1}{21}\begin{pmatrix}1 & 1 & 1 \\ -14 & 7 & 7 \\ 18 & -24 & -3\end{pmatrix}\)
すなわち、
\(\begin{pmatrix}a_n \\ b_n \\ c_n\end{pmatrix}=A^n\begin{pmatrix}a_0 \\ b_0 \\ c_0\end{pmatrix}\)
\(=P\begin{pmatrix}1 & 0 & 0 \\ 0 & 0.7^n & 0 \\ 0 & 0 & 0.65^n\end{pmatrix}P^{-1}\begin{pmatrix}a_0 \\ b_0 \\ c_0\end{pmatrix}\)
\(\displaystyle =\frac{1}{21}\begin{pmatrix}x \\ y \\ z\end{pmatrix}\)
\(x=7(a_0+b_0+c_0)-(-14a_0+7b_0+7c_0)0.7^n\)
\(y=4(a_0+b_0+c_0)-(-14a_0+7b_0+7c_0)0.7^n\)
\(\ \ \ \ \ -(18a_0-24b_0-3c_0)0.65^n\)
\(z=10(a_0+b_0+c_0)+(-28a_0+14b_0+14c_0)0.7^n\)
\(\ \ \ \ \ +(18a_0-24b_0-3c_0)0.65^n\)
よって、
\(\displaystyle \lim_{n\to\infty}a_n=\frac{7(a_0+b_0+c_0)}{21}\)
\(\displaystyle \lim_{n\to\infty}b_n=\frac{4(a_0+b_0+c_0)}{21}\)
\(\displaystyle \lim_{n\to\infty}c_n=\frac{10(a_0+b_0+c_0)}{21}\)
となり、\(A:B:C=7:4:10\)に限りなく近づく。
次の学習に進もう!