In this section, we will show you an example of simulation. This is your first example so read it carefully.
The Lajwaab Bakery Shop keeps stock of a popular brand of cake. Previous experience indicates the daily demand as given below:
Consider the following sequence of random numbers:
21, 27, 47, 54, 60, 39, 43, 91, 25, 20
Using this sequence, simulate the demand for the next 10 days. Find out the stock situation, if the owner of the bakery shop decides to make 30 cakes every day. Also estimate the daily average demand for the cakes on the basis of simulated data.
Using the daily demand distribution, we obtain a probability distribution as shown in the following table.
On small screens, scroll horizontally to view full calculation
|Daily demand||Probability||Cumulative probability||Random Numbers|
At the start of simulation, the first random number 21 generates a demand of 25 cakes as shown in table 2. The demand is determined from the cumulative probability values in table 1. At the end of first day, the closing quantity is 5 (30-25) cakes.
Similarly, we can calculate the next demand for others.
|Demand||Random Numbers||Next demand||Daily production = 30 cakes|
Total demand = 320
Average demand = Total demand/no. of days
The daily average demand for the cakes = 320/10 = 32 cakes.