<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mind Your Decisions &#187; Auctions</title>
	<atom:link href="http://mindyourdecisions.com/blog/category/game-theory/auctions/feed/" rel="self" type="application/rss+xml" />
	<link>http://mindyourdecisions.com/blog</link>
	<description>Articles on game theory and personal finance</description>
	<lastBuildDate>Wed, 08 Feb 2012 05:01:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Video: don&#8217;t use penny auction sites</title>
		<link>http://mindyourdecisions.com/blog/2012/02/08/video-dont-use-penny-auction-sites/</link>
		<comments>http://mindyourdecisions.com/blog/2012/02/08/video-dont-use-penny-auction-sites/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 05:01:14 +0000</pubDate>
		<dc:creator>Presh Talwalkar</dc:creator>
				<category><![CDATA[Auctions]]></category>
		<category><![CDATA[Saving]]></category>
		<category><![CDATA[auction]]></category>
		<category><![CDATA[scam]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://mindyourdecisions.com/blog/?p=6055</guid>
		<description><![CDATA[I have been meaning to write about penny auction sites like Quibids and Skoreit. These sites got big a couple years ago, and there are some great articles at codinghorror.com about how they are a scam and basically a lottery. This would be fine if the sites were regulated like a lottery. But in fact, [...]]]></description>
			<content:encoded><![CDATA[<p>I have been meaning to write about penny auction sites like Quibids and Skoreit.</p>
<p>These sites got big a couple years ago, and there are some great articles at codinghorror.com about how they are a <a href="http://www.codinghorror.com/blog/2008/12/profitable-until-deemed-illegal.html">scam</a> and basically a <a href="http://www.codinghorror.com/blog/2009/05/penny-auctions-theyre-gambling.html">lottery</a>.</p>
<p>This would be fine if the sites were regulated like a lottery. But in fact, they advertise on TV as legitimate auction sites.</p>
<p>Here&#8217;s a video that summarizes some of the issues with penny auctions:</p>
<p><span id="more-6055"></span></p>
<p><strong><a href="http://www.youtube.com/watch?v=whUFpwxbKlA">Video: Don&#8217;t Waste Your Money &#8211; Penny auction scams</a></strong></p>
<p><object width="420" height="315" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/whUFpwxbKlA?version=3&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed width="420" height="315" type="application/x-shockwave-flash" src="http://www.youtube-nocookie.com/v/whUFpwxbKlA?version=3&amp;hl=en_US" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p>Some of the main objections to these sites are:</p>
<ul>
<li>the timers are different: the auction time keeps increasing as people bid</li>
<li>it costs money to bid, and often you end up with nothing</li>
<li>there may be costs just to sign up</li>
</ul>
<p>Another issue to add is:</p>
<ul>
<li>these sites often offer free bids for people to sign up. These free bids increase the length of the auction (as the timer resets) which forces paying bidders to have to place more bids, generating extra revenue for the site</li>
</ul>
<p><strong>The bottom line</strong>: avoid penny auctions unless you are looking to do something similar to gambling and playing the lottery.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindyourdecisions.com/blog/2012/02/08/video-dont-use-penny-auction-sites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Auction theory puzzle: finding the right number of bidders</title>
		<link>http://mindyourdecisions.com/blog/2011/12/20/auction-theory-puzzle-finding-the-right-number-of-bidders/</link>
		<comments>http://mindyourdecisions.com/blog/2011/12/20/auction-theory-puzzle-finding-the-right-number-of-bidders/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 05:01:29 +0000</pubDate>
		<dc:creator>Presh Talwalkar</dc:creator>
				<category><![CDATA[Auctions]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Game Theory]]></category>
		<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://mindyourdecisions.com/blog/?p=5564</guid>
		<description><![CDATA[If you liked yesterday&#8217;s puzzle about optimizing with uncertain demand, you&#8217;ll definitely enjoy today&#8217;s post. One of my favorite topics related to game theory is the subject of auction theory. The results from auction theory are very interesting, but I have yet to cover much about it because the math can be quite intimidating. Today&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>If you liked yesterday&#8217;s puzzle about <a href="http://wp.me/p6aMk-1rF">optimizing with uncertain demand</a>, you&#8217;ll definitely enjoy today&#8217;s post.</p>
<p>One of my favorite topics related to game theory is the subject of <a href="http://mindyourdecisions.com/blog/category/game-theory/auctions/">auction theory</a>.</p>
<p>The results from auction theory are very interesting, but I have yet to cover much about it because the math can be quite intimidating.</p>
<p>Today&#8217;s problem is still challenging, but it should be within the reach of a math enthusiast. Here is the puzzle:</p>
<p><span id="more-5564"></span></p>
<blockquote><p>
Alice wants to auction off a rare collector&#8217;s item. She knows the item is worth somewhere betweeen $500 and $1,000, but she has had trouble finding interested buyers.</p>
<p>A company offers to find interested participants at the rate of $10 per bidder. (So they&#8217;ll find one bidder for $10, and ten bidders for $100)</p>
<p>How many bidders should Alice tell the company to find?</p>
<p>A couple of points:</p>
<p>&#8211;Assume the bidders have valuations randomly drawn from the uniform distribution on [500,1000]</p>
<p>&#8211;Suppose Alice holds an eBay style auction and she will sell the item for a price equal to the second highest valuation of the bidders* </p>
<p>(*this is a <a href="http://en.wikipedia.org/wiki/Auction_theory#Revenue_equivalence">standard result</a> in auction theory, though technically it&#8217;s for one bid above the second highest valuation. An example: if bidders had valuations of $500, $600, and $700, the person who values the item at $700 would win the auction. The price he would pay in an eBay style auction with dollar bid increments is $601&#8211;just enough to outbid the person with the second highest valuation)
</p></blockquote>
<p>The puzzle is about two conflicting forces: Alice wants more bidders to bring her higher bids, but she faces a tradeoff in the cost of acquiring bidders.</p>
<p>Can you figure out the optimal number of bidders?</p>
<p>The answer is written below.</p>
<p><b>Spoilers below!</b><br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
.<br />
<b>Answer to the puzzle</b></p>
<p>Alice wants to maximize her expected auction profits. The equation for profits for <i>n</i> bidders is something like this:</p>
<blockquote><p>
Profit(<i>n</i>)= E(revenue <i>n</i>) &#8211; Cost(<i>n</i>)
</p></blockquote>
<p>The cost part is easy to figure out. Alice pays $10 per bidder, so her cost is 10<i>n</i>.</p>
<p>The harder part is figuring out the expected revenue for <i>n</i> bidders. What we want to know is the following. If we take <i>n</i> draws from a uniform distribution, what is the expected value of the second-highest draw?</p>
<p>This question is actually part of a larger topic in probability called order statistics. One can explicitly solve for the expected value of any distribution using the technique outlined in this lecture (<a href="http://www.math.ntu.edu.tw/~hchen/teaching/StatInference/notes/lecture37.pdf">pdf</a>).</p>
<p>I will not go through the math here. But I will mention the order statistics for the uniform distribution are easy to visualize. What happens is that if you take <i>n</i> draws from the uniform distribution, the expected value of the <i>n</i> draws can be visualized as <i>n</i> points being evenly spaced on the interval.</p>
<p>Here is a picture to illustrate what I mean:</p>
<p><img src="http://mindyourdecisions.com/blog/wp-content/uploads/2011/12/uniform-distribution-order-statistics.png" alt="" title="uniform-distribution-order-statistics" width="400" height="700" class="aligncenter size-full wp-image-5569" /></p>
<p>So the <i>n</i> points separate themselves along the interval. So you divide the interval into <i>n</i>+1 segments, and the points will be at the fractions 1/(<i>n</i> + 1) along the way for the minimum, then 2/(<i>n</i> + 1) along the way for the second lowest point, etc., until the maximum draw which has an expected value of <i>n</i>/(<i>n</i> + 1).</p>
<p>By this logic, the second highest draw is expected to be at (<i>n</i> &#8211; 1)/(<i>n</i> + 1) along the way from 500 to 1000. This means the second highest valuation is expected to be:</p>
<blockquote><p>
500 + 500 * (<i>n</i> &#8211; 1)/(<i>n</i> + 1)
</p></blockquote>
<p>This is our formula for expected revenue. So we can substitute this expression back into the formula for profits:</p>
<blockquote><p>
Profit(<i>n</i>)= E(revenue <i>n</i>) &#8211; Cost(<i>n</i>)<br />
Profit(<i>n</i>) = 500 + 500 * (<i>n</i> &#8211; 1)/(<i>n</i> + 1) &#8211; 10<i>n</i>
</p></blockquote>
<p>Now we need to solve for the profit maximizing point. Let&#8217;s just use a shortcut and plug this into WolframAlpha:</p>
<p><a href="http://www.wolframalpha.com/input/?i=maximum+500%2B500*%28n-1%29%2F%28n%2B1%29-10n%2C+n%3E0"><img src="http://mindyourdecisions.com/blog/wp-content/uploads/2011/12/auction-theory-puzzle-maximum-bidders.png" alt="" title="auction-theory-puzzle-maximum-bidders" width="447" height="578" class="aligncenter size-full wp-image-5568" /></a></p>
<p>We can see that the profit maximizing point is at <i>n</i> = 9 bidders, and Alice can expect $810 of profit.</p>
<p>The lesson is that more bidders is not always optimal: you capture much of the expected revenue from the first few bidders, and then the returns are diminishing (unless some bidder is a big outlier and you can extract money from him).</p>
<p><b>Extension: suppose Alice earned the highest valuation</b></p>
<p>As an extension, let&#8217;s imagine that Alice somehow was able to extract the highest bidder to pay his entire valuation. This is not an assumption used in theory, but let&#8217;s say it happens because of some irrational bidding war.</p>
<p>In that case, Alice would expect to earn slightly revenue (the term (<i>n</i> &#8211; 1)/(<i>n</i> + 1) becomes <i>n</i>/(<i>n</i>+1)), meaning her profit function is:</p>
<blockquote><p>
Profit(<i>n</i>) = 500 + 500 * <i>n</i>/(<i>n</i> + 1) &#8211; 10<i>n</i>
</p></blockquote>
<p>How will that change the number of bidders?</p>
<p>Here is the answer:</p>
<p><a href="http://www.wolframalpha.com/input/?i=maximum+500%2B500*n%2F%28n%2B1%29-10n%2C+n%3E0"><img src="http://mindyourdecisions.com/blog/wp-content/uploads/2011/12/auction-theory-puzzle-extension.png" alt="" title="auction-theory-puzzle-extension" width="428" height="581" class="aligncenter size-full wp-image-5567" /></a></p>
<p>So Alice will only need to acquire 6 bidders, but she will earn nearly $870. This is 3 fewer bidders than above and she gets about $60 more.</p>
<p>This is, of course, exactly what we would expect: if Alice can extract more money from the bidders&#8211;the highest valuation instead of the second&#8211;she does not need as many bidders and she can earn more out of it.</p>
<p>This is common sense, but it&#8217;s useful to check the theory matches intuition.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindyourdecisions.com/blog/2011/12/20/auction-theory-puzzle-finding-the-right-number-of-bidders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Price is Right Wheel Game: what is the optimal strategy?</title>
		<link>http://mindyourdecisions.com/blog/2011/08/09/the-price-is-right-wheel-game-what-is-the-optimal-strategy/</link>
		<comments>http://mindyourdecisions.com/blog/2011/08/09/the-price-is-right-wheel-game-what-is-the-optimal-strategy/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 05:21:08 +0000</pubDate>
		<dc:creator>Presh Talwalkar</dc:creator>
				<category><![CDATA[Auctions]]></category>
		<category><![CDATA[Game Theory]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[combinatorial game theory]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[game show]]></category>

		<guid isPermaLink="false">http://mindyourdecisions.com/blog/?p=3977</guid>
		<description><![CDATA[The Price is Right is a wonderful game show that lends itself to game theory analysis. Earlier I have posted about the games Pay the Rent and Lucky Seven. My friend Aaron emailed me about another interesting problem from the show: I&#8217;ve got a good problem for you to throw at your readership involving the [...]]]></description>
			<content:encoded><![CDATA[<p>The Price is Right is a wonderful game show that lends itself to game theory analysis. Earlier I have posted about the games <a href="http://mindyourdecisions.com/blog/2011/01/26/pay-the-rent-strategy-on-the-price-is-right/">Pay the Rent</a> and <a href="http://mindyourdecisions.com/blog/2010/05/12/the-price-is-right-lucky-seven-game-a-good-example-of-dominated-strategies/">Lucky Seven</a>.</p>
<p>My friend Aaron emailed me about another interesting problem from the show:</p>
<blockquote><p>I&#8217;ve got a good problem for you to throw at your readership involving the Price is Right &#8220;Wheel&#8221; game. I assume you&#8217;re familiar with it but in case not&#8230;</p>
<p>&#8211;Three winners of earlier pricing games get to spin a wheel with all multiples of 5 from 5 to 100 inclusive [there are 20 numbers in all].</p>
<p>&#8211;The goal is to get as close to 100 as possible without going over.</p>
<p>&#8211;Contestants can choose whether or not to use a second spin which would &#8220;add&#8221; to the first spin but again, but if the total exceeds 100 the contestant is eliminated.</p>
<p>&#8211;The first contestant completes his turn (whether it&#8217;s 1 or 2 spins), then the second contestant goes (whether it&#8217;s 1 or 2 spins), and then the third contestant goes.</p>
<p>Question is: How high must Contestant 1&#8242;s first spin be in order for him to not make a second spin? What about Contestant 2?</p></blockquote>
<p><a href="http://www.cbs.com/daytime/the_price_is_right/photos/Paula_Deen_Guest_Stars/2/0/"><img class="alignnone size-full wp-image-3980" title="tpir-wheel" src="http://mindyourdecisions.com/blog/wp-content/uploads/2011/08/tpir-wheel.jpg" alt="" width="138" height="400" /></a></p>
<p>I love this email, especially because this is a direct application of game theory. The game also brought to mind a few follow up questions, so there are my questions I pose to you.</p>
<p><strong>1. What is the optimal strategy for each player?</strong></p>
<p><strong>2. What are the respective winning percentages? How much of an advantage is there to spinning second or third?</strong></p>
<p>Also, you may know there are special bonus payments in the wheel game. If your spin total(s) reach 100, then you get a bonus payment of $1,000. This also entitles you to a bonus spin. If you get 100 on that, you win another bonus of $10,000. If you get 5 or 15 points (the numbers next to 100), then you get a bonus $5,000.</p>
<p><strong>3. How do bonus payments affect the optimal strategy?</strong></p>
<p>The first three questions deal with a theoretical model. This may not be exactly how people play in practice.</p>
<p><strong>4. How do you think actual contestants play in comparison to the theory? Will they play close to optimal strategies, or will they play more conservatively or aggressively?</strong></p>
<p>You may wish to try a two-person variant of the game to understand how the strategy works. The only suggestion I have is to use a spreadsheet or computer program because the number of strategies lends itself to numerical analysis.</p>
<p>Can you solve it? Aaron emailed me an answer for the two-person game, but the three-person game is much harder (admittedly I could not solve it and I resorted to finding a resource online).</p>
<p>Post your thoughts as usual. <em><strong>The answer is posted in my comment below.</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://mindyourdecisions.com/blog/2011/08/09/the-price-is-right-wheel-game-what-is-the-optimal-strategy/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Game theory in The Matrix &#8211; the mathematics of dueling</title>
		<link>http://mindyourdecisions.com/blog/2011/04/05/game-theory-in-the-matrix-the-mathematics-of-dueling/</link>
		<comments>http://mindyourdecisions.com/blog/2011/04/05/game-theory-in-the-matrix-the-mathematics-of-dueling/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 11:27:25 +0000</pubDate>
		<dc:creator>Presh Talwalkar</dc:creator>
				<category><![CDATA[Auctions]]></category>
		<category><![CDATA[Game Theory]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[duel]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[probability]]></category>

		<guid isPermaLink="false">http://mindyourdecisions.com/blog/?p=3404</guid>
		<description><![CDATA[One of my favorite scenes in The Matrix is the subway fight scene (clip below). Rather than run away, Neo chooses to fight Agent Smith head on. The scene begins with a duel which I find particularly interesting due to the strategies they take. Here is a link to the video. The duel that I [...]]]></description>
			<content:encoded><![CDATA[<p>One of my favorite scenes in <a href="http://en.wikipedia.org/wiki/The_Matrix">The Matrix</a> is the subway fight scene (clip below).</p>
<p>Rather than run away, Neo chooses to fight Agent Smith head on. The scene begins with a duel which I find particularly interesting due to the strategies they take.</p>
<p><span id="more-3404"></span></p>
<p>Here is a link to the video. The duel that I am going to discuss is roughly the first 30 seconds of the video.</p>
<p><a href="http://www.youtube.com/watch?v=0zIJCpUqeb4">Youtube video: The Matrix subway fight</a></p>
<p><object width="450" height="368" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/0zIJCpUqeb4?fs=1&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed width="450" height="368" type="application/x-shockwave-flash" src="http://www.youtube-nocookie.com/v/0zIJCpUqeb4?fs=1&amp;hl=en_US&amp;rel=0" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p>The detail I find most interesting is the order in which the two shoot their bullets.</p>
<p>It appears that Neo takes the first shot, but then they mostly fire at almost the same time. This becomes clearer as Neo and Agent Smith run towards each other. When they jump in the air and approach point blank range, the clip moves into super slow motion and it is clear they fire their bullets at <em>exactly the same time</em>.</p>
<p>In the film the simultaneous firing has the beauty of symmetry and the timing was probably chosen for aesthetics.</p>
<p>But one can ask: does it make sense that Neo and Agent Smith fire at the same time?</p>
<p>At this point in the film, Agent Smith appears to be more skilled than Neo. If we were thinking about the strategy of a duel, should the more accurate shooter fire first, or should he wait?</p>
<p>What&#8217;s the right time to shoot in a duel?</p>
<p><strong>A simple dueling game</strong></p>
<p>Consider a duel between two players <em>A</em> and <em>B</em>.</p>
<p>For simplicity, suppose each only has one bullet. The game works as follows.</p>
<p><em>A</em> and <em>B</em> start the duel at a distance <em>t</em> = 1 from each other. They approach each other at the same speed, and each has to decide when to shoot.</p>
<p>As they get closer to each other, their accuracy increases. At distance <em>t</em>, the player <em>A</em> has a chance <em>a</em>(<em>t</em>) of killing his opponent, and for player <em>B</em> it is <em>b</em>(<em>t</em>). Assume both players are aware of the other&#8217;s skill.</p>
<p>In this duel, missing your shot is very costly. If a player shoots and misses, then the other player keeps approaching until he gets to point blank range and shoots with complete accuracy.</p>
<p>What is the optimal strategy of this game? That is, at what point should each player shoot?</p>
<p><strong>Solution: when player <em>A</em> should fire</strong></p>
<p>The tricky part to the game is balancing when to shoot. If you fire too early, then your opponent kills you for sure. If you wait too long, then you can also get beaten if your opponent is a good shot.</p>
<p>We can think about when player <em>A</em> should fire by listing out the chance of surviving in the different possibilities of firing at point <em>t</em>.</p>
<ul>
<li>If player <em>A</em> fires first: Player <em>A</em> will survive only if he hits, which happens with chance <em>a</em>(<em>t</em>)</li>
<li>If player <em>A</em> waits to fire: Player <em>A</em> survives only if <em>player B misses</em>, which happens with chance 1 &#8211; <em>b</em>(<em>t</em>)</li>
</ul>
<p>Now we can reason out player <em>A</em>&#8216;s strategy. Player <em>A</em> will want to fire first if his chance of hitting is greater than player <em>B</em>&#8216;s chance of missing:</p>
<p style="padding-left: 30px;"><em>a</em>(<em>t</em>) ≥ 1 &#8211; <em>b</em>(<em>t</em>)</p>
<p>But he must also be careful not to fire too early. He should always wait if his chance of hitting is smaller than player B&#8217;s chance of missing:</p>
<p style="padding-left: 30px;"><em>a</em>(<em>t</em>) ≤  1 &#8211; <em>b</em>(<em>t</em>)</p>
<p>Putting those two equations together, we can see that Player <em>A</em> should shoot at the time when he is at distance <em>t*</em> where</p>
<p style="padding-left: 30px;"><em>a</em>(<em>t*</em>) = 1 &#8211; <em>b</em>(<em>t*</em>)</p>
<p>Or alternately written,</p>
<p style="padding-left: 30px;"><em>a</em>(<em>t*</em>) + <em>b</em>(<em>t*</em>) = 1</p>
<p><strong>Solution: when player <em>B</em> should fire</strong></p>
<p>We can do the same exercise for player <em>B</em>. Notice the same conditions are true:</p>
<ul>
<li>If player <em>B</em> fires first: Player <em>B</em> will survive only if he hits, which happens with chance <em>b</em>(<em>t</em>)</li>
<li>If player <em>B</em> waits to fire: Player <em>B</em> survives only if <em>player A misses</em>, which happens with chance 1 &#8211; <em>a</em>(<em>t</em>)</li>
</ul>
<p>Now we can reason out player <em>B</em>&#8216;s strategy. Player <em>B</em> will fire first, if his chance of hitting is better than his opponent&#8217;s chance of missing:</p>
<p style="padding-left: 30px;"><em>b</em>(<em>t</em>) ≥ 1 &#8211; <em>a</em>(<em>t</em>)</p>
<p>But he must also be sure not to fire too soon. He needs to wait so long as his chance of hitting is smaller than his opponent&#8217;s chance of missing:</p>
<p style="padding-left: 30px;"><em>b</em>(<em>t</em>) &#8804; 1 &#8211; <em>a</em>(<em>t</em>)</p>
<p>Putting those two equations together, we can see that Player <em>B</em> should shoot at the time when he is distance <em>t*</em> where</p>
<p style="padding-left: 30px;"><em>b</em>(<em>t*</em>) = 1 &#8211; <em>a</em>(<em>t*</em>)</p>
<p>Or alternately written,</p>
<p style="padding-left: 30px;"><em>a</em>(<em>t*</em>) + <em>b</em>(<em>t*</em>) = 1</p>
<p><strong>Solution: they fire at the same time!</strong></p>
<p>From the equations, you&#8217;ll notice that both players choose to fire at the same time! There is one specific distance which is optimal for both players.</p>
<p>This would not be surprising if the two players had the same accuracy level. But we solved this game using the assumption their accuracy levels were different.</p>
<p>So why do they end up shooting at the same time?</p>
<p>We can reason why this must be the case. If one person chose to fire earlier than another, say 5 seconds earlier, then he would be better off waiting. His opponent is not shooting for another 5 seconds, so he might as well wait a few more seconds to get closer and increase his accuracy.</p>
<p>As the equations show above, the right time to shoot is just when your chance of hitting equals your opponents chance of missing. And since one person&#8217;s failure is another person&#8217;s success, this means both players choose the same time when they are a distance such that their accuracy functions sum to a probability of 1.</p>
<p><strong>The Matrix duel</strong></p>
<p>While Neo does fire the first bullet, the two do appear to fire shots at almost or exactly the same time as they run towards each other.</p>
<p>But then again, it should come as no surprise that Neo and Agent Smith play smart strategies given their superhuman abilities.</p>
<p><strong>Additional reference</strong></p>
<p>The theory of duels is covered in much more detail in this game theory lecture at Yale.</p>
<p><a href="http://oyc.yale.edu/economics/game-theory/contents/sessions/session-16-backward-induction-reputation-and-duels">Lecture 16 &#8211; Backward induction: reputation and duels</a></p>
<p>The relevant part about duels&#8211;he uses two players with wet sponges&#8211;starts about 25 minutes into the video.</p>
<p><a href="http://www.youtube.com/watch?v=SE7kP7XZuV4&amp;t=25m28s">Youtube video: Lecture 16 Game theory at 25 min 28 seconds</a></p>
<p><object width="450" height="283" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/SE7kP7XZuV4?fs=1&amp;hl=en_US&amp;rel=0&amp;start=1528" /><param name="allowfullscreen" value="true" /><embed width="450" height="283" type="application/x-shockwave-flash" src="http://www.youtube-nocookie.com/v/SE7kP7XZuV4?fs=1&amp;hl=en_US&amp;rel=0&amp;start=1528" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://mindyourdecisions.com/blog/2011/04/05/game-theory-in-the-matrix-the-mathematics-of-dueling/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Wallet Paradox</title>
		<link>http://mindyourdecisions.com/blog/2011/02/08/the-wallet-paradox/</link>
		<comments>http://mindyourdecisions.com/blog/2011/02/08/the-wallet-paradox/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 02:03:46 +0000</pubDate>
		<dc:creator>Presh Talwalkar</dc:creator>
				<category><![CDATA[Auctions]]></category>
		<category><![CDATA[Game Theory]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[probability]]></category>
		<category><![CDATA[puzzle]]></category>

		<guid isPermaLink="false">http://mindyourdecisions.com/blog/?p=3216</guid>
		<description><![CDATA[Bill Gates meets Warren Buffett at a dinner party and the host tells them to play a game. Each person will place his wallet on the table. The person with less money in his wallet wins all the money. Is anyone favored to win this game? What happens when the game is repeated? The answers [...]]]></description>
			<content:encoded><![CDATA[<p>Bill Gates meets Warren Buffett at a dinner party and the host tells them to play a game. Each person will place his wallet on the table. The person with less money in his wallet wins all the money. </p>
<blockquote><p><strong>Is anyone favored to win this game?</strong></p>
<p><strong>What happens when the game is repeated?</strong></p></blockquote>
<p>The answers are after the break.</p>
<p><span id="more-3216"></span></p>
<p><strong>A matter of perspective</strong></p>
<p>At first glance, the game seems favorable for Bill Gates.</p>
<p>He might think as follows. He could either have more or less money, so he has a 50/50 chance of winning the game. If he loses, then he would lose only the money in his wallet. If he wins, however, then he would win <em>more</em> money than what he has in his wallet.</p>
<p>That is, Bill Gates can wager the money in his wallet (say <em>x</em> dollars) and have a 50 percent chance of winning the money in Warren Buffett&#8217;s wallet, which is more than <em>x</em> dollars. This is obviously a winning gamble, and thus Bill Gates will want to play as he seems favored.</p>
<p>On the other hand, Warren Buffett thinks about the game. By symmetry, he can reason exactly the same thing. He feels that he has an even chance of winning more money than he has in his wallet, and thus he is favored by the game.</p>
<p>Both billionaires find the game advantageous. And yet this cannot be. The game is a zero-sum game (the profits of one are exactly the losses of another) and thus it is impossible for both to expect a profit at the same time.</p>
<p>How can we resolve the reasoning and resolve the apparent paradox?</p>
<p><strong>Careful accounting</strong></p>
<p>The setup is similar to a wager I previously wrote about called the <a href="http://mindyourdecisions.com/blog/2009/12/15/the-necktie-paradox/">necktie paradox</a>. The wallet paradox can be resolved in a couple similar ways.</p>
<p><strong><em>Resolution 1: fix the reasoning</em></strong></p>
<p>Bill Gates and Warren Buffett are unlikely to reason so wrongly. They would see the error in the above logic.</p>
<p>The problem with the reasoning is that each is considering his wallet as being both the one with more money and less money at the same time. In reality, a wallet can either be the one with more money or it can be the one with less money.</p>
<p>The correct logic is:</p>
<p>&#8211;If I have the wallet with more money, and I play the game, then I will lose my more valuable contents</p>
<p>&#8211;If I have the wallet with less money, and I play the game, then I will win the more valuable contents of the other wallet</p>
<p>There is an equal chance of being in either situation. Therefore, the game does even out as either player can win or lose the wallet with more money. The game could end with Bill Gates winning half the time, and Warren Buffett winning half the time. Thus neither is favored and the game is fair.</p>
<p><strong><em>Resolution 2: make a proper expectation</em></strong></p>
<p>Another way to see the game is fair is to write out the math carefully. Suppose the more valuable wallet has <em>x</em> dollars.</p>
<p>To write the expecation, it is necessary to know two things.</p>
<p>First, what is the chance a player wins the bet? This is the chance the person&#8217;s wallet has more money. Assuming the game was not rigged, either Bill Gates or Warren Buffett could have more money than the other. It would be reasonable to assign a 50 percent chance on either being the winner of the game.</p>
<p>Second, what are the payoffs in the game? One case is when a player wins the game, in which case he wins <em>x</em> dollars from the other player&#8217;s wallet. The other case is when a player loses, so he loses the more valuable contents of his wallet of <em>x</em> dollars.</p>
<p>Putting these two facts together, we get:</p>
<p><img class="alignnone size-full wp-image-3219" title="wallet_paradox" src="http://mindyourdecisions.com/blog/wp-content/uploads/2011/02/wallet_paradox.png" alt="" width="450" height="17" /></p>
<p>The math demonstrates the game has a zero expected payoff to either player, and thus the game is fair.</p>
<p><strong>Adding a twist with repeated play</strong></p>
<p>Afterwards, it turns out both Bill Gates and Warren Buffett loved the game.</p>
<p>They add a twist as follows. They will play the game every day for a month. To manage the stakes, they agree to carry an average (mean) of $100. Is this game fair? What is the best possible strategy, given you know what your opponent is doing?</p>
<p><strong>Winning strategy in repeated play</strong></p>
<p>The game gets more interesting when repeated. Even when players agree to carry the same average money, the game is not necessarily fair. There will be times that one person will be favored to win.</p>
<p>Consider the example of Bill Gates and Warren Buffett agreeing to carry $100 on average. Suppose they limit their strategies to the following three:</p>
<p>Strategy A: carry $100 every time<br />
Strategy B: carry $75 half the time, and $125 half the time<br />
Strategy C: carry $75 two-thirds of the time, and $150 one-third of the time</p>
<p>We can evaluate how one strategy performs against another.</p>
<p>It turns out there is a rock-paper-scissors type of situation: strategy A is profitable against B, which is profitable against C. But then strategy C is profitable against A!</p>
<p>This cyclical nature gives a hint about the nature of the game. More on that in a bit. First, here is the math that confirms it.</p>
<p><strong><em>Strategy A vs. B:</em></strong></p>
<p>Strategy A means always carry $100. The way the game plays out depends on the realization of strategy B.</p>
<p>The wallets can either have amounts (100, 75) or (100, 125), each with probability 0.5.</p>
<p>In the (100, 75) case, the second wallet has less money, so employing strategy A means a loss of $100.</p>
<p>In the (100, 125) case, the first wallet has less money, so employing strategy A means a profit of $125.</p>
<p>The expectation of employing strategy A against B is thus: 0.5 ( -100 + 125) = 12.5 &gt; 0. Thus strategy A is profitable against B.</p>
<p><strong><em>Strategy B vs. C:</em></strong></p>
<p>Calculating this expectation is just a bit more involved, as both strategies are probabilistic.</p>
<p>There are four possible outcomes, each with different probabilities of occurrence. Here is how strategy B fares:</p>
<p>(75, 75) &#8211;&gt; happens 1/2 * 2/3 = 2/6, and is a draw<br />
(75, 150) &#8211;&gt; happens 1/2 * 1/3 = 1/6, and strategy B profits 150<br />
(125, 75) &#8211;&gt; happens 1/2 * 2/3 = 2/6, and strategy B loses 125<br />
(125, 150) &#8211;&gt; happens 1/2 * 1/3 = 1/6, and strategy B profits 150</p>
<p>Putting this together, the expectation is (2/6 * 0 + 1/6 * 150 + 2/6 * -125 + 1/6 * 150) =  8.33&#8230; &gt; 0.</p>
<p>Thus we can see that strategy B is profitable when played against strategy C.</p>
<p><strong><em>Strategy A vs. C:</em></strong></p>
<p>There are two possible outcomes, each with different probabilities of occurrence. Here is how strategy A fares:</p>
<p>(100, 75) &#8211;&gt; happens 2/3, and strategy A loses 100<br />
(100, 150) &#8211;&gt; happens 1/3, and strategy A profits 150</p>
<p>Putting this together, the expectation is (2/3 * -100 + 1/3 * 150) = -16.66&#8230; < 0</p>
<p>Thus it is seen that strategy A is a losing decision against C!</p>
<p><strong>There is no <em>one</em> best strategy</strong></p>
<p>The fact that strategy A is preferred to B, B is preferred to C, and C is preferred to A is a clue that the game might not have a single winning strategy. This hunch turns out to be true.</p>
<p>For any given strategy* with a fixed mean, one can find another strategy <em>with the same mean</em> that is profitable and is better. (*there are some technical restrictions that the strategy is well-defined)</p>
<p>The details and rigorous math can be found in this paper: <a href="http://academic.scranton.edu/faculty/carrollm1/wallet.pdf">The Wallet Paradox Revisited</a>.</p>
<p>As a side point, this means the game has no Nash equilibrium. These types of games can be fun an interesting. Here is another game I wrote about with a similar flavor: <a href="http://mindyourdecisions.com/blog/2008/09/09/business-drinking-and-the-dollar-auction-game/">the dollar auction game</a>.</p>
<p>And I will close with something obvious but noteworthy. If someone asks you to play the game, you should definitely be skeptical. They probably have little or no money in their wallet and are hoping to make a quick buck.</p>
<p>It is only sensible to play the game in a fun party setting when both people are taken by surprise. It&#8217;s even better after a night of drinking where both people are less likely to remember exactly how much is in their wallet.</p>
]]></content:encoded>
			<wfw:commentRss>http://mindyourdecisions.com/blog/2011/02/08/the-wallet-paradox/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

