Assume that we have two cities A and B and at the end of the year we calculate the
Proportion of peoples remains in city A, we denote it by pa
Proportion of peoples remains in city B, we denote it by pb
Proportion of peoples moved from city A to B, we denote it by pab
Proportion of peoples moved from city B to A, we denote it by pba
We can represent this information as a Markov Matrix (say M).
From AFrom BMoved to ApapabMoved to Bpbapb
M=[papabpbapb]
pa+pab=1 (here we took all peoples in city A) pb+pba=1 (here we took all peoples in city B)
And proportions are positive and cannot be greater then 1
So it is a Markov Matrix
Now say that at time t=k.
Number of peoples in city A are uA
Number of peoples in city B are uB
So at that at time t=k+1 we can say,
[uAuB]t=k+1=[papabpbapb][uAuB]t=k
Say that we know ut=0 and we want to find ut=100 then we have to compute M100 but
for large M it's impractical to compute.
Now say that eigenvalues of M is λ1 and λ2 and eigenvectos of M is x1 and x2
So,
Say that we are in n dimensional space and q1,q2,⋯,qn are the basis for that n dimensional space.
Here all q1,q2,⋯,qn are orthogonal
We can express any vector in this n dimensional space as the linear combination of basis vectors.
Assume a vector v∈Rn in this n dimensional space.
we can express v as, v=x1q1+x2q2+⋯+xnqn
Ok we can express v as linear combination of basis vectors but we are interested in these
x1,x2,⋯,xn.
How can we compute x1,x2,⋯,xn?
First let's see how can we get x1? IDEA: All q1,q2,⋯,qn are orthogonal so qiTqj=0;∀i=j
so take dot product w.r.t. x1.
Here instead of vectors we are using functions, so here we are computing linear combinations
of functions (instead of vectors).
Here our space is ∞ dimensional
In vector case dot product is like,
Say v=⎣⎡v1⋮vn⎦⎤
and u=⎣⎡u1⋮un⎦⎤ v⋅u=v1u1+v2u2+⋯+v1un
For function dot product is like,
Vectors have some set of values like v=⎣⎡v1⋮vn⎦⎤.
But a function has a range of values like for cos(x) range is [0,2π].
And a dot product of two functions say f and g with interval [0,2π] is defined as.
danger
f⋅g=∫02πf(x)g(x)dx
Here our functions are 1,cos(x),sin(x),cos(2x),sin(2x),⋯ cos and sin are periodic function with period of [0,2π], so 0≤x≤2π
So we have ∞ orthogonal basis.
Now we want to find a0,a1,b1,a2,b2,⋯
First let's see how to find a1?