Chapter 0: Preliminaries

Algorithmic Game Theory · Study Questions
Sets and functionsProbability and BayesΣ, series, argmax, derivativesExponents, e and ln, chain rule, partial derivativesExpected value and U[0, 1]Payoff matrix and best responseQuadratic equations and indifferenceSoftmax, tail probabilityBackward induction, O and Θ
Sercan KÜLCÜ

Multiple Choice · Probability

Question 1

A fair die is rolled once. What is the probability of getting a 5 or a 6?

C: Two of the six equally likely outcomes are favorable: 2/6 = 1/3. The two outcomes cannot occur on the same roll, so their probabilities add: 1/6 + 1/6. 1/36 is a product, for two separate events such as “5 on one die and 6 on another” happening together; 5/6 is the probability of “not getting a 6.”

Multiple Choice · Summation symbol

Question 2

What is the value of the sum Σi=14 2i?

D: Expanding Σ, write 2i for each i and add: 2·1 + 2·2 + 2·3 + 2·4 = 2 + 4 + 6 + 8 = 20. 8 is only the last term; 10 is 1 + 2 + 3 + 4, which forgets the factor 2.

Multiple Choice · max and argmax

Question 3

The expected payoffs of Ayşe’s three moves are: Rock 2, Paper 5, Scissors 1. What is the argmax?

B: argmax answers the question “which option gives the largest value?”: Paper. The number 5 is the max (the largest value). With no tie, argmax has a single element; a set such as {Rock, Paper} would be correct only if two values were tied for the largest.

Multiple Choice · Payoff matrix

Question 4

Ayşe is the row player and Bora the column player. The (Up, Right) cell shows (4, −1). What does this mean?

A: The first number of the pair is the row player’s (Ayşe’s) payoff and the second is the column player’s (Bora’s), and it holds only for that cell’s profile. Ayşe chooses only the row; if Bora switches to Left, the outcome lands in a different cell. For a zero-sum game the sum would have to be 0 in every cell.

Multiple Choice · Independent events

Question 5

A fair coin is flipped twice. What is the probability that both flips come up heads?

D: The flips are independent, so probabilities multiply: 1/2 · 1/2 = 1/4. There are four equally likely outcomes: HH, HT, TH, TT. The answer 1/3 comes from counting HT and TH as one outcome and thinking there are “three outcomes”; 3/4 is the probability of “at least one head.”

Multiple Choice · Expected value

Question 6

A lottery ticket pays 50 TL with probability 0.1, 10 TL with probability 0.3, and nothing otherwise. What is the ticket’s expected prize?

B: E = 50 · 0.1 + 10 · 0.3 + 0 · 0.6 = 5 + 3 + 0 = 8 TL. 20 TL is the plain average of the three prizes (50, 10, 0), which is wrong because the probabilities are not equal. 30 TL is the average of two prizes and 60 TL is their sum; neither multiplies by the probabilities.

Multiple Choice · Mixed strategy

Question 7

Ayşe plays the mixed strategy (1/3, 1/3, 1/3) in Rock-Paper-Scissors. Which statement is true?

C: In a mixed strategy one pure move is played each round, and chance decides which. Whatever Bora plays, Ayşe’s expected payoff is 1/3 · (+1) + 1/3 · 0 + 1/3 · (−1) = 0, so Bora always playing Paper does not change it. Following a fixed order is predictable and gets beaten; individual rounds need not end in draws.

Multiple Choice · Best response

Question 8

Bora plays (0.5 Rock, 0.3 Paper, 0.2 Scissors) in Rock-Paper-Scissors (winner +1, loser −1). Which move is Ayşe’s best response?

A: The expected payoff of each move: E[Rock] = −0.3 + 0.2 = −0.1; E[Paper] = 0.5 − 0.2 = 0.3; E[Scissors] = −0.5 + 0.3 = −0.2. argmax = Paper. The moves would be equally good only if Bora played (1/3, 1/3, 1/3).

Classic Question · Expected value

Question 9: The Card-Draw Game

One card is drawn at random from a 52-card deck. An ace (4 cards) wins 26 TL and a face card (Jack, Queen, King: 12 cards) wins 5 TL; all other cards win nothing. Entry to the game costs 3 TL.

a) Write the probabilities of the three outcomes and check that they sum to 1.
b) Find the expected prize.
c) What is the net expected gain? Is the game worth playing?

Show the answer

a) P(ace) = 4/52, P(face) = 12/52, P(other) = 36/52. The sum is (4 + 12 + 36)/52 = 52/52 = 1 ✓

