<< Chapter < Page Chapter >> Page >

Note that p ( 0 , 0 ) = 1 . If the population ever reaches zero, it is extinct and no more births can occur. Also, if the maximum population (10 in this case) is reached,there is a high probability of returning to that value and very small probability of becoming extinct (reaching zero state).

Inventory problem (continued)

In this case,

g ( j , D n + 1 ) = max { M - D n + 1 , 0 } for 0 j < m max { j - D n + 1 , 0 } for m j M

Numerical example

m = 1 M = 3 D n is Poisson (1)

To simplify writing, use D for D n . Because of the invariance with n , set

P ( X n + 1 = k | X n = j ) = p ( j , k ) = P [ g ( j , D n + 1 ) = k ]

The various cases yield

g ( 0 , D ) = max { 3 - D , 0 }

  • g ( 0 , D ) = 0 iff D 3 implies p ( 0 , 0 ) = P ( D 3 )
  • g ( 0 , D ) = 1 iff D = 2 implies p ( 0 , 1 ) = P ( D = 2 )
  • g ( 0 , D ) = 2 iff D = 1 implies p ( 0 , 2 ) = P ( D = 1 )
  • g ( 0 , D ) = 3 iff D = 0 implies p ( 0 , 3 ) = P ( D = 0 )

g ( 1 , D ) = max { 1 - D , 0 }

  • g ( 1 , D ) = 0 iff D 1 implies p ( 1 , 0 ) = P ( D 1 )
  • g ( 1 , D ) = 1 iff D = 0 implies p ( 1 , 1 ) = P ( D = 0 )
  • g ( 1 , D ) = 2 , 3 is impossible

g ( 2 , D ) = max { 2 - D , 0 }

  • g ( 2 , D ) = 0 iff D 2 implies p ( 2 , 0 ) = P ( D 2 )
  • g ( 2 , D ) = 1 iff D = 1 implies p ( 2 , 1 ) = P ( D = 1 )
  • g ( 2 , D ) = 2 iff D = 0 implies p ( 2 , 2 ) = P ( D = 0 )
  • g ( 2 , D ) = 3 is impossible

g ( 3 , D ) = max { 3 - D , 0 } = g ( 0 , D ) so that p ( 3 , k ) = p ( 0 , k )

The various probabilities for D may be obtained from a table (or may be calculated easily with cpoisson) to give the transition probability matrix

P = 0 . 0803 0 . 1839 0 . 3679 0 . 3679 0 . 6321 0 . 3679 0 0 0 . 2642 0 . 3679 0 . 3679 0 0 . 0803 0 . 1839 0 . 3679 0 . 3679

The calculations are carried out “by hand” in this case, to exhibit the nature of the calculations. This is a standard problem in inventory theory, involving costs andrewards. An m-procedure inventory1 has been written to implement the function g .

% file inventory1.m % Version of 1/27/97% Data for transition probability calculations % for (m,M) inventory policyM = input('Enter value M of maximum stock '); m = input('Enter value m of reorder point ');Y = input('Enter row vector of demand values '); PY = input('Enter demand probabilities ');states = 0:M; ms = length(states);my = length(Y); % Calculations for determining P[y,s] = meshgrid(Y,states);T = max(0,M-y).*(s<m) + max(0,s-y).*(s>= m); P = zeros(ms,ms);for i = 1:ms [a,b]= meshgrid(T(i,:),states); P(i,:) = PY*(a==b)';end P

We consider the case M = 5 , the reorder point m = 3 , and demand is Poisson (3). We approximate the Poisson distribution with values up to 20.

inventory1 Enter value M of maximum stock 5 % Maximum stockEnter value m of reorder point 3 % Reorder point Enter row vector of demand values 0:20 % Truncated set of demand valuesEnter demand probabilities ipoisson(3,0:20) % Demand probabilities P =0.1847 0.1680 0.2240 0.2240 0.1494 0.04980.1847 0.1680 0.2240 0.2240 0.1494 0.0498 0.1847 0.1680 0.2240 0.2240 0.1494 0.04980.5768 0.2240 0.1494 0.0498 0 0 0.3528 0.2240 0.2240 0.1494 0.0498 00.1847 0.1680 0.2240 0.2240 0.1494 0.0498

Remaining lifetime (continued)

g ( 0 , Y ) = Y - 1 , so that p ( 0 , k ) = P ( Y - 1 = k ) = P ( Y = k + 1 )

g ( j , Y ) = j - 1 for j 1 , so that p ( j , k ) = δ j - 1 , k for j 1

The resulting transition probability matrix is

P = p 1 p 2 p 3 1 0 0 0 1 0

The matrix is an infinite matrix, unless Y is simple. If the range of Y is { 1 , 2 , , M } then the state space E is { 0 , 1 , , M - 1 } .

Got questions? Get instant answers now!

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?

Ask