A. Appendix to Chapter 2
A.5 Maple Code for Computing the Equilibrium point in Tournament Games
3.5 Inspection Game with Partial Inspection
In this section I consider a version of Inspection game, that the inspector can employ both of the inspection technologies. In other words, π1 and π2 are both positive. We can describe the π£(π1, π2 , π, π) by following table
66
Inspectee Inspector
Legal act violation Full Inspection Partial Inspection No Control π£(π1β 1, π2 , π β 1, π) +1 π£(π1, π2β 1, π β 1, π) 2 π β 1 π£(π1, π2, π β 1, π) -1
Table 3. 7. Inspection game with Partial Inspection
We know that
π£(π1β 1, π2 , π β 1, π) < π£(π1, π2β 1, π β 1, π) < π£(π1, π2, π β 1, π). Besides, for all value of π1, π2 and π β1 β€ π£(π1, π2, π, π) β€ 1. On the other hand, as 0< π < 1 we know that 0< 2π β 1 < 1. Hence, we can easily observe that there is a mixed strategy equilibrium. To analyse the equilibrium three cases may happen.
Case 1: In equilibrium inspector mixes between No Control and Full
inspection.
Case 2: In equilibrium inspector mixes between No Control and Partial
inspection.
Case 3: In equilibrium inspector mixes between Full-inspection and Partial
inspection.
These cases are shown in the following figures. In all the following graphs horizontal line shows the probability of the violation (π) by the inspectee and the vertical line shows the expected pay off for the inspector.
67
Green line denotes Not- check strategy, while inspectee is mixing between violate and not violate. Blue line denotes Full- check strategy, while inspectee is mixing between violate and not violate. Grey line denotes Partial- check strategy, while inspectee is mixing between violate and not violate.
The equilibrium point (Minmax strategy) has been denoted by a circle.
Figure 3. 8. Three possible cases for the equilibrium in inspection game with partial inspection
By knowing the initial condition of the value and the fact that the equilibrium is one of the cases in Figure 3.8, we can design a computer program to calculate the π£(π1, π2, π, π). The Maple code for computing the equilibrium point and its description are provided in Appendix B.1. The value of the game with one full inspection and one partial inspection is shown in the following two tables. Some other examples are provided in Appendix B.2 π£(π1, π2β 1, π, π) π£(π1, π2, π, π) π£(π1, π2, π, π) π£(π1, π2, π, π) π£(π1, π2β 1, π, π) π£(π1, π2β 1, π, π) π£(π1β 1, π2, π, π) π£(π1β 1, π2, π, π) +1 +1 +1 -1 -1 -1 2P-1 2P-1 2P-1 π π π
Case 1 Case 2 Case 3
68 π π£(1,1, π, π), 0 < π < 1/2 Type of the Case 2 3 4 5 6 Case 3 Case 1 Case 1 Case 1 Case 1
Table 3. 9. π(π, π, π, π·) for π β€ π β€ π where π < π· < π/π.
π π£(1,1, π, π), 1/2 < π < 1 Type of the Case 2 3 4 5 6 0 Case 1 Case 1 Case 1 Case 1 Case 1
69
Employing computer programing is computationally costly and slow. The following theorems help to find the value and optimal strategies much quicker.
Theorem 3. 8.For the Inspection game π(π, π, π, π·), when π > π, in the equilibrium the inspector is mixing between Full-inspection and Not- inspection.
Proof:
We can describe the game by the following graph.
Figure 3. 11. Inspection game with one full inspection and one partial inspection
is the connection of Full check line and Not check line. is the connection of Partial check line and Not check line. is the connection of Partial check line and Full check line.
is the line passing the intersection of Partial check line and Full check line, and (1,-1).
In the Graph 2.3 we know that π£(1,1, π, π) > π£(1,0, π, π) > π£(0,1, π, π); however we do not know if π£(1,1, π, π) β₯ ππ.
If π£(1,1, π, π) β₯ ππ then the equilibrium point is at intersection of Full inspection and No control; on the other hand, if π£(1,1, π, π) < ππ then the equilibrium point is at intersection of Partial inspection and No control.
We want to show that π£(1,1, π, π) β₯ ππ, β π > 2; and as a result the equilibrium point is the intersection of full inspection and not inspection. We know that π£(0,1,1, π) = 0, π£(1,0,1, π) = 0 and π£(1,1,1, π) = 0 for 1
2< π < 1; as a result π£(1,1,2, π) = 0 for 1
2< π < 1 where in equilibrium the inspector is mixing between all of his strategies. Besides, as we know
π£(1,1, π, π)? π£(1,1, π, π)? π£(1,0, π, π) π£(0,1, π, π) +1 2π β 1 β1 ππ+1 ππ π
70
π£(1,1,2, π) = 0, π£(1,0,2, π) = β13 and π£(0,1,2, π) = β2π+11 ; as a result we can easily calculate that π£(1,1,3, π) = β4π+31 where in equilibrium inspector is mixing between full inspection and no control.
Suppose that π£(1,1, π, π) β₯ ππ; we have to show that π£(1,1, π + 1, π) β₯ ππ+1.
We know that π£(1,1, π, π) β₯ ππ if and only if π£(1,1, π + 1, π) β₯ ππ+1; hence if we show that ππ+1 β₯ ππ+1 then it will implies that π£(1,1, π + 1, π) β₯ ππ+1.
Full inspection line is the line passing two following points (0, π£(0,1, π, π)) and (1, 1). By Theorem 3.1 we know that π£(0,1, π, π) = β πβ1
πβ1+2π . So the full inspection line is
.
Partial inspection line is the line passing two following points (0, π£(1,0, π, π)) and (1, 2π β 1). By the Dresher formula (formula 3.3.5) we know that π£(0,1, π, π) = βπβ1π+1 . So the partial inspection line is
.
Hence, the intersection of full inspection and partial inspection line is
π₯1 = , π¦1 = .
.
Hence, ππ+1 = β2ππ+π(πβ1)π2+2π+πβ2 .
On the other hand, the line between (π₯1, π¦1) and (1,-1) is π₯βπ₯1 π¦βπ¦1 = 1βπ₯1 β1βπ¦1. If π₯ = 0, then π¦ = ( 1βπ¦1 β1βπ₯) (βπ₯1) + π¦1. Hence, ππ = . As a result, ππ+1β ππ+1 = ,
which is positive for π > 2 and π >12. Hence, if 1/2 < π < 1 in equilibrium the inspector is mixing between full inspection and no control.
71
We know that for 0 < π < 1/2, in the game π£(1,1,3, π) in equilibrium the inspector is mixing between full inspection and no control (Case 1). Hence, similar to the induction we made for 1/2 < π < 1 we suppose that π£(1,1, π, π) β₯ ππ and we have to show that π£(1,1, π + 1, π) β₯ ππ+1, which is equivalent to show ππ+1β ππ+1 β₯ 0.
Full inspection line is the line passing two following points
[(0, π£(0,1, π, π)), (1, 1)]. We know by Theorem 3.1 that (0,1, π, π) = 2π
π β 1 , so the Full check line is .
Partial inspection line is the line passing two following points
[(0, π£(1,0, π, π)), (1, 2π β 1)]. By the Dresher formula we know that π£(1,0, π, π) = βπβ1π+1 , so the Partial inspection line is
.
The Intersection between the full inspection and partial inspection line is π₯1 =
π¦1 =
Hence, ππ+1 = .
On the other hand, the line between (π₯1, π¦1) and (1,-1) is π₯βπ₯1 π¦βπ¦1 = 1βπ₯1 β1βπ¦1. If π₯ = 0, then π¦ = ( β1βπ¦1 β1βπ₯) (βπ₯1) + π¦1. Hence, ππ = As a result, ππ+1β ππ+1 = β 2π(ππ + 2π β π β 1) (ππ2+ 2ππ β π2+ π β 2π)(π + 1)(ππ + 2π β π β 2) We know that ππ2+ 2ππ β π2+ π β 2π = π2(π β 1) + π(2π β 2) + π which is always negative. On the other hand, (ππ + 2π β
72 π β 1) and (ππ + 2π β π β 2) are both negative. Hence, ππ+1β ππ+1 β₯ 0.
Which means that for 0 < π < 1/2 and π > 2 in equilibrium the inspector mixes between full inspection and no control, β.
Corollary 3. 9. For the inspection game with 1 full inspection and 1 partial
inspection, if in equilibrium π(π, π, π, π·) is the optimal probability of assigning the full inspection, and π(π, π, π, π·) is probability of violation and π(π, π, π, π·) is the value of the game then they can be calculated by following recursive formulas.
π£(1, 1, π, π) = π£(1,1,πβ1,π)+2βπ£(0,1,πβ1,π)π£(1,1,πβ1,π)+π£(0,1,πβ1,π) (3.5.1)
π(1, 1, π, π) = π£(1,1,πβ1,π)+1
π£(1,1,πβ1,π)+2βπ£(0,1,πβ1,π) (3.5.2) π(1, 1, π, π) = π£(1,1,πβ1,π)+2βπ£(0,1,πβ1,π)2 (3.5.3) Proof:
We know that we can describe the π£(1, 1, π, π) by the following table. Inspectee
Inspector
Not Violate Violate Full Inspection Partial Inspection No Control π£(0, 1, π β 1, π) +1 π£(1, 0, π β 1, π) 2P-1 π£(1, 1, π β 1, π) -1
Table 3. 12. Inspection game with 1 full inspection and 1 partial inspection.
Besides, by Theorem 3.8 we know that in equilibrium the inspector is mixing between the full inspection and no control. Hence, as it has been explained in Appendix B.1 the value is equal to
π£(1, 1, π, π) = π£(1,1,πβ1,π)+2βπ£(0,1,πβ1,π)π£(1,1,πβ1,π)+π£(0,1,πβ1,π) .
π(1, 1, π, π) and π(1, 1, π, π) can also be calculated by the formulas provided in Appendix B.1, β.
73 Theorem 3. 10. In an inspection game with π1 number of full inspections, π2 number of partial inspection and π period of times, for π1 + π2 β€ 50 in the equilibrium we have
a) For 0 < π < 1/2, the inspector mixes between partial inspection and full inspection (Case 3) if π1+ π2 = π; and the inspector mixes between full inspection and no control (Case 1) if π1+ π2 < π. b) For 1/2 < π < 1, the inspector mixes between full inspection and
no control. Proof:
By employing the Maple code provided in Appendix B.2 we have analyzed all the inspection games with π1 number of full inspections and π2 number of partial inspections and π period of times where π1+ π2 β€ π β€ 50. The results of the computations are the same with the claim in the Theorem, β.
Theorem 3.10 is providing a general guess for the behavior of the players in the equilibrium. It seems that except when π1+ π2 = π and 0 < π < 1/2 which is Case 3, in all the other situations in equilibrium the inspector is mixing between full inspection and partial inspection. It means that the inspector never starts his sequential inspections with a partial inspection. In other words, as long as any opportunity exists for running a full inspection, the inspector will not run any partial inspections. Partial inspections will be used when no remaining full inspections are available. The other benefit, application of Theorem 3.10 is finding an efficient way to determine the value and optimal strategies of the game. The following theorem explains how Theorem 3.10 may help to find the more efficient way to calculate the value of the game and optimal strategies.
Theorem 3. 11. If in an inspection game with partial inspection there are a
number of full inspections, a number of partial inspection and m period of times; if we know that in equilibrium the inspector is mixing between full inspection and no control then the value of the game can be calculated by the values of the previous level by following formula
π£(π1, π2, π, π) = π£(π1,π2,πβ1,π)+π£(π1β1,π2,πβ1,π)
74
If we know that in equilibrium the inspector is mixing between partial inspection and no control then the value of the game can be calculated by the values of the previous level by following formula
π£(π1, π2, π, π) = (2πβ1)π£(π1,π2,πβ1,π)+π£(π1,π2β1,πβ1,π)
π£(π1,π2,πβ1,π)+2πβπ£(π1,π2β1,πβ1,π) . (3.5.5) If we know that in equilibrium the inspector is mixing between partial inspection and full inspection then the value of the game can be calculated by the values of the previous level by following formula
π£(π1, π2, π, π) = π£(π1,π2β1,πβ1,π)β(2πβ1)π£(π1β1,π2,πβ1,π)
π£(π1,π2β1,πβ1,π)+(2β2π)βπ£(π1β1,π2,πβ1,π) . (3.5.6)
Conclusion
I investigate the classical inspection game while not all the inspections can fully detect the violation. For some cases I show that the inspector always applies a full inspection at the beginning of the series of inspections. This characteristic leads to find a recursive formula for calculating the value of the game. The recursive formulae and its explicit solution computationally would be less costly, comparing to the computer programing method. Values of the games with a different number of full and partial inspection can provide a robust tool to compare the different type of the inspections.
Reference
Avenhaus, R. and M. J. Canty (2005). 'Playing for time: A sequential inspection game', European Journal of Operational Research, vol.
167(2), pp. 475-492.
Baston, V. J. and F. A. Bostock (1991). 'A GENERALIZED INSPECTION GAME', Naval Research Logistics, vol. 38(2), pp. 171-182.
Canty, M. J., D. Rothenstein and R. Avenhaus (2001). 'Timely inspection and deterrence', European Journal of Operational Research, vol.
131(1), pp. 208-223.
Dresher, M. (1962) A sampling inspection problem in arms control
75
Maschler, M. (1966). 'A price leadership method for solving the inspector's nonβconstantβsum game', Naval Research Logistics Quarterly, vol.
13(1), pp. 11-33.
Maschler, M. (1967). 'The inspector's nonβconstantβsum game: Its dependence on a system of detectors', Naval Research Logistics
Quarterly, vol. 14(3), pp. 275-290.
Rinderle, K. (1996). Mehrstufige sequentielle Inspektionsspiele mit
statistischen Fehlern erster und zweiter Art: KovaΔ.
Rothenstein, D. and S. Zamir (2002). 'Imperfect inspection games over time', Annals of Operations Research, vol. 109(1-4), pp. 175-192. Thomas, M. U. and Y. Nisgav (1976). 'An infiltration game with time
dependent payoff', Naval Research Logistics Quarterly, vol. 23(2), pp. 297-302.
von Stengel, B. (1991). 'Recursive inspection games, Report No. S 9106',
Computer Science Faculty, Armed Forces University Munich.
Von Stengel, B. (2016). 'Recursive inspection games', Mathematics of
76