Markov Chains and Simulation Techniques
Markov Chains and Simulation Techniques
Techniques
- Dr. Sachin Vyavhare
(Associate Professor)
Markov Chains Analysis
• Introduction : Markov Chain Concepts
• To find the probabilities for the Kth Period
• Steady state probabilities
Concepts- Markov Chain
(A)Markov chain: A sequence of events
(or outcomes) in which , an event depends
upon the immediate preceding event (only) ,but
not on the other prior events is called as
Markov Chain or Markov Process.
E.g. The market shares for a product during a
month or year , condition of machines to be
used for production each week etc.
(B)States
Each of these systems consist of several possible states
,E.g. the various brands of the product represent the states
for the market share problem, similarly working ,fairly
working and non-working conditions represent the states
of the machines; Attendance- Absent and Present etc.
The states are assumed to be finite in number and are
collectively exhaustive and mutually exclusive .
A state is called as an absorbing state if there is no
tendency to leave that state , otherwise it is an non-
absorbing state. E.g. If a customer once uses a brand
,does not change it at all, then it is an absorbing state.
Markovchain analysis is used to study the
probabilities corresponding to the states at any given time
period, considering the movements from one state to
another.
(C)Transition Probabilities: The probabilities of
the system to change from a state (i) to the
state (j) is called as a transition probability and
it represents the likelihood of the system to
change the states, from one period to the next.
These transition probabilities are assumed to
remain constant over a period of time.
E.g. Probabilities that customers change their
brand of a product from A to other say B and C
etc.
(D)Transition Matrix(P) : A matrix representing
the states in one period (rows) and the state in the
next period (columns) ,along with the transition
probabilities between them is called as a transition
matrix(P).
e.g. If over a time, it is found that 70% customers
using brand A continue to use it next year while
20% shift to brand B and 10% to brand C. Similarly,
60% customers using brand B continue to use it next
year while 25% shift to brand A and 15% to brand
C. And for brand C 75% customers are retained
while 20% lost to brand A and 5% to brand B then
we have:
Transition Matrix
From To
Village Town City
Village 50% 30% 20%
Town 10% 70% 20%
City 10% 40% 50%
What will be proportion of population in village , town
and city after two years given that present population is
0.7, 0.2 , 0.1 respectively?
[ a b ] = [ a b ]* P
[ a b ] = [ a b ]*
[ a b ] = [0.70a+0.90b 0.30a+0.10b]
a= 0.70a+0.90b --------eq.1 and
b= 0.30a+0.10b --------eq.2
a= 0.70a+0.90b --------eq.1
0.30a=0.90b
a=3b
We have a+b=1 3b+b=1 4b=1
b=1/4=0.25
a=1-1/4=3/4=0.75
In the long run , the student is expected to be
late 25% of time.
Q.5) Market survey is made on two brands of breakfast
foods A & B. Every time a customer purchases, he may
buy the same brand or switch to another brand. The
transition matrix is given below:
From To
A B
A 0.8 0.2
B 0.6 0.4
• Development of model
• Experimentation
Daily Demand 0 10 20 30 40 50
(No. of units)
Probability 0.01 0.20 0.15 0.50 0.12 0.02
• Find
• 1) Average number of sets manufactured per day.
• 2) Average number of vacant spaces in truck per
day.
• 3) Average number of sets remaining to be
transported per day.
Monte-Carlo simulation to simulate the data.
No. of gen-set Probability Cumulative Random Number
manufactured Probability Interval
23 0.05
24 0.10
25 0.30
26 0.25
27 0.20
28 0.10
Monte-Carlo simulation to simulate the data.
No. of gen-set Probability Cumulative Random Number
manufactured Probability Interval
Frequency 50 25 15 5 3 2