b) E = 26 · 4/52 + 5 · 12/52 + 0 · 36/52 = 104/52 + 60/52 = 164/52 ≈ 3.15 TL.

c) Net ≈ 3.15 − 3 = +0.15 TL per game: a small profit in the long run. In a single game, though, you most likely (36/52) win nothing; the expected value describes the average, not the result of one game.

Classic Question · Best response

Question 10: Mark the Best Responses

Ayşe is the row player (Up/Down) and Bora the column player (Left/Right).

Ayşe ↓ / Bora →LeftRight
Up(4, 1)(1, 3)
Down(2, 2)(3, 0)

a) Find Ayşe’s best response to each of Bora’s columns and Bora’s best response to each of Ayşe’s rows.
b) Is there a cell in which both numbers are marked? What does that mean?

Show the answer

a) Bora Left → Ayşe Up (4 > 2); Bora Right → Ayşe Down (3 > 1). Ayşe Up → Bora Right (3 > 1); Ayşe Down → Bora Left (2 > 0).

BoraAyşeLeftRightUpDown(4,1)(1,3)(2,2)(3,0)

b) No: in every cell at least one player wants to switch to another option. The best responses form a cycle (Up-Left → Up-Right → Down-Right → Down-Left → …). There is no pure-strategy equilibrium; the players must mix.

Classic Question · Linear equation

Question 11: Equations in Two Unknowns

Bora plays Left with probability q and Right with probability r. Ayşe’s payoffs are 4 (Left) and 0 (Right) for Up, and 1 (Left) and 2 (Right) for Down. For Ayşe to be indifferent:

q + r = 1    and    4q + 0r = 1q + 2r

a) Solve the system.
b) Check the result in both equations and find Ayşe’s expected payoff.

Show the answer

a) Second equation: 4q − q = 2r ⇒ 3q = 2r ⇒ r = 3q/2. Substitute into the first: q + 3q/2 = 1 ⇒ 5q/2 = 1 ⇒ q = 2/5, r = 3/5.

b) 2/5 + 3/5 = 1 ✓. Up: 4 · 2/5 = 8/5; Down: 1 · 2/5 + 2 · 3/5 = 2/5 + 6/5 = 8/5 ✓. The two rows are equal: Ayşe’s expected payoff is 8/5 = 1.6.

Common mistake: forgetting to write r = 1 − q and trying to find two unknowns from a single equation.

Multiple Choice · Indifference

Question 12

In the mixed equilibrium of a 2×2 game, Ayşe plays Up with probability p. From which condition is p found?

B: When Ayşe mixes, her aim is to stop Bora from exploiting one column: p is chosen so that Bora is left indifferent. The condition that equalizes Ayşe’s own two rows gives Bora’s probability (q). p = 1/2 is right only in some games (in Guess the Card, p = 1/3).

Classic Question · Indifference

Question 13: Find the Mixed Equilibrium

In a game with no pure equilibrium, Ayşe is the row player and Bora the column player:

Ayşe ↓ / Bora →LeftRight
Up(4, 1)(1, 3)
Down(2, 2)(3, 0)

Let Ayşe play Up with probability p and Bora play Left with probability q.
a) Find the q that leaves Ayşe indifferent.
b) Find the p that leaves Bora indifferent.
c) What is each player’s expected payoff?

Show the answer

a) E[Up] = 4q + 1(1 − q) = 1 + 3q; E[Down] = 2q + 3(1 − q) = 3 − q. Equate: 1 + 3q = 3 − q ⇒ 4q = 2 ⇒ q = 1/2.

b) E[Left] = 1p + 2(1 − p) = 2 − p; E[Right] = 3p + 0(1 − p) = 3p. Equate: 2 − p = 3p ⇒ p = 1/2.

c) Ayşe: 1 + 3 · 1/2 = 2.5 (check: 3 − 1/2 = 2.5 ✓). Bora: 3 · 1/2 = 1.5 (check: 2 − 1/2 = 1.5 ✓).

Note: Ayşe’s equation gives Bora’s q, and Bora’s equation gives Ayşe’s p.

Multiple Choice · Backward induction

Question 14

Ayşe first says Left or Right; Bora sees this and responds. The leaves show the (Ayşe, Bora) payoffs. Which outcome does backward induction reach?

LeftRightabcdAyşeBoraBora(2,1)(0,3)(1,2)(3,0)

