<?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; result</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=result" 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>moon halo</title>
		<link>https://blog.yhuang.org/?p=680</link>
		<comments>https://blog.yhuang.org/?p=680#comments</comments>
		<pubDate>Wed, 12 Oct 2011 09:28:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[earth shadow]]></category>
		<category><![CDATA[full moon]]></category>
		<category><![CDATA[halo]]></category>
		<category><![CDATA[heck]]></category>
		<category><![CDATA[moon]]></category>
		<category><![CDATA[moon halo]]></category>
		<category><![CDATA[night sky]]></category>
		<category><![CDATA[result]]></category>
		<category><![CDATA[what the heck]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=680</guid>
		<description><![CDATA[Today I looked up at the night sky and there was this wonderfully full moon, but it was sitting in the middle of a huge perfectly round disk opening into the heavens amidst the clouds. I wondered what the heck it was, thinking it might be the result of Earth-shadow. It turns out this was [...]]]></description>
			<content:encoded><![CDATA[<p><img src="wp-content/uploads/images/moonhalo_casado_big.jpg" alt="http://apod.nasa.gov/apod/image/0812/moonhalo_casado_big.jpg" width="400" hspace="10" align="left" /> Today I looked up at the night sky and there was this wonderfully full moon, but it was sitting in the middle of a huge perfectly round disk opening into the heavens amidst the clouds. I wondered what the heck it was, thinking it might be the result of Earth-shadow.</p>
<p>It turns out this was a <a href="http://hyperphysics.phy-astr.gsu.edu/hbase/atmos/moonhalo.html">moon halo</a>. The page says that the phenomenon is &#8220;familiar,&#8221; but I&#8217;ve never seen it in my life, and had I not looked up for no reason, I would have missed this one, too! By my hand measurement, it spanned 45° in diameter, which is a pretty big portion of the sky. Jupiter was also visible within the ring of the halo. Quite amazing.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=680</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>on deepness</title>
		<link>https://blog.yhuang.org/?p=649</link>
		<comments>https://blog.yhuang.org/?p=649#comments</comments>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[conversation partner]]></category>
		<category><![CDATA[human sources]]></category>
		<category><![CDATA[Mimicry]]></category>
		<category><![CDATA[natural conversations]]></category>
		<category><![CDATA[result]]></category>
		<category><![CDATA[selection algorithm]]></category>
		<category><![CDATA[sense]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[wisdoms]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=649</guid>
		<description><![CDATA[Cleverbot is a corpus based chatbot capable of producing some natural conversations by using responses from humans. As you can see it carries on just fine and can fool a casual observer. But the longer you carry on a conversation with it the more apparent that Cleverbot is frustrating to talk to, not so much [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Cleverbot">Cleverbot</a> is a corpus based chatbot capable of producing some natural conversations by using responses from humans.</p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/WnzlbyTZsQY"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WnzlbyTZsQY" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
<p>As you can see it carries on just fine and can fool a casual observer. But the longer you carry on a conversation with it the more apparent that Cleverbot is <strong>frustrating to talk to</strong>, not so much that it isn&#8217;t human &#8212; after all, all of the responses are taken from human sources. If it weren&#8217;t so good at emulating a human from which you expected more, you wouldn&#8217;t be frustrated.</p>
<p>Cleverbot is frustrating in two ways:</p>
<ul>
<li>it isn&#8217;t <strong>interesting</strong></li>
<li>it doesn&#8217;t <strong>make sense</strong></li>
</ul>
<p>In other words, it lacks deepness, like a shallow human. Why?<br />
<span id="more-649"></span><br />
Some say that Cleverbot isn&#8217;t an AI because it&#8217;s just humans talking to humans via the intermediary of a selection algorithm. One is tempted to be dismissive like this but it&#8217;s too convenient. It places too much weight on the role of the corpus and too little on that of learning and interaction. Cleverbot clearly captured some aspect of the human intellectual process that raised it to the level of a shallow conversation partner. What it neglected though will be enlightening to the question of what is deepness.</p>
<p>The most obvious way in which Cleverbot is shallow is in novelty. This is a result of mimicry of others. Mimicry is of course fundamentally human because we learn by mimicking. It doesn&#8217;t preclude novelty of some sort. In fact, although it isn&#8217;t clear at what level Cleverbot replicates from the corpus, whether in phrases or entire sentences, we are forced to accept that <em>some</em> novelty is injected into the selection process, as responses don&#8217;t come out the same every time. However it&#8217;s not enough to make Cleverbot consistently interesting, probably because Cleverbot doesn&#8217;t synthesize new ideas, merely passing on received wisdoms at the appropriate moments. It seems deep novelty requires more atomicity, and more computation.</p>
<p>The more subtle way in which Cleverbot is shallow is in contextual memory. Cleverbot, probably also for computational reasons, just makes remarks in response to the most recent context. As a result, it changes topics frequently, and doesn&#8217;t pursue a line of inquiry to its satisfactory conclusion because it doesn&#8217;t know what a line of inquiry is. It can be described even as evasive or flighty. While each response usually makes sense, Cleverbot doesn&#8217;t make sense over the span of a conversation, which requires more persistence.</p>
<p>It seems deepness is related to computational resources. And if we believe more intelligent machines &#8212; those that exhibit deepness and frustrate us less &#8212; to be more &#8220;human,&#8221; then we must expect a high level of computational competence as a human trait. Deep conversation is a measure of that. Disturbingly, the kind of conversation that Cleverbot can make is rather the more commonplace case among humans, yet it borders on meaningless drivel because it produces nothing new. Even more disturbingly, this is despite that Cleverbot can be quite clever sometimes, being stimulated to produce some of its store of wisecracks after elicitation by a motivated human counterpart who steered it to them. It shows that it doesn&#8217;t take much to carry on one half of a conversation, and deceptively so especially if one of the two is playing the role of an intelligent &#8220;human.&#8221;</p>
<p>Maybe being &#8220;human&#8221; isn&#8217;t that hard. Maybe the binary identification of machine/human should be considered a necessary quantification artifact, and the Turing test really measures a gradation of deepness instead (it is a probabilistic test after all, and of course subjective). If so, let&#8217;s run the Turing test on people in a double-blind way.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=649</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Penmanship in Chinese</title>
		<link>https://blog.yhuang.org/?p=154</link>
		<comments>https://blog.yhuang.org/?p=154#comments</comments>
		<pubDate>Thu, 29 Jan 2009 21:49:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[basis]]></category>
		<category><![CDATA[calligraphy]]></category>
		<category><![CDATA[first principle]]></category>
		<category><![CDATA[first principles]]></category>
		<category><![CDATA[matter]]></category>
		<category><![CDATA[muscle memory]]></category>
		<category><![CDATA[paper]]></category>
		<category><![CDATA[penmanship]]></category>
		<category><![CDATA[result]]></category>
		<category><![CDATA[structure]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=154</guid>
		<description><![CDATA[I suppose good penmanship is the basis of good calligraphy, since calligraphy is mainly the addition of (variable) brush width to the structure of the characters. This bulk structure is really the key and it is particularly difficult to get correctly without muscle memory. That&#8217;s why they tell you to trace character books over and [...]]]></description>
			<content:encoded><![CDATA[<p>I suppose good penmanship is the basis of good calligraphy, since calligraphy is mainly the addition of (variable) brush width to the structure of the characters. This bulk structure is really the key and it is particularly difficult to get correctly without muscle memory. That&#8217;s why they tell you to trace character books over and over.</p>
<p>However, there is a way to figure this matter of structure from first principles (and perhaps generate a more unique style as a result), albeit with the tradeoff that you cannot be quick, you must be careful.<br />
<span id="more-154"></span><br />
The first principle for aesthetics is that the character must stand &#8230; this is something my old man told me, actually, so I didn&#8217;t figure this out myself, but it is very true. If you hold up the piece of paper and look at the strokes as struts of a building, it must look like the character is architecturally sound, i.e. reasonably symmetric if need be, balanced in weight so will not tip over, is not poorly supported with too small a bottom and too big a top, etc. This isn&#8217;t too difficult if the character is mechanically drawn, but the trick is to do it even with asymmetric calligraphic strokes and multi-part characters with asymmetric radicals and caps.</p>
<p>The second principle for aesthetics is about spacing, and this is much like optimal typography and typesetting. The strokes should be spread out evenly so that where they appear parallel, they appear to have nearly identical spacing as other such spaces. Otherwise there will be ugly bunching and voids. This is very difficult because the strokes are written in order so there is a pre-commitment issue. Once you commit to a particular stroke, it also commits the spacing requirements for the rest of the character. So one slightly off stroke and you are screwed. This is more a problem for large writing, since bigger mistakes are possible.</p>
<p>Then is the issue of multiple character layout. This wouldn&#8217;t be so much of an issue if all characters were the same shape and complexity, but they are not. Some are extremely sparse, and some are very dense. Some are tall and some are fat. They all have to be laid out on paper to look like they take up the same space and also evenly spaced from each other. There is also the compromise of making inter-stroke space appear similar in multiple characters. So one needs to deal with some visual artifacts and vision tricks. As a result, the characters will not all be the same size and will not be spaced evenly, so this is a very tricky thing to get right. You can have perfectly written individual characters but still a terrible collection.</p>
<p>And finally here is a side point: people say Simplified characters are uglier than Traditional characters for calligraphy. In fact this cannot be true. What happens is Simplified characters are sparser and sparser characters writ large are the most difficult to get correctly (not to mention there are no classic master&#8217;s character books to trace in Simplified). They are ugly only because (or to the extent that) they are not written well. The bastion of poor practioners (like me) is in small dense characters that distract from scrutiny and generally look pretty good no matter how you write them.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=154</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>resolving the St. Petersburg paradox</title>
		<link>https://blog.yhuang.org/?p=89</link>
		<comments>https://blog.yhuang.org/?p=89#comments</comments>
		<pubDate>Thu, 24 Jan 2008 02:36:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[coin]]></category>
		<category><![CDATA[counterparty]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[initial entry]]></category>
		<category><![CDATA[initial money]]></category>
		<category><![CDATA[logarithmic growth]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[money supply]]></category>
		<category><![CDATA[result]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=89</guid>
		<description><![CDATA[The St. Petersburg paradox is based on one of those gambling games where the usual model of using expected gain to decide whether to play the game gives a counter-intuitive result. In the simplest of examples, you pay some entry fee to play the game, $1 is put in a pot by a counterparty, then [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/St._Petersburg_paradox">St. Petersburg paradox</a> is based on one of those gambling games where the usual model of using expected gain to decide whether to play the game gives a counter-intuitive result.</p>
<p>In the simplest of examples, you pay some entry fee to play the game, $1 is put in a pot by a counterparty, then a coin is repeatedly flipped and the pot is doubled on every coin flip by the counterparty, until &#8220;tail&#8221; comes up. You receive the money in the pot. The expected gain of this game is infinite, regardless of the initial entry fee. So it would seem that one should always play the game, regardless of the amount demanded as entry fee. But, as the article points out, &#8220;few of us would pay even $25 to enter such a game.&#8221;<br />
<span id="more-89"></span><br />
(This seems to be one of many variations of the paradox.) The explanations given in the link to resolve the paradox aren&#8217;t satisfactory. &#8220;One can&#8217;t buy what isn&#8217;t sold&#8221; can only be considered a joke, while &#8220;expected utility&#8221; is somewhat plausible, but doesn&#8217;t strike at the central issue, because it can be circumvented with an equally counter-intuitive paradox fitted to the chosen utility function. In contrast to the <a href="http://en.wikipedia.org/wiki/Gambler%27s_ruin">Gambler&#8217;s ruin paradox</a>, I don&#8217;t think that an artificial finite bound on the money supply (in this case, of the counterparty) makes sense as an explanation, but what it reveals as the logarithmic growth of the expected gain against the money supply and the general consequence that imposing some kind of finiteness may explain the paradox, is instructive.</p>
<p>Of course, the only way to get any gain is to actually play the game. If you repeatedly play the game,  your gain does eventually go to infinity. So why would you be reluctant to pay even $25 to enter? It must be because those large pay-offs are so infrequent that to make the initial money back would take too long. Suppose the entry fee is \(W\). Suppose you call it a day when you have a positive pay-off. For that to happen in round \(n\), it must be true that</p>
<p><img align="bottom" alt="Input: \begin{eqnarray*}
2^{f_1} + 2^{f_2} + \dots + 2^{f_k} &amp; &lt; &amp; kW,\  (k&lt;n)\\
2^{f_1} + 2^{f_2} + \dots + 2^{f_n} &amp; \geq &amp; nW
\end{eqnarray*}" src="wp-content/cache/095421c4aa4848b516690799f4a86487.png" /></p>
<p>where \(f_i\) is the number of flips before tail comes up in round \(i\).</p>
<p>Let&#8217;s call n-tuples \((f_1, f_2, \dots, f_n)\) that satisfy the above by the set \(S_n\). The probability of winning in round \(n\) is then</p>
<p><img align="bottom" alt="Input: $$p_n \equiv \sum_{(f_1,\dots,f_n)\in S_n}  \left( \prod_{i=1}^n 2^{f_i+1} \right)^{-1} $$" src="wp-content/cache/708abd4419eedf4e14ddc0a7ca59172c.png" /></p>
<p>from which we can surely get the average number of rounds it will take to win the game \(\sum_{i=1}^\infty n p_n\). If this is incredibly large even for modest \(W\), which is likely the case, then that would explain the paradox, since a game that on average takes longer than a lifetime to win would be played by no one.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=89</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
