<?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; curve</title>
	<atom:link href="http://blog.yhuang.org/?feed=rss2&#038;tag=curve" 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>whence the sun rises</title>
		<link>https://blog.yhuang.org/?p=453</link>
		<comments>https://blog.yhuang.org/?p=453#comments</comments>
		<pubDate>Fri, 27 May 2011 02:15:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boundary curve]]></category>
		<category><![CDATA[cambridge north]]></category>
		<category><![CDATA[curve]]></category>
		<category><![CDATA[direction]]></category>
		<category><![CDATA[moment]]></category>
		<category><![CDATA[northern latitude]]></category>
		<category><![CDATA[spherical geometry]]></category>
		<category><![CDATA[spring and autumn]]></category>
		<category><![CDATA[stick]]></category>
		<category><![CDATA[surface]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=453</guid>
		<description><![CDATA[Somebody was commenting here that they thought the sun would rise from the Boston (south) side of the river in the morning, but in fact it rises from the Cambridge (north) side these days. A little more than ten years ago, sitting in my northern-latitude abode watching the sun set into the northwest, I wondered [...]]]></description>
			<content:encoded><![CDATA[<p>Somebody was commenting here that they thought the sun would rise from the Boston (south) side of the river in the morning, but in fact it rises from the Cambridge (north) side these days. A little more than ten years ago, sitting in my northern-latitude abode watching the sun set into the northwest, I wondered the same confused thing: why does the sun appear to venture into the northern part of the sky? (For reference, the sun&#8217;s direct projection on the earth never crosses north of the <a href="http://en.wikipedia.org/wiki/Tropic_of_Cancer">tropic of cancer</a>, and that is south of here.)<br />
<span id="more-453"></span><br />
The answer is recognized with the aid of <a href="http://www.timeanddate.com/worldclock/sunearth.html">this map</a>, which shows the interesting effect due to the earth&#8217;s tilt and its spherical geometry. At every point along the day-night boundary curve, the sun&#8217;s rays are orthogonal to the curve and on the plane tangent to the earth&#8217;s surface at that point. In other words, the sun appears to rise (set) from (into) the direction orthogonal to the day-night boundary. This means between the spring and autumn equinoxes, the sun rises out of the northeast and sets into the northwest, and between the autumn and spring equinoxes, the sun rises out of the southeast and sets into the southwest.</p>
<p>This reminds me of a rather surprising method for direction-finding without a compass. It goes like this: point a stick in the direction of the sun, at any time during the day, and wait a short moment, then the direction of the new (very short, infinitesimal) shadow from the base of the stick points to the east. Here&#8217;s a short &#8220;proof&#8221;: Let the sun&#8217;s original location be called Q, let the base of the stick be called A and let the tip of stick be called B. So the vectors AB and AQ are collinear. At any given moment, the earth&#8217;s surface instantaneously rotates into the eastern direction at A, so in the earth&#8217;s local reference frame (the one we&#8217;re interested in) the sun&#8217;s apparent location moves slightly to the west to a new point Q&#8217;. Now, the shadow cast by the stick has a tip at a new point C (on the ground). Since A, B, C, Q, Q&#8217; all must be coplanar, and the vector AC has no elevation component (same as QQ&#8217;), then the vector AC must be parallel to QQ&#8217;, and BQQ&#8217; and BAC being similar triangles, AC must point to the east.</p>
<p>The trick is, you can&#8217;t wait too long, or else all the linear approximations and Euclidean geometry break down and you won&#8217;t get the right direction.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=453</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yield curve based on yield curve</title>
		<link>https://blog.yhuang.org/?p=243</link>
		<comments>https://blog.yhuang.org/?p=243#comments</comments>
		<pubDate>Tue, 23 Feb 2010 06:51:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[curve]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[short term rates]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[treasury]]></category>
		<category><![CDATA[yesterday]]></category>
		<category><![CDATA[yield]]></category>
		<category><![CDATA[yield curve]]></category>
		<category><![CDATA[yield curves]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=243</guid>
		<description><![CDATA[It occured to me the other day that based on certain models of the yield curve, it should make predictions about itself. It would be interesting to know how often it has been correct though. As a start, we can convert the daily yield curve into implied short-term rates in the future. For instance, using [...]]]></description>
			<content:encoded><![CDATA[<p>It occured to me the other day that based on certain models of the yield curve, it should make predictions about itself. It would be interesting to know how often it has been correct though.</p>
<p>As a start, we can convert the daily yield curve into implied short-term rates in the future. For instance, using the treasury yields as published <a href="http://www.ustreas.gov/offices/domestic-finance/debt-management/interest-rate/yield.shtml">here</a> yesterday, we get these implied average rates over certain durations:<br />
<img src="wp-content/uploads/images/yields1.png" /><br />
<span id="more-243"></span><br />
It says that the short-term rates will rise at about 1% per year and in five years it will stabilize at around 5%. Here is a close up at the short end.<br />
<img src="wp-content/uploads/images/yields2.png" /></p>
<p>And these translate into the following &#8220;standard&#8221; yield curves at 6 months (blue) and 1 year (green) from now, compared to currently (red).<br />
<img src="wp-content/uploads/images/yields3.png" /></p>
<p>There is no guarantee that this will be correct (that is something that needs to be checked against past data), but I distinctly recall that within the past two years the yield curves have, as a rule, been overly optimistic (too steep) on the short end.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=243</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uniform by three</title>
		<link>https://blog.yhuang.org/?p=137</link>
		<comments>https://blog.yhuang.org/?p=137#comments</comments>
		<pubDate>Sat, 22 Nov 2008 08:08:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[conventional solution]]></category>
		<category><![CDATA[curve]]></category>
		<category><![CDATA[frac]]></category>
		<category><![CDATA[independent random variables]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[ln x]]></category>
		<category><![CDATA[math math]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://scripts.mit.edu/~zong/wpress/?p=137</guid>
		<description><![CDATA[Here is a problem recently described to me. Apparently there is a more elegant solution (which may give more insight), but I don&#8217;t see it yet. The problem: are independent random variables uniformly distributed over [0,1]. What is the distribution of ? The conventional solution is to find the distribution of first, then of . [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a problem recently described to me. Apparently there is a more elegant solution (which may give more insight), but I don&#8217;t see it yet.</p>
<p>The problem: \(X, Y, Z\) are independent random variables uniformly distributed over [0,1]. What is the distribution of \((XY)^Z\)?<br />
<span id="more-137"></span><br />
The conventional solution is to find the distribution of \(XY\) first, then of \((XY)^Z\).</p>
<p><img src="wp-content/uploads/images/xy.png" align="left"/><br />
The distribution of \(XY\) can be derived from its CDF \(F_{XY}(xy \le k)\), which is the total shaded area shown. The red curve is the function \(y=\frac{k}{x}\). This area is thus given by:</p>
<p>\(\int_k^1 \frac{k}{x} dx + k = k \ln(x) \vert_k^1 + k = -k \ln(k) + k\), for \(k>0\).</p>
<p>The PDF is the derivative of the above:</p>
<p>\(f_{XY}(k) = -\ln(k)\), for \(k>0\). The density is not well defined at \(k=0\).</p>
<p><img src="wp-content/uploads/images/xyz.png" align="left"/><br />
The second part is to find the distribution in question. Here, the red curve is the function \(z=\frac{\ln(k)}{\ln(xy)}\). The CDF \(F_{(XY)^Z}((xy)^z \le k)\) is the total area to the left of the red curve. A column slice shaded in blue has probability per unit of \(z\) as labeled. Thus, the CDF is:</p>
<p>\(\int_0^k f_{XY}(v) dv (1-\frac{\ln(k)}{\ln(v)}) = \int_0^k -\ln(v) dv (1-\frac{\ln(k)}{\ln(v)})\)<br />
\( = \int_0^k -\ln(v) dv + \int_0^k \ln(k) dv\)<br />
\( = -v \ln(v) + v \vert_{\downarrow 0}^k + k \ln(k) = -k \ln(k) + k + k \ln(k) = k\), for \(k>0\).</p>
<p>For \(k=0\), we can fill in 0, because the minimum value of \((XY)^Z\) is 0, so it is the minimum of the support of its CDF.</p>
<p>So amazingly, \((XY)^Z\) has the CDF of (and is) a uniform distribution. How does that happen? What&#8217;s the intuition?</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.yhuang.org/?feed=rss2&#038;p=137</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