D: After Left, Bora picks b (3 > 1) ⇒ (0, 3). After Right, Bora picks c (2 > 0) ⇒ (1, 2). At the root Ayşe compares 0 with 1 and says Right: the outcome is (1, 2). Bora never picks d (3, 0) or a (2, 1).

Classic Question · Probability and expected value

Question 15: At Least One 6

Two dice are rolled. If at least one shows a 6, you win 10 TL; otherwise you win nothing. Entry to the game costs 3 TL.

a) Find the probability of at least one 6.
b) What is the net expected gain?
c) What wrong result does someone reach by computing “1/6 + 1/6”?

Show the answer

a) Complement: no 6 at all, (5/6) · (5/6) = 25/36. So P(at least one 6) = 1 − 25/36 = 11/36. (Counting the outcomes among the 36 that contain a 6 gives the same result: 6 + 6 − 1 = 11.)

b) E[prize] = 10 · 11/36 = 110/36 ≈ 3.06 TL; net ≈ 3.06 − 3 = +0.06 TL: nearly fair, very slightly profitable.

c) They get 12/36 = 1/3; E[prize] = 10/3 ≈ 3.33 TL and they claim a net of ≈ +0.33 TL. The outcome (6, 6) is counted twice, so the profit looks larger than it is.

Multiple Choice · Cartesian product

Question 16

Ayşe’s strategy set is S1 = {Up, Down} and Bora’s is S2 = {Left, Middle, Right}. How many strategy profiles are in S1 × S2?

B: The Cartesian product is all ordered pairs formed by choosing one from the first set and one from the second: |S1 × S2| = 2 · 3 = 6. 5 comes from adding the sizes (2 + 3); pairs are counted by multiplying. 8 = 2³ and 9 = 3² come from building the profile count with the wrong factors; the correct count is only |S1| · |S2| = 2 · 3 = 6.

Multiple Choice · Function notation

Question 17

In Rock-Paper-Scissors the winner gets +1, the loser −1, and a draw 0. Ayşe is the row player and Bora the column player. What is u2(Paper, Rock)?

C: In the profile (Paper, Rock), Ayşe plays Paper, Bora plays Rock, and Paper beats Rock. The subscript 2 says we look at Bora’s payoff: Bora loses, so u2(Paper, Rock) = −1. +1 is Ayşe’s payoff (u1). “Paper” is an action; the value of the function is a number.

Multiple Choice · Probability distribution

Question 18

Two fair dice are rolled. What is the probability that the sum is 8?

C: The equally likely pairs that give a sum of 8 are (2,6), (3,5), (4,4), (5,3), (6,2): 5 of the 36 outcomes, that is 5/36. 1/11 comes from treating the eleven different sums as equally likely; it is the pairs of dice that are equally likely, not the sums. 1/6 is the probability of a sum of 7 (6/36).

Multiple Choice · Counting

Question 19

A guard can protect 2 of 6 targets at the same time. How many pure strategies does the guard have when choosing which two targets to protect?

D: The order does not matter in this choice: C(6, 2) = 6!/(2! · 4!) = (6 · 5)/2 = 15. 30 = 6 · 5 counts the same pair in two orders; 36 = 6² would also allow choosing the same target twice. 12 = 6 · 2 comes from multiplying the number of targets by the number protected; the number of choices is not found that way.

Multiple Choice · Geometric series

Question 20

A cooperative arrangement pays 2 every round, and future rounds are weighted by δ = 0.8. What is the total discounted payoff, starting from this round and continuing forever?

A: Geometric series: 2 + 2δ + 2δ² + … = 2/(1 − δ) = 2/0.2 = 10. 8 is the sum 2δ/(1 − δ), which skips the first term. 1.6 is only the present value of the second round (2 · 0.8). Since δ < 1, the sum is bounded.

Classic Question · Conditional probability and Bayes’ rule

Question 21: Updating with Bayes

In a class, 30% of the students have played the 2/3-of-the-average game before. Of those who have, 90% write a guess between 0 and 20; of those who have not, 20% do. One student wrote 15.

a) Fill in a table for 100 students with the counts of the four groups.
b) What is P(guess between 0 and 20)?
c) What is the probability that this student has played the game before?

Show the answer

a) 30 have played: 27 of them guess 0–20, 3 guess higher. 70 have not played: 14 of them guess 0–20, 56 guess higher.

b) P(0–20) = 0.3 · 0.9 + 0.7 · 0.2 = 0.27 + 0.14 = 0.41 (41 students).

c) Bayes: P(played | 0–20) = 0.27 / 0.41 = 27/41 ≈ 0.66. The prior was 0.30; the observation raised the belief to 0.66.

