Question #128533

A car rental agency has three rental locations, denoted by 1, 2, and 3. A customer may rent a car from any of the three locations and return the car to any of the three locations. The manager finds that customers return the cars to the various locations according to the following probabilities [{0.8, 0.3, 0.2}, {0.1, 0.2, 0.6}, {0.1, 0.5, 0.2}] If a car is rented initially from location 2, then the initial state vector is x = {0, 1, 0}. Calculate x (1) , x (2) , and x (3) to three decimal places

Expert's answer

The solution to the problem is to calculate the state vector of the transition matrix of the Markov chain.

Simulate this problem using the following matrix:

T = [0.80.30.20.10.20.60.10.50.2]\begin{bmatrix} 0.8 & 0.3&0.2 \\ 0.1&0.2&0.6\\ 0.1&0.5&0.2\\ \end{bmatrix}


where initial state vector is X0 = [0, 1, 0]

If Xn+1 and Xn are two consecutive state vectors of a Markov chain with transition matrix T, then Xn+1=T Xn

calculate X1:

X1 = X0*T =[0.8*0+0.3*1+0.2*0, 0.1*0+0.2*1+0.6*0, 0.1*0+0.5*1+0.2*0] =[0.3,0.2,0.5]

X1 = [0.3,0.2,0.5]

calculate X2 to three decimal places:

X2 =X1*T = [0.8*0.3+0.3*0.2+0.2*0.2, 0.1*0.3+0.2*0.2+0.6*0.5, 0.1*0.3+0.5*0.2+0.2*0.5] =

[0.4 , 0.37, 0.23]

X2 = [0.4 , 0.37, 0.23]

calculate X3 to three decimal places:

X3 =X2*T = [0.8*0.4+0.3*0.37+0.2*0.23, 0.1*0.4+0.2*0.37+0.6*0.23 0.1*0.4+0.5*0.37+0.2*0.23] =

[0.477, 0.252, 0.271]

X3 = [0.477, 0.252, 0.271]




LATEST TUTORIALS
APPROVED BY CLIENTS