<?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>Statistics, R, Graphics and Fun &#187; Bell-Shaped Curve</title>
	<atom:link href="http://yihui.name/en/tag/bell-shaped-curve/feed/" rel="self" type="application/rss+xml" />
	<link>http://yihui.name/en</link>
	<description>Yihui XIE</description>
	<lastBuildDate>Thu, 26 Aug 2010 03:32:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>When &#8220;Bell-shaped&#8221; is Far Far Away from Gaussian</title>
		<link>http://yihui.name/en/2009/01/when-bell-shaped-is-far-far-away-from-gaussian/</link>
		<comments>http://yihui.name/en/2009/01/when-bell-shaped-is-far-far-away-from-gaussian/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 13:38:17 +0000</pubDate>
		<dc:creator>Yihui Xie</dc:creator>
				<category><![CDATA[R Graphics]]></category>
		<category><![CDATA[Bell-Shaped Curve]]></category>
		<category><![CDATA[Gaussian]]></category>
		<category><![CDATA[Kernel Density Estimation]]></category>
		<category><![CDATA[R Language]]></category>

		<guid isPermaLink="false">http://yihui.name/en/?p=58</guid>
		<description><![CDATA[I was surprised to find the density estimation of a constant was also &#8220;bell-shaped&#8221; by default when a friend passed some R code to me to illustrate CLT, but I realized the reason soon. # png(width = 500, height = 300) x = rep(0, 1000) par(mfrow = c(1, 2), mar = c(4, 4, 0.1, 0.1)) [...]]]></description>
			<content:encoded><![CDATA[<p>I was surprised to find the density estimation of a constant was also &#8220;bell-shaped&#8221; by default when a friend passed some R code to me to illustrate CLT, but I realized the reason soon.</p>
<span class="download"><a href="http://yihui.name/en/wp-content/uploads//1231335208_0.r">Downdload the R code here</a></span>
<pre># png(width = 500, height = 300)
x = rep(0, 1000)
par(mfrow = c(1, 2), mar = c(4, 4, 0.1, 0.1))
plot(density(x), main = "")
plot(density(x), main = "")
rug(jitter(x))
# dev.off()</pre>
<p style="text-align: center;" align="center"><img class="aligncenter" style="border: 0pt none;" src="http://yihui.name/en/wp-content/uploads/1231335129_0.png" border="0" alt="" width="500" height="300" /></p>
<p>Note that I added a rug (jittered) to the right plot to tell you the true locations of the data points.</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li><a href="http://yihui.name/en/2010/08/auto-completion-in-notepad-for-r-script/" title="Auto-completion in Notepad++ for R Script">Auto-completion in Notepad++ for R Script</a></li><li><a href="http://yihui.name/en/2010/04/r-is-an-epic-fail/" title="R is an Epic Fail?">R is an Epic Fail?</a></li><li><a href="http://yihui.name/en/2010/03/looking-for-software-paths-in-windows-registry/" title="Looking for Software Paths in Windows Registry">Looking for Software Paths in Windows Registry</a></li><li><a href="http://yihui.name/en/2010/03/a-demo-for-the-ratio-estimation/" title="A Demo for the Ratio Estimation in Sampling Survey (Animation)">A Demo for the Ratio Estimation in Sampling Survey (Animation)</a></li><li><a href="http://yihui.name/en/2010/02/press-enter-in-lyx-sweave-as-you-wish/" title="Press Enter in LyX Sweave as You Wish">Press Enter in LyX Sweave as You Wish</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://yihui.name/en/2009/01/when-bell-shaped-is-far-far-away-from-gaussian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