Common mistake: answering 0.9. That is P(0–20 | played); what is asked is the reverse direction, and the 14 low guesses coming from the 70 who have not played also count.

Classic Question · Derivative and first-order condition

Question 22: The Best Price via Derivatives

If an app costs p TL, 20 − 2p thousand users buy it (0 ≤ p ≤ 10); there is no cost. Revenue is R(p) = p(20 − 2p) thousand TL.

a) Find R′(p).
b) Which p maximizes revenue, and what is the maximum revenue?
c) Show in two ways that the point you found is a peak.

Show the answer

a) R(p) = 20p − 2p² ⇒ R′(p) = 20 − 4p.

b) 20 − 4p = 0 ⇒ p = 5; R(5) = 5 · 10 = 50 thousand TL.

c) R″(p) = −4 < 0: a peak. The neighbors are also smaller: R(4) = R(6) = 48 < 50. At the ends R(0) = R(10) = 0.

p34567
R(p)4248504842

Multiple Choice · U[0, 1]

Question 23

Two rivals’ values are independent and U[0, 1]-distributed. A bidder who bids 0.7 wins if both rivals’ values are below 0.7. What is the probability of winning?

D: For U[0, 1], P(X ≤ 0.7) = 0.7; because the values are independent, probabilities multiply: 0.7 · 0.7 = 0.49. 0.7 is the probability against a single rival. 1.4 comes from adding the probabilities (a probability cannot exceed 1). 0.21 = 0.7 · 0.3 is the probability, in a specific order, that “the first rival is below 0.7 and the second above.”

Multiple Choice · Intuition for the integral

Question 24

What is ∫02 x dx?

B: The integral is the area under the line y = x between 0 and 2: a triangle with base 2 and height 2, area 2 · 2 / 2 = 2. The general rule ∫0b x dx = b²/2 also gives 4/2 = 2. 4 is the area of the rectangle (forgetting to halve). 1 comes from computing b/2 instead of b²/2 (2/2); 1/2 is the value of ∫01 x dx, with the upper limit taken as 1 instead of 2.

Classic Question · xᵀAy

Question 25: Expected Payoff via a Matrix

The row player’s payoff matrix is A; the rows are Up, Down and the columns are Left, Right.

ALeftRight
Up20
Down13

The row player plays x = (1/2, 1/2) and the column player plays y = (1/3, 2/3).
a) Find the vector Ay.
b) What is xᵀAy?
c) Which pure response is best against y, and how much does it earn?

Show the answer

a) Ay = (2 · 1/3 + 0 · 2/3, 1 · 1/3 + 3 · 2/3) = (2/3, 7/3): the expected payoff of each row against y.

b) xᵀAy = ½ · 2/3 + ½ · 7/3 = 9/6 = 3/2.

c) The largest entry of Ay is 7/3: Down, with expected payoff 7/3 ≈ 2.33. Mixing 50-50 (3/2) is worse: a mixture is the weighted average of the two rows’ expectations.

Multiple Choice · Exponent rules

Question 26

For x > 0, what does x0.5 · x0.5 · x0 equal?

B: In a product with the same base, exponents add: 0.5 + 0.5 + 0 = 1, so the result is x1 = x. x0.25 comes from multiplying the exponents (0.5 · 0.5); a product adds exponents, it does not multiply them. 0 treats x0 as 0 and zeroes the whole product; in fact x0 = 1. 1 mistakes the factor x0 = 1 for the value of the whole expression.

Multiple Choice · e and ln

Question 27

Given ln 2 ≈ 0.693, what is ln 8 approximately?

C: 8 = 2³ and ln(ak) = k · ln a: ln 8 = 3 · 0.693 ≈ 2.079 (check: e2.079 ≈ 8). 5.545 = 8 · 0.693 uses the number itself as the factor instead of the exponent. 0.333 ≈ 0.693³ mistakes ln(2³) for (ln 2)³. 0.231 = 0.693/3 divides instead of multiplying.

Multiple Choice · Chain rule

Question 28

If f(x) = ln(1 + 2x), what is f′(0)?

D: Chain rule: the outer derivative is 1/(1 + 2x) and the inner derivative is (1 + 2x)′ = 2. f′(x) = 2/(1 + 2x), so f′(0) = 2/1 = 2. 1 forgets the inner derivative and writes only 1/(1 + 2x). 0 mistakes the value f(0) = ln 1 = 0 for the derivative. 1/2 divides by the inner derivative instead of multiplying.

