Editing
Nash Equilibrium
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Prisoner's Dilemma' (Calculating the Nash outcome):''' <syntaxhighlight lang="python"> def solve_prisoners_dilemma(player1_choice, player2_choice): """ Payoffs: (P1, P2) Silent (S), Betray (B) """ # Matrix: (Stay Silent, Stay Silent) = (3, 3) # Matrix: (Betray, Betray) = (1, 1) # Matrix: (Betray, Silent) = (5, 0) # Matrix: (Silent, Betray) = (0, 5) matrix = { ('S', 'S'): (3, 3), ('B', 'B'): (1, 1), ('B', 'S'): (5, 0), ('S', 'B'): (0, 5) } return matrix[(player1_choice, player2_choice)] # Why 'Betray' is the Nash Equilibrium: # If P2 stays silent, P1 gets 5 for betraying vs 3 for silent. # If P2 betrays, P1 gets 1 for betraying vs 0 for silent. # In BOTH cases, 'B' is better for P1. This is a Dominant Strategy. print(f"Outcome (Both Betray): {solve_prisoners_dilemma('B', 'B')}") </syntaxhighlight> ; Strategic Landmarks : '''A Beautiful Mind''' β The book/movie about John Nash that popularized the concept of "The Nash Equilibrium" (though the "Bar Scene" in the movie is actually technically inaccurate!). : '''Nuclear Deterrence (MAD)''' β The Cold War was a Nash Equilibrium: neither side could launch a first strike without being destroyed in return, so the stable outcome was "No one launches." : '''Traffic Jams''' β Why we all take the "Shortcut," which then becomes slower than the main road. That slowdown is a Nash Equilibrium. : '''E-Commerce Price Wars''' β Why bots on Amazon keep lowering prices by 1 cent until they both hit a "Floor" where they make zero profit. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information