<?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>PCR&#039;s notepad &#187; statistics</title>
	<atom:link href="http://notepad.patheticcockroach.com/category/science/statistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://notepad.patheticcockroach.com</link>
	<description>The area in patheticcockroach.com where the EEG isn&#039;t isoelectric</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:11:36 +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>Computing the standard normal cumulative distribution with R</title>
		<link>http://notepad.patheticcockroach.com/2414/computing-the-standard-normal-cumulative-distribution-with-r/</link>
		<comments>http://notepad.patheticcockroach.com/2414/computing-the-standard-normal-cumulative-distribution-with-r/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 15:36:35 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[R (R-project)]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2414</guid>
		<description><![CDATA[I recently had to compute the Bayes error for a Gaussian model. Let xi be a predictive variable, following a Gaussian distribution of variance 1 and mean Ti in a class, and -Ti in the other class. The Bayes error of the model is e=1-Φ(sqrt(sum(Ti^2)). In R, the standard normal cumulative distribution function is computed [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to compute the Bayes error for a Gaussian model.<br />
Let x<sub>i</sub> be a predictive variable, following a Gaussian distribution of variance 1 and mean T<sub>i</sub> in a class, and -T<sub>i</sub> in the other class.<br />
The Bayes error of the model is e=1-Φ(sqrt(sum(T<sub>i</sub>^2)).<br />
In R, the standard normal cumulative distribution function is computed using <strong>pnorm()</strong>.</p>
<p>So, here&#8217;s the Bayes error if for instance we have 10 variables with mean 0.5 in a class and -0.5 in the other class:<br />
<code>Bayes_error=1-pnorm(1*sqrt(10*0.5^2));</code></p>
<p>If we had more complicated things, like 5 variables with mean 0.5,0.6,0.7,0.8,0.9 in a class and -0.5,-0.6,-0.7,-0.8,-0.9 in the other, we could do something like:<br />
<code>mus=c(0.5,0.6,0.7,0.8,0.9);<br />
Bayes_error=1-pnorm(1*sqrt(t(mus)%*%mus));</code><br />
or not vectorized: <code>Bayes_error=1-pnorm(1*sqrt(sum(mus*mus)));</code></p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2414/computing-the-standard-normal-cumulative-distribution-with-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick statistics competence assessment</title>
		<link>http://notepad.patheticcockroach.com/527/quick-statistics-competence-assessment/</link>
		<comments>http://notepad.patheticcockroach.com/527/quick-statistics-competence-assessment/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 16:32:58 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[funnies]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=527</guid>
		<description><![CDATA[Do you understand the following comic? &#169; xkcdThis work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License If you don&#8217;t, your statistical skills require an emergency treatment (unless you actually don&#8217;t use statistics) because you are likely to draw erroneous excessive conclusions. If you do, well, I can&#8217;t conclude.]]></description>
			<content:encoded><![CDATA[<p>Do you understand the following comic?<br />
<img src="http://img.patheticcockroach.com/01/xkcd_correlation.png" alt="Correlation vs causation" width="459" height="185"/></p>
<div style="text-align:center; font-size:x-small;">&copy; <a href="http://xkcd.com/552/">xkcd</a><br />This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc/2.5/">Creative Commons Attribution-NonCommercial 2.5 License</a></div>
<p>If you don&#8217;t, your statistical skills require an emergency treatment (unless you actually don&#8217;t use statistics) because you are likely to draw <a href="http://www.sciencenews.org/view/feature/id/57091/title/Odds_Are,_Its_Wrong">erroneous excessive conclusions</a>.<br />
If you do, well, I can&#8217;t conclude.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/527/quick-statistics-competence-assessment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R-project Portable</title>
		<link>http://notepad.patheticcockroach.com/512/r-project-portable/</link>
		<comments>http://notepad.patheticcockroach.com/512/r-project-portable/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:21:33 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[R (R-project)]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=512</guid>
		<description><![CDATA[The guys at R-project tell you that you can run R from a CD or USB drive (so it&#8217;s portable), but nowhere they provide you with a really portable version. I.e., you have to actually run the installer then you can make a portable copy of the R folder on your USB key. That&#8217;s not [...]]]></description>
			<content:encoded><![CDATA[<p>The guys at R-project tell you that you can <a href="http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Can-I-run-R-from-a-CD-or-USB-drive_003f">run R from a CD or USB drive</a> (so it&#8217;s portable), but nowhere they provide you with a really portable version. I.e., you have to actually run the installer then you can make a portable copy of the R folder on your USB key. That&#8217;s not exactly practical because if for instance you want to &#8220;install&#8221; it at work on a restricted computer where you can&#8217;t run an installer, you need to start with some homework first&#8230;<br />
So for the lazy like me, here is a <a href="http://www.megaupload.com/?d=57OV1VWC">portable version of R 2.10.1</a>. I made it from a custom installation (as far as I remember it&#8217;s like the standard installation without language packs and with only some of the manuals) and it&#8217;s in English, of course <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also, note that automatically installing additional packages should work fine on this portable version (I did so with my previous 2.10.0 portable, so no reason it wouldn&#8217;t work with that one).</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/512/r-project-portable/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

