Backward Induction

The ability to determine the best action given the subsequent optimal actions working backwards from the end of the game.

Question template

Consider a scenario where two investors, Alice and Bob, are negotiating the terms of a new venture with a venture capital firm called FutureTech Ventures. The negotiation will unfold over 3 sequential rounds with each investor having a chance to make a decision at different stages. Alice, who has the initial offer, will make the first decision. If Alice decides to finalize the negotiation at the start, she will secure an amount of p1 round1 and Bob will get p2 round1. If Alice decides to continue negotiations, Bob will have an opportunity in the second round to either finalize or prolong the talk. Upon finalizing in the second round, Alice's and Bob's take would be p1 round2 and p2 round2 respectively. If Bob chooses to not finalize and instead passes the decision back to Alice in the third round, Alice can choose to either finalize the deal or allow FutureTech Ventures to set the final investment terms. A conclusive decision from Alice in the third round would grant her p1 round3 and Bob p2 round3. However, should FutureTech Ventures dictate the final terms, Alice and Bob would end up with p1 round3 2 and p2 round3 2 respectively. Using backward induction, determine what Alice's optimal move should be at the first decision node.

Use it

from datasets import load_dataset
ds = load_dataset("narunraman/steer", "backward_induction")