Assignment 2
Assignment 2
ASSIGNMENT NO. 2
Lab Outcome (LO):
1. Two competing coffee shops, A and B, are located in the same neighborhood. Each
shop can choose to advertise (A) or not advertise (N) each day. The shops make their
decision simultaneously. If both shops advertise, they each earn a profit of $50. If
neither advertises, each earns $100. However, if one shop advertises and the other
does not, the one that advertises earns $200, while the other earns $0.
Solution:
A. Game Matrix:
Let p be the probability that A advertises, and q be the probability that B advertises.
50q+200(1−q)=100(1−q)
Solving this:
50q+200−200q=100−100q
150q=100⇒q=2/3
o If B advertises: 50p+0(1−p)
o If B does not advertise: 200p+100(1−p)
50p=200p+100(1−p)
Solving this:
50p=200p+100−100p
150p=100⇒p=2/3
• Pure Strategy: A pure strategy involves making a single, definitive choice (e.g., always
advertise or never advertise). If A and B both used pure strategies, their outcomes would
be deterministic.
• Mixed Strategy: A mixed strategy involves randomizing over different choices (e.g.,
advertise with probability 2/3). Here, the decision is not fixed, allowing for a
probabilistic approach, which can lead to more balanced payoffs over time. The mixed
strategy allows A and B to be unpredictable, avoiding consistent exploitation.
2. Consider two rival tech companies, X and Y, that are entering a new market for
cloud services. Each company has two strategic options:
• Aggressive pricing (A): The company slashes prices aggressively to capture market
share.
• Moderate pricing (M): The company sets moderate prices, focusing on long-term
sustainability.
• The payoff for each company depends on the combination of their strategies:
• If both companies choose aggressive pricing, they engage in a price war, and each
earns $200.
• If both companies choose moderate pricing, they peacefully coexist and each earns
$500.
• If one company chooses aggressive pricing and the other chooses moderate pricing,
the company with aggressive pricing earns $800 while the other earns $100 due to
a loss in market share.
A. Model this scenario as a strategic game in normal form by constructing the payoff
matrix for companies X and Y.
B. Using game theory algorithms and computational tools (such as the Best Response
Algorithm, Minimax, or Linear Programming), Identify the Nash Equilibrium for
this game. [LO5/L3]
Solution:
A. Payoff Matrix:
The payoff matrix for companies X and Y can be represented as follows:
Y: Aggressive (A) Y: Moderate (M)
X: Aggressive (A) (200, 200) (800, 100)
X: Moderate (M) (100, 800) (500, 500)
B. To identify the Nash Equilibrium, we need to determine the best response strategies for
each company given the strategies of the other company. A Nash Equilibrium occurs
when neither player has an incentive to unilaterally change their strategy.
1. For Company X:
o If Y chooses A:
▪ X’s payoff for A: 200
▪ X’s payoff for M: 100
▪ Best response: A (because 200 > 100)
o If Y chooses M:
▪ X’s payoff for A: 800
▪ X’s payoff for M: 500
▪ Best response: A (because 800 > 500)
2. For Company Y:
o If X chooses A:
▪ Y’s payoff for A: 200
▪ Y’s payoff for M: 100
▪ Best response: A (because 200 > 100)
o If X chooses M:
▪ Y’s payoff for A: 100
▪ Y’s payoff for M: 500
▪ Best response: M (because 500 > 100)
• If both companies choose A, neither company has an incentive to change, as both are
earning 200.
• If Company X chooses A and Company Y chooses M, Company X will earn 800
while Company Y earns 100, which is not stable as Y would switch to A.
• If both choose M, neither company has an incentive to change, earning 500 each.
Nash Equilibria:
From the analysis above, we see there are two Nash Equilibria:
3. In the context of data science and machine learning model competition, consider two
data science teams, Team A and Team B, competing to build the best predictive
model for a company's business problem. Each team has two strategic options:
• Invest more resources (I): Team spends more time and computational resources to
improve the model.
• Invest fewer resources (F): Team spends less time and resources, aiming to deliver
quickly but with a potentially lower-performing model.
The success of each team's model depends on the resource investment decisions of both
teams:
• If both teams invest more resources, they each get a medium score, reflecting
competition but with both models performing decently.
• If one team invests more resources and the other invests fewer, the team investing
more resources gets a high score, while the other gets a low score due to their lower-
performing model.
• If both teams invest fewer resources, they both get a low score, as neither model
performs well.
A. Use game theory concepts to analyze what would happen if the game were repeated
multiple times (iterated game) and identify how the teams might adjust their
strategies over time.
B. Identify how game theory concepts apply to this competitive scenario in data
science. [LO6/L3]
Solution:
If this game is repeated multiple times (an iterated game), both teams may adjust their
strategies over time. This is where concepts like Tit-for-Tat come into play:
• Tit-for-Tat: In an iterated version, each team might start by investing more resources. If
one team cheats (invests fewer resources), the other team may respond by also investing
fewer resources in the next round, leading to worse overall outcomes. Over time, the
teams may realize that consistently investing more benefits both, leading to cooperation.
In iterated games, cooperation can emerge because both teams recognize the long-term
benefits of mutual investment over the short-term advantage of defecting (investing fewer
resources).
• Nash Equilibrium: The teams settle into a balance where both choose to invest more
resources, knowing that deviating from this strategy leads to worse outcomes.
• Iterated Games: In practice, data science competitions often involve multiple rounds,
where teams can adjust their strategies based on their opponent’s behaviour. Over time,
cooperation (both teams investing more) becomes more appealing to avoid consistently
poor outcomes from both investing fewer resources.
• Competitive Strategy: In real-world data science competitions, teams must balance
resource allocation (computational power, time, and expertise) with the potential
payoffs of delivering a better model. Game theory helps explain how competitors can
reach equilibrium strategies that optimize their performance in competitive
environments.
• If all three companies choose the same location (either L1 or L2), they equally split
the customer base, earning 200 customers each.
• If two companies choose one location and the third company chooses the other
location, the company that is alone at a location receives 600 customers, while the
two at the same location share 300 customers equally, earning 150 customers each.
• If all three companies choose different locations (e.g., two at L1, one at L2), the
company with no competition gets 600 customers, and the two others get 0.
Solution:
• Company A:
If both B and C choose L1, A's best response is L1 (200 > 150).
If both B and C choose L2, A's best response is L2 (200 > 150).
If B chooses L1 and C chooses L2, A's best response is L1 (150 > 600).
If B chooses L2 and C chooses L1, A's best response is L2 (150 > 600).
Let:
The goal is to make each company's choice of L1 and L2 indifferent, meaning their
expected payoffs from choosing L1 or L2 should be the same.
EA(L1)=200(qr)+150(q(1−r)+(1−q)r)+600(1−q)(1−r)
EA(L2)=200((1−q)(1−r))+150(q(1−r)+(1−q)r)+600(qr)
• If both startups present innovative proposals, the incubator divides the investment
equally, but the startups incur higher development costs, each earning a net profit
of $300.
• If one startup presents an innovative proposal and the other presents a
conservative proposal, the innovative startup receives the full investment fund,
earning $500, while the conservative one gets nothing and loses $100.
• If both present conservative proposals, they receive equal investment, but at a
lower profit, each earning $200.
Solution:
There is no pure strategy Nash equilibrium, as the startups have conflicting incentives
depending on the other’s strategy.
We calculate the expected payoffs for each startup and solve for the probabilities p and
q that make both startups indifferent to presenting an innovative or conservative
proposal.
Mixed strategies allow each startup to randomize its decision, introducing uncertainty
into the opponent's strategy choice. This randomness prevents opponents from easily
predicting the outcome and increases flexibility in competitive environments where one
must balance risk and reward.