<?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>Some stuff &#187; optimization</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=optimization" rel="self" type="application/rss+xml" />
	<link>https://blog.yhuang.org</link>
	<description>here.</description>
	<lastBuildDate>Wed, 27 Aug 2025 08:50:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>is winner-take-all broken?</title>
		<link>https://blog.yhuang.org/?p=912</link>
		<comments>https://blog.yhuang.org/?p=912#comments</comments>
		<pubDate>Sat, 04 Aug 2012 22:31:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Coding theorists]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[reward]]></category>
		<category><![CDATA[sponsor]]></category>
		<category><![CDATA[sponsor money]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=912</guid>
		<description><![CDATA[Olympic athletes use a huge amount of sponsor money &#8212; not to mention legal and illegal performance aids &#8212; to reach gold. Soon we will have genetically engineered physiology to reach even greater records. Schools compete for an annual #1 ranking. They spend more and more money to bid for the best professors and build [...]]]></description>
			<content:encoded><![CDATA[<p>Olympic athletes use a huge amount of sponsor money &#8212; not to mention legal and illegal performance aids &#8212; to reach gold. Soon we will have genetically engineered physiology to reach even greater records. Schools compete for an annual #1 ranking. They spend more and more money to bid for the best professors and build the best facilities, driving up tuition. Coding theorists run massive simulations to find the best code to compete for the one spot in standards. But is the second place athlete, school, and code that much worse? No, usually they are nearly as good as #1.</p>
<p>I&#8217;ve often wondered whether many problems in the world are not variations of attempting &#8220;exact optimization&#8221; &#8212; this being the only way to guarantee success in a winner-take-all reward system.<br />
<span id="more-912"></span><br />
In engineering at least, when any kind of iteratively converging algorithm is run, the prototypical behavior is a fast convergence to a neighborhood of the solution, and then a really long process of getting to the exact one. In choosing exact optimization, a practically &#8220;good enough&#8221; solution is rejected in favor of expending a huge amount of resources to obtain the last 1% of the gap to optimality.</p>
<p>Where there is no bound to performance, a winner-take-all competition encourages ever-higher performance, driving progress. In reality, there is no system without some constraint that imposes a bound. We <em>hope</em> that rational allocation decisions will cause us to collectively halt at an approximate solution and move on to something else. However, this requires cooperative strategies. Winner-take-all is not stable for cooperative strategies, so we end up collectively committing resources disproportional to the amount of improvement we get in any observable metric. With the exception of the lone winner in each competition, everybody else suffers massive misallocation.</p>
<p>There are a number of absurd problems that arise from not developing a reward system consistent with a &#8220;soft&#8221; metric that gives some value to anything but the top rank.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=912</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>t-mobile prepaid optimization</title>
		<link>https://blog.yhuang.org/?p=471</link>
		<comments>https://blog.yhuang.org/?p=471#comments</comments>
		<pubDate>Sat, 28 May 2011 02:50:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[constraint]]></category>
		<category><![CDATA[min]]></category>
		<category><![CDATA[odd occasions]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[prepaid mobile phones]]></category>
		<category><![CDATA[prepaid phones]]></category>
		<category><![CDATA[purch]]></category>
		<category><![CDATA[sum]]></category>
		<category><![CDATA[Table]]></category>
		<category><![CDATA[temporary visitors]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=471</guid>
		<description><![CDATA[t-Mobile has these tiered refill cards for their prepaid mobile phones. The pricing table is here and reproduced below: $10 for 30 minutes, expires in 90 days $25 for 130 minutes, expires in 90 days $40 for 208 minutes, expires in 90 days $50 for 400 minutes, expires in 90 days $100 for 1000 minutes, [...]]]></description>
			<content:encoded><![CDATA[<p>t-Mobile has these tiered refill cards for their prepaid mobile phones. The pricing table is <a href="http://www.callingmart.com/products/wireless/ProductDetail.aspx?ID=35&#038;AspxAutoDetectCookieSupport=1">here</a> and reproduced below:</p>
<p><strong>$10</strong> for 30 minutes, expires in 90 days<br />
<strong>$25</strong> for 130 minutes, expires in 90 days<br />
<strong>$40</strong> for 208 minutes, expires in 90 days<br />
<strong>$50</strong> for 400 minutes, expires in 90 days<br />
<strong>$100</strong> for 1000 minutes, expires in 365 days</p>
<p>So which card should you buy? You could calculate a per minute cost and conclude that $100 for 1000 minutes is the most economical (plus it doesn&#8217;t expire for the longest time). Wrong!</p>
<p>It depends on how much you use the phone. The fact that the minutes expire makes the prepaid plan a <em>virtual monthly plan</em> in the regime where you do not use 1000 or more minutes per year, which is highly likely for people who choose prepaid phones to begin with (e.g. temporary visitors, odd occasions, emergencies, etc.). The constraint in that case is the expiration, not the number of minutes. If you blindly purchased $100 refills one after another, you&#8217;d have more and more unused minutes piling up. Sure, you could still use them, but even at $0.10/min. it is expensive compared to a straight monthly plan if you really mean to call that much. Of course you don&#8217;t, so now what?<br />
<span id="more-471"></span><br />
The trick is time-sharing. (Never thought this phrase would pop up in this context.) Let&#8217;s re-write the table in terms of how much you get for $1, both minutes of call, and days of non-expiry:</p>
<p><strong>$10:</strong> 3 min., 9 days / $1<br />
<strong>$25:</strong> 5.2 min., 3.6 days / $1<br />
<strong>$40:</strong> 5.2 min., 2.25 days / $1<br />
<strong>$50:</strong> 8 min., 1.8 days  / $1<br />
<strong>$100:</strong> 10 min., 3.65 days / $1</p>
<p>We see that the $25, $40, and $50 refills are <em>good for nothing</em>! Why would anyone buy those? A rational person should only buy the $10 and $100 refills in some combination: $10 for when the account is about to expire but there are plenty of minutes, and $100 for when running low on minutes. The &#8220;proof&#8221; is as follows:</p>
<p>We really care about paying the lowest per minute cost for the minutes <em>actually used</em>. To that end, if we divide the purchase between the \(N\) refill options by the weights \(w_i\), \(i=1,&#8230;,N\), and every $1 of the \(i\)th refill option pays for \(m_i\) minutes and \(d_i\) days, then, we want</p>
<p>maximize \(\sum_{i=1}^N w_i d_i\) (equivalently, maximize \(\sum_{i=1}^N w_i m_i\))<br />
subject to \(\sum_{i=1}^N w_i m_i / \sum_{i=1}^N w_i d_i = L\)<br />
and \(\sum_{i=1}^N w_i=1\)</p>
<p><img src="wp-content/uploads/images/tmobile1.png" align="right" />where \(L\) is the minutes per day that we know we use. We don&#8217;t even need to solve this explicitly. The plot shows that every point in the pentagonal region below the red line is achievable with $1, and for any given constraint \(L\), the outer boundary on the red line itself solves the optimization (i.e. is the most economical), and this is done by using only the $10 and $100 refills. Here we assumed infinitely divisible refills. By using the heuristic of when to buy which refill above though, we tend toward the average \(L\) by construction so we are always at the right operating point.</p>
<p><img src="wp-content/uploads/images/tmobile2.png" align="right" />The same analysis can be carried over to the &#8220;gold rewards&#8221; tier, which you get when you purchase the $100 refill and keep the account from expiring year after year (this is what you should do anyway, so even better). The new plot is different but the conclusion is the same, though the $50 refill looks competitive this time.</p>
<p>(For reference, the monthly cost of such a &#8220;virtual monthly plan&#8221; ranges from an incredible $0.82/mo. for 3 min./mo. &#8212; keeping the account active, basically &#8212; to $8.22/mo. for 82 min./mo. For more than 82 min./mo., the cost goes up at a rate of $0.10/min. of course. Unfortunately, you cannot buy &#8220;negative&#8221; refills, otherwise you could do better even in that regime.)</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=471</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
