You are on page 1of 8

# Question 1

1 Sample Space
2 pmf of X
Xi

S = {1, 2, 3, 4, 5, 6, 7, 8}
P(Xi)

Xi*P(Xi)
0.03
0.03
0.06
0.11
0.08
0.25
0.11
0.44
0.14
0.69
0.17
1
0.19
1.36
0.22
1.78

1
2
3
4
5
6
7
8

3

Expectation

E(X) =

5.67

Variance
Var(X) =

3.89

Table hand Simulation

Base time unit = Min

Just Finished Event

Variables

Entity No.

Time

Event Type

QA(t)

QB(t)

A(t)

-

0

INTI

0

0

0

A1

0

Arr

0

0

1

A2

3.46

Arr

1

0

1

96 Dep from A 1 1 1 A2 16.A2 3.46 Dep from A 0 0 1 A3 4.31 Arr 2 0 1 A2 11.08 Dep from Sys 1 0 1 A4 5.1 .46 Arr 1 0 1 A1 3.06 Dep from Sys 1 0 1 A6 18.71 Arr 2 0 1 - 20 End 2 0 1 Area Under the QA(t) Curve = 24.03 Area Under the QA(t) Curve = 1.21 Arr 2 0 1 A3 14.06 Arr 1 0 1 A1 5.36 Dep from A 1 0 1 A5 14.

75 1.03 0.53 14.22 0.46 1 0 A1-00.78 3.00 A1-03.47 6 9.46 .Xi2 Xi2*P(Xi) 1 4 9 16 25 36 49 64 0.46 1 0 A1-03.00 0 A2-03.22 ase time unit = Min es Attributes B(t) Statistical Accumu Departure from machie #Passed through Arrival times of entities (in A or Arrival time for Queue of Machie Queue A) machie B (in Queue B) A #Passed through Queue of Machie B 0 () () 0 0 0 A1-00.

46 A2-03.71 .21 A5-18.21 A3-04.31 A5-14.31 1 1 1 1 1 A2-03.71 A3-04.06 0 0 1 A2-03.31 A2-03.31 A5-14.46 1 A3-04.00 1 A2-03.31 A5-14.31 A5-14.46 2 1 () 2 1 A2-11.36 3 2 () 3 2 A3-14.06 A2-03.46 A3-04.46 A1-03.06 A4-05.0 A2-03.06 A4-05.96 4 3 A1-00.31 A5-14.06 A4-05.21 A5-18.06 A4-05.46 A3-04.46 A3-04.46 2 1 A1-03.06 A4-05.96 4 2 A3-14.21 A2-03.96 4 3 A3-14.21 A2-03.96 4 3 A3-14.46 A3-04.06 A4-05.46 A3-04.46 2 1 A1-03.06 A4-05.46 1 0 A1-03.46 A3-04.

Statistical Accumulators Event Calender Total waiting time Total waiting in Queue of time in Queue of machine A so far machine B so far #Departure [TAq] [TBq] the System Total times in System so far [Ts] 0 0 0 0 0 0 0 0 0 0 0 0 Entity No.46 20 3.46 4. 1 A2 A1 A1 A3 Time 0 20 3.06 .46 3.

08 5.06 20 14.01 28.71 20 26.10 2 5.86 20 26.36 20 11.36 20 5.68 16.08 16.95 1.36 14.36 20 5.86 37.0) = 5.71 20 16.86 28.08 16.08 7.08+(16.1 2 Z A3 A1 A2 A1 A4 A2 A4 A2 A2 A5 A5 A3 A2 A3 A2 A6 A2 A6 A4 A6 A4 A3 A4 A3 A7 A4 A3 A7 20 4.063.86 .08 11.1 2 17.36-4.96 16.31 11.01 18.08 (11.01 28.9 26.3 0 1 5.3 0 1 5.21 20 14.46) = 17.21 14.06 5.06 18.71 20 26.0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 (5.06-14.96 16.06 18.08-0.95 1.01 28.06) = 7.95 (16.95 0 1 5.96)= 1.08 0 0 1 5.68 16.31 11.

Event Calender Event Type Arr End Arr Dep from A End Dep from A Arr .

End Arr Dep from Sys Dep from A End Dep from Sys Arr Dep from A End Arr Dep from A End Dep from A Arr End Arr Dep from A Dep from Sys End Dep from A Dep from Sys Arr End Dep from Sys Arr End Dep from A Arr End Dep from A Dep from Sys End Dep from A Dep from Sys Arr Dep from A Dep from Sys Arr .