Multiple Choice · Partial derivative

Question 29

If u(q, r) = q(10 − q − r), what is ∂u/∂q?

A: u = 10q − q² − qr; r is held constant: ∂u/∂q = 10 − 2q − r. 10 − 2q takes the constant r to be zero; r is constant but not zero. −q is ∂u/∂r (the derivative with respect to r, holding q fixed). 10 − q − r applies only the first term of the product rule (q′ · g) and forgets the term q · g′ = −q.

Multiple Choice · Quadratic equation

Question 30

The equation 3p² + 2p − 1 = 0 was obtained for a probability p. What is p?

B: Δ = 2² − 4 · 3 · (−1) = 4 + 12 = 16, √Δ = 4. p = (−2 ± 4)/6 ⇒ p = 1/3 or p = −1. A probability must lie between 0 and 1: p = 1/3 (check: 3 · 1/9 + 2/3 − 1 = 0). −1 is the other root of the equation but cannot be a probability. 1 comes from using b instead of −b and computing (2 + 4)/6. “No root” misses the sign of −4ac and gets Δ = 4 − 12 = −8.

Multiple Choice · Growth rate

Question 31

Which of the following is true?

B: In 5n² + 100n the dominant term is n²; the constant factor 5 and the smaller term 100n are dropped: Θ(n²). n = O(n²) is true but not Θ: n grows more slowly than n². log n grows faster than log log n (for n = 65,536, 16 versus 4). 2n grows faster than any polynomial; for large n it never stays below any constant multiple of n10.

Classic Question · Logit and softmax

Question 32: Logit Choice

A player chooses between two actions by the logit rule: P(A) = eλvA / (eλvA + eλvB). The values are vA = 2, vB = 0 and λ = 1 (e² ≈ 7.389).

a) What is P(A)?
b) What would P(A) be if the values were vA = 5, vB = 3?
c) What is P(A) when λ = 0?

Show the answer

a) P(A) = e² / (e² + e0) = 7.389 / 8.389 ≈ 0.881. P(B) = 1 − 0.881 = 0.119.

b) Dividing numerator and denominator by e³ gives e5/(e5 + e3) = e²/(e² + 1): again 0.881. Only the difference vA − vB = 2 determines the probability.

c) When λ = 0 both exponentials are e0 = 1: P(A) = 1/2. If the sensitivity is zero, the values do not matter at all.

Common mistake: saying P(A) = vA/(vA + vB) = 2/2 = 1; this says B is never chosen and becomes meaningless when vB is negative.

Multiple Choice · Tail probability

Question 33

X takes only the values 0, 1, 2, 3, with P(X ≥ 1) = 0.8, P(X ≥ 2) = 0.5 and P(X ≥ 3) = 0.2. What is E[X]?

C: For integer-valued X ≥ 0, E[X] = P(X ≥ 1) + P(X ≥ 2) + P(X ≥ 3) = 0.8 + 0.5 + 0.2 = 1.5. Check: P(X = 0) = 0.2, P(1) = 0.3, P(2) = 0.3, P(3) = 0.2 ⇒ 0 · 0.2 + 1 · 0.3 + 2 · 0.3 + 3 · 0.2 = 1.5 ✓. 0.5 is the average of the three tails. 0.8 is only the first tail. 2.4 = 1 · 0.8 + 2 · 0.5 + 3 · 0.2 multiplies each tail by its value as well; the tail formula has no such factor.

Multiple Choice · Conditional probability

Question 34

Two fair dice are rolled and we are told that the sum is 8. What is the probability that at least one of the dice shows a 6?

A: B = “sum is 8”: (2, 6), (3, 5), (4, 4), (5, 3), (6, 2) ⇒ P(B) = 5/36. A ∩ B: (2, 6) and (6, 2) ⇒ P(A ∩ B) = 2/36. Apply the definition directly; Bayes’ rule is not needed: P(A | B) = (2/36) / (5/36) = 2/5. 11/36 is the unconditional P(at least one 6); it ignores the “sum is 8” information. 1/18 = 2/36 is the probability of the intersection, not divided by P(B). 1/3 counts (2, 6) and (6, 2) as one outcome and treats the three unordered pairs ({2, 6}, {3, 5}, {4, 4}) as equally likely; but {4, 4} comes from one ordered outcome and each of the others from two.

The End

Chapter 0: Preliminaries · Study Questions
Lecture slides: Chapter 0: Preliminaries · Lecture notes
1 / 1 Sercan KÜLCÜ. All rights reserved.