<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://mahalanobis.twoday.net/rss2html.xsl" type="text/xsl"?>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:cc="http://web.resource.org/cc/"
  xmlns="http://purl.org/rss/1.0/"
> 

  <channel rdf:about="http://mahalanobis.twoday.net/">
    <title>the alpha and omega : topic:mathstat</title>
    <link>http://mahalanobis.twoday.net/</link>
    <description></description>
    <dc:publisher>Mahalanobis</dc:publisher>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:date>2011-05-27T07:40:46Z</dc:date>
    <dc:language>en</dc:language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T00:00:00Z</sy:updateBase>
    
    <image rdf:resource="http://static.twoday.net/mahalanobis/images/icon.gif" />
    <items>
      <rdf:Seq>
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/5410933/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/5402240/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3733213/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3565003/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3519046/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3486587/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3482448/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3472911/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3464021/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/3455181/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/2870138/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/2835225/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/2796923/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/2684143/" />
            <rdf:li rdf:resource="http://mahalanobis.twoday.net/stories/2663621/" />

      </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://static.twoday.net/mahalanobis/images/icon.gif">
    <title>the alpha and omega</title>
    <url>http://static.twoday.net/mahalanobis/images/icon.gif</url>
    <link>http://mahalanobis.twoday.net/</link>
  </image>

  <item rdf:about="http://mahalanobis.twoday.net/stories/5410933/">
    <title>E[e^sX] when X is normally distributed</title>
    <link>http://mahalanobis.twoday.net/stories/5410933/</link>
    <description>Recently, I asked myself the question: &quot;Why is the expected value of e^sX (X ~ N(0,1)) equal to e^(0.5*s^2)?&quot;. You know that compounding a sum of money (A) at a continously compounded rate X for a period involves multiplying it by e^X. In case X is non-random, the expected value is A*e^X. In case X is random, calculating the expected value becomes quite difficult. The solution for a standard normally distributed X can be derived as follows:&lt;br /&gt;
&lt;br /&gt;
1. Write down the equation (&mu; = E[e^sX] where X ~ N(0,1)):&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;67&quot; alt=&quot;gau01&quot; width=&quot;261&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/gau01.gif&quot; /&gt;2. Substitute y = x - s and you get:&lt;img title=&quot;&quot; height=&quot;338&quot; alt=&quot;gau2&quot; width=&quot;404&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/gau2.gif&quot; /&gt;More general, if X ~ N(&mu;*, &sigma;&lt;sup&gt;2&lt;/sup&gt;), then X = &mu;* + &sigma;Z with Z ~N(0,1). It follows that&lt;img title=&quot;&quot; height=&quot;219&quot; alt=&quot;gau03&quot; width=&quot;210&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/gau03.gif&quot; /&gt;Of course, practitioners often know the parameters they are interested in (e.g. s = 0.3), so they can take a shortcut and run a monte carlo analysis:&lt;br /&gt;
&lt;br /&gt;
s &lt;- 0.3&lt;br /&gt;
n &lt;- 10000&lt;br /&gt;
x &lt;- rnorm(n)&lt;br /&gt;
answer &lt;- mean(exp(s*x))&lt;br /&gt;
&lt;br /&gt;
Or a bit more sophisticated and less arbitrary:&lt;br /&gt;
&lt;br /&gt;
s &lt;- 0.3&lt;br /&gt;
n &lt;- 10000&lt;br /&gt;
i &lt;- (1:n)/(n+1)&lt;br /&gt;
x &lt;- qnorm(i)&lt;br /&gt;
answer &lt;- mean(exp(s*x))&lt;br /&gt;
&lt;br /&gt;
NB: The expected value &lt;a href=&quot;http://mahalanobis.twoday.net/stories/5402240/&quot;&gt;can be very misleading&lt;/a&gt;.&lt;br /&gt;
Source: &lt;a href=&quot;http://static.twoday.net/mahalanobis/files/GeldFinanz.pdf&quot;&gt;Stochastische Grundlagen der Finanzmathematik&lt;/a&gt;, Klaus Pötzelberger</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2008 Mahalanobis</dc:rights>
    <dc:date>2008-12-27T21:58:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/5402240/">
    <title>Volatility hurts.</title>
    <link>http://mahalanobis.twoday.net/stories/5402240/</link>
    <description>Ernest Chan (&lt;a href=&quot;http://epchan.blogspot.com/&quot;&gt;blog&lt;/a&gt;) writes in his book &lt;a href=&quot;http://www.amazon.com/Quantitative-Trading-Build-Algorithmic-Business/dp/0470284889&quot;&gt;Quantitative Trading - How to Build Your Own Algorithmic Trading Business&lt;/a&gt;: 

&lt;blockquote&gt;Here is a little puzzle that may stymie many a professional trader. Suppose a certain stock exhibits a true (geometric) random walk, by which I mean there is a 50-50 chance that the stock is going up 1 percent or down 1 percent every [day]. If you buy this stock, are you most likely--in the long run and ignoring financing costs--to make money, lose money, or be flat?&lt;br /&gt;
Most traders will blur out the answer &quot;Flat!,&quot; and that is wrong. The correct answer is that you will lose money, at the rate of 0.005 percent (or 0.5 basis points) every [day]! This is because for a geometric random walk, the average compounded rate of return is not the return &mu;, but is g = &mu; - &sigma;^2/2.&lt;/blockquote&gt;

For this very reason, geometric Brownian Motion is often written as&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;85&quot; alt=&quot;bm&quot; width=&quot;329&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm.gif&quot; /&gt;where &quot;&mu; - &sigma;^2/2&quot; is the expected return and &quot;&mu;&quot; is the return of the expected prices, i.e. ln(E[S&lt;sub&gt;t&lt;/sub&gt;]/E[S&lt;sub&gt;t-1&lt;/sub&gt;]).&lt;br /&gt;
&lt;br /&gt;
If you lose 50 percent of your portfolio, you have to make 100 percent to get back to even... that&apos;s what everybody knows. But it&apos;s also interesting to see how mild volatiltiy hurts over time. Here are ten (random - no cherry picking) realizations of a geometric Brownian Motion with a daily volatility of 1% (i.e. a yearly volatility of 16% when having 252 trading days) over the period of 100 years:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;367&quot; alt=&quot;bm02&quot; width=&quot;469&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm02.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;360&quot; alt=&quot;bm01&quot; width=&quot;474&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm01.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;368&quot; alt=&quot;bm03&quot; width=&quot;471&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm03.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;360&quot; alt=&quot;bm04&quot; width=&quot;467&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm04.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;355&quot; alt=&quot;bm05&quot; width=&quot;471&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm05.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;355&quot; alt=&quot;bm06&quot; width=&quot;472&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm06.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;353&quot; alt=&quot;bm07&quot; width=&quot;474&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm07.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;360&quot; alt=&quot;bm08&quot; width=&quot;472&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm08.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;359&quot; alt=&quot;bm09&quot; width=&quot;471&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm09.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;361&quot; alt=&quot;bm10&quot; width=&quot;471&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/bm10.gif&quot; /&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.r-project.org&quot;&gt;R Development Core Team&lt;/a&gt; (2008). R: A language and environment for statistical computing.&lt;br /&gt;
&lt;br /&gt;
PS: Hey, this looks promising:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;356&quot; alt=&quot;veryprom&quot; width=&quot;472&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/veryprom.gif&quot; /&gt;</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2008 Mahalanobis</dc:rights>
    <dc:date>2008-12-22T08:07:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3733213/">
    <title>The Skill versus Luck Paradox cont&apos;d</title>
    <link>http://mahalanobis.twoday.net/stories/3733213/</link>
    <description>&lt;a href=&quot;http://mahalanobis.twoday.net/stories/664500/&quot;&gt;A while ago&lt;/a&gt;, we adressed the following question: A portfolio manager knows that his strategy can, on average, outperform the benchmark index by 3% annually. His portfolio has an annual volatility (standard deviation) of 25% against the index&apos;s 15%. Assuming that the correlation between the returns of the portfolio and the returns of the index is 0.9, how many years would it take to outperform the index with 90% probability? &lt;br /&gt;
&lt;br /&gt;
The correct answer is a whopping 300 years! (&lt;a href=&quot;http://mahalanobis.twoday.net/stories/664500/&quot;&gt;apply the Itô-Döblin formula&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
Today somebody asked me if I could run a couple of simulations to get a better understanding of the result. What I did was plot 20 simulations of log(Portfolio/Index) for varying correlations. For &rho; = 0.9 2 out of 20 (10%) are--as expected--below zero:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;807&quot; alt=&quot;skillluckparadox&quot; width=&quot;486&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/skillluckparadox.gif&quot; /&gt;</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-05-15T19:50:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3565003/">
    <title>My Master&apos;s Thesis is Significant</title>
    <link>http://mahalanobis.twoday.net/stories/3565003/</link>
    <description>By strolling through the library I figured out that the number of pages of my master&apos;s thesis is five standard deviations lower than the average number of pages my friends have written to graduate from the &lt;a href=&quot;http://www.wu-wien.ac.at&quot;&gt;&lt;/a&gt;Vienna University of Economics and Business Administration:&lt;br /&gt;
&lt;br /&gt;
&lt;TABLE width=&quot;500&quot; border=&quot;1&quot; &gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
&lt;b&gt;Author&lt;/b&gt;
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
&lt;b&gt;Pages&lt;/b&gt;
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
&lt;b&gt;Title&lt;/b&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Michael Sigmund
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
139
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Anwendungsgebiete der Spieltheorie in den Sozialwissenschaften
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Robert Ferstl
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
127
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Werkzeuge zur Analyse räumlicher Daten - eine Softwareimplementation in EViews und MATLAB
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Karin Doppelbauer
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
122
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Analiz r&#697;inka mjasa kur v Rossii - Eine Analyse des russischen Geflügelfleischmarktes
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Markus Pock
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
107
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Untersuchungen zu Wachstumseffekten der WWU mittels Zeitreihenanalyse
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Christian Kraxner
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
105
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Using credit derivatives for managing corporate bond portfolios
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Christian Balbier
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
104
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Föderale Strukturen in den neuen Mitgliedsstaaten der Europäischen Union
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Stefan Woytech
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
103
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Harmonisierung von internem und externem Rechnungswesen auf Basis der IAS/IFRS 
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Anton Burger
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
92
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
Reasons for the U.S. Growth Experience in the Nineties: Non Keynesian Effects, the Capital Market and Technology
&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align=&quot;left&quot; width=&quot;130&quot;&gt;
Michael Stastny
&lt;/TD&gt;
&lt;TD align=&quot;center&quot; width=&quot;50&quot;&gt;
&lt;b&gt;31&lt;/b&gt;
&lt;/TD&gt;
&lt;TD align=&quot;left&quot; &gt;
&lt;a href=&quot;http://nr11029.vhost-enzo.sil.at/thesis_stastny.pdf&quot;&gt;Economic Growth and Output Variability: An Empirical Analysis&lt;/a&gt; (pdf)
&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;br /&gt;

The outlier status of my thesis is confirmed by conventional tests for outliers:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;346&quot; alt=&quot;outliers&quot; width=&quot;475&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/outliers.gif&quot; /&gt;&lt;br /&gt;
How cool is that?</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-04-12T16:11:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3519046/">
    <title>&quot;almost sure&quot; versus &quot;sure&quot;</title>
    <link>http://mahalanobis.twoday.net/stories/3519046/</link>
    <description>The difference between an event being &lt;i&gt;almost sure&lt;/i&gt; and &lt;i&gt;sure&lt;/i&gt; is the same as the subtle difference between something happening &lt;i&gt;with probability 1&lt;/i&gt; and happening &lt;i&gt;always&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
If an event is &lt;i&gt;sure&lt;/i&gt;, then it will always happen. No other event (even events with probability 0) can possibly occur. If an event is &lt;i&gt;almost sure&lt;/i&gt;, then there are other events that could happen, but they happen &lt;i&gt;almost never&lt;/i&gt;, that is with probability 0.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Cool Example&lt;/b&gt;: Throwing a dart&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;293&quot; alt=&quot;dbot&quot; width=&quot;168&quot; align=&quot;right&quot; class=&quot;right&quot; src=&quot;http://static.twoday.net/mahalanobis/images/dbot.jpg&quot; /&gt;&lt;br /&gt;
For example, imagine throwing a dart at a square, and imagine that this square is the only thing in the universe. There is physically nowhere else for the dart to land. Then, the event that &quot;the dart hits the square&quot; is a sure event. No other alternative is imaginable.&lt;br /&gt;
&lt;br /&gt;
Next, consider the event that &quot;the dart hits the diagonal of the square exactly&quot;. The probability that the dart lands on any subregion of the square is equal to the area of that subregion. But, since the area of the diagonal of the square is zero, the probability that the dart lands exactly on the diagonal is zero. So, the dart will &lt;b&gt;almost surely&lt;/b&gt; not land on the diagonal, or indeed any other given line or point. Notice that even though there is zero probability that it will happen, it is still possible.&lt;br /&gt;
&lt;br /&gt;
Source: &lt;a href=&quot;http://en.wikipedia.org/wiki/Almost_surely&quot;&gt;Wikipedia&lt;/a&gt;</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-04-02T20:37:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3486587/">
    <title>The waiting time paradox</title>
    <link>http://mahalanobis.twoday.net/stories/3486587/</link>
    <description>There is an old conundrum in queueing theory that goes like this:

&lt;ul&gt;
&lt;li&gt;A passenger arrives at a bus-stop at some arbitrary point in time&lt;/li&gt;
&lt;li&gt;Buses arrive according to a Poisson process&lt;/li&gt;
&lt;li&gt;The mean interval between the buses is 10 min.&lt;/li&gt;
&lt;/ul&gt;

What is the mean waiting time until the next bus?&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;136&quot; alt=&quot;busline&quot; width=&quot;322&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/busline.gif&quot; /&gt;&lt;br /&gt;
Answer: 10 min. This is an example of length-biased sampling. The explanation of the paradox lies therein that the passengers&apos; probability to arrive during a long interarrival interval is greater than during a short interval. &lt;b&gt;]&lt;/b&gt; &lt;a href=&quot;http://static.twoday.net/mahalanobis/images/waitingtime.jpg&quot;&gt;Here&lt;/a&gt; is a neat non-technical explanation (taken from &lt;a href=&quot;http://www.amazon.com/Probabilities-Little-Numbers-That-Lives/dp/0470040017/ref=si3_rdr_bb_product/104-7513797-9551140&quot;&gt;this&lt;/a&gt; book). &lt;b&gt;[&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Given the interarrival interval, within that interval the arrival instant of the passanger is uniformly distributed and the expected waiting time is one half of the total duration of the interval. The point is that in the selection by the random instant the long intervals are more frequently represented than the short ones (with a weight proportional to the length of the interval).&lt;br /&gt;
&lt;br /&gt;
Consider a long period of time t. The waiting time to the next bus arrival W(&tau;) as a function of the arrival instant &tau; of the passenger is represented by:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;209&quot; alt=&quot;waitt&quot; width=&quot;400&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/waitt.gif&quot; /&gt;where the X&lt;sub&gt;i&lt;/sub&gt; are the interarrival intervals. The mean waiting time, W_bar, is the average value of this sawtooth curve:&lt;img title=&quot;&quot; height=&quot;77&quot; alt=&quot;waitt01&quot; width=&quot;377&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/waitt01.gif&quot; /&gt;&lt;br /&gt;
Note that long interarrival intervals contribute much more than short ones to the average waiting time. As t grows, t/n -&gt;  X_bar, hence,&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;90&quot; alt=&quot;waitt02&quot; width=&quot;347&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/waitt02.gif&quot; /&gt;For exponential distribution (as the X&lt;sub&gt;i&lt;/sub&gt; are distributed),&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;76&quot; alt=&quot;waitt03&quot; width=&quot;271&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/waitt03.gif&quot; /&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Variance&quot;&gt;Therefore&lt;/a&gt;,&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;50&quot; alt=&quot;waitt04&quot; width=&quot;380&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/waitt04.gif&quot; /&gt;Altogether,&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;41&quot; alt=&quot;waitt05&quot; width=&quot;245&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/waitt05.gif&quot; /&gt;&lt;br /&gt;
Q.E.D.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
&lt;a href=&quot;http://cs.haifa.ac.il/courses/AdvancedOS/&quot;&gt;Advanced Course in Operating Systems&lt;/a&gt; (University of Haifa), Lecture 1 &amp; 2</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-03-28T01:42:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3482448/">
    <title>ZunZun :: Curve fitting on the web</title>
    <link>http://mahalanobis.twoday.net/stories/3482448/</link>
    <description>&lt;a href=&quot;http://neweconomist.blogs.com/new_economist/&quot;&gt;New Economist&lt;/a&gt; writes: &lt;a href=&quot;http://www.stat.columbia.edu/~cook/movabletype/archives/2007/03/curve_fitting_o.html&quot;&gt;In a new post&lt;/a&gt; on the Statistical Modeling, Causal Inference, and Social Science blog, &lt;a href=&quot;http://www.stat.columbia.edu/~jakulin/&quot;&gt;Aleks Jakulin&lt;/a&gt; at Columbia University points us to a great online tool, &lt;a href=&quot;http://zunzun.com&quot;&gt;ZunZun&lt;/a&gt;. It lets you use 2 and 3 dimensional &apos;Function Finders&apos; to &apos;help determine the best curve fit for your data&apos;.&quot;&lt;br /&gt;
&lt;br /&gt;
On &lt;a href=&quot;http://pages.stern.nyu.edu/~wgreene/Text/econometricanalysis.htm&quot;&gt;William Greene&apos;s site&lt;/a&gt; I found a neat data set (Data Tables :: Table F6.1) for estimating a &lt;a href=&quot;http://en.wikipedia.org/wiki/Cobb-Douglas&quot;&gt;Cobb-Douglas production function&lt;/a&gt;. ZunZun comes up with the following suggestion:
&lt;p align=&quot;center&quot;&gt;Y = &beta;&lt;sub&gt;1&lt;/sub&gt;( L&lt;sup&gt;0.5&lt;/sup&gt;K&lt;sup&gt;0.5&lt;/sup&gt;) + &beta;&lt;sub&gt;2&lt;/sub&gt;(cos(L)K&lt;sup&gt;1.5&lt;/sup&gt;)&lt;/p&gt;

Surface Plot:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;352&quot; alt=&quot;cobb_surface&quot; width=&quot;353&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/cobb_surface.gif&quot; /&gt;&lt;br /&gt;
Contour Plot:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;369&quot; alt=&quot;cobb_contour&quot; width=&quot;422&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/cobb_contour.gif&quot; /&gt;&lt;br /&gt;
The R&lt;sup&gt;2&lt;/sup&gt; reaches an unrealistic 0.968 (0.94 for the Cobb-Douglas specification). Textbook data... Here is a scatterplot of the logarithmized data (created with &lt;a href=&quot;http://www.r-project.org&quot;&gt;R&lt;/a&gt;):&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;347&quot; alt=&quot;scatter3d&quot; width=&quot;451&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/scatter3d.gif&quot; /&gt;</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-03-27T02:50:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3472911/">
    <title>Proof without Words: Geometric Series</title>
    <link>http://mahalanobis.twoday.net/stories/3472911/</link>
    <description>&lt;img title=&quot;&quot; height=&quot;407&quot; alt=&quot;viewp01&quot; width=&quot;404&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/viewp01.gif&quot; /&gt;&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;403&quot; alt=&quot;viewp02&quot; width=&quot;401&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/viewp02.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
The Viewpoints 2000 Group&lt;br /&gt;
&lt;a href=&quot;http://links.jstor.org/sici?sici=0025-570X%28200110%2974%3A4%3C320%3APWWGS%3E2.0.CO%3B2-F&quot;&gt;Mathematics Magazine, Vol. 74, No. 4. (Oct., 2001), p. 320.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
related items:&lt;br /&gt;
&lt;a href=&quot;http://mahalanobis.twoday.net/stories/2796923/&quot;&gt;Neat Proofs&lt;/a&gt;, Mahalanobis</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-03-24T02:16:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3464021/">
    <title>I&apos;m Confused: How Could Information Equal Entropy?</title>
    <link>http://mahalanobis.twoday.net/stories/3464021/</link>
    <description>Taken from the &lt;a href=&quot;http://www.ccrnp.ncifcrf.gov/~toms/bionet.info-theory.faq.html&quot;&gt;bionet.info-theory FAQ&lt;/a&gt;: If someone says that information = uncertainty = entropy, then they are confused, or something was not stated that should have been. Those equalities lead to a contradiction, since entropy of a system increases as the system becomes more disordered. So information corresponds to disorder according to this confusion.&lt;br /&gt;
&lt;br /&gt;
If you always take &lt;b&gt;information to be a decrease in uncertainty&lt;/b&gt; at the receiver and you will get straightened out:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;32&quot; alt=&quot;entro01&quot; width=&quot;181&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/entro01.gif&quot; /&gt;&lt;br /&gt;
where H is the Shannon uncertainty:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;58&quot; alt=&quot;entro02&quot; width=&quot;187&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/entro02.gif&quot; /&gt;&lt;br /&gt;
and p&lt;sub&gt;i&lt;/sub&gt; is the probability of the i&lt;i&gt;th&lt;/i&gt; symbol. If you don&apos;t understand this, read the short &lt;a href=&quot;http://www.ccrnp.ncifcrf.gov/~toms/paper/primer/&quot;&gt;Information Theory Primer&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Imagine that we are in communication and that we have agreed on an alphabet. Before I send you a bunch of characters, you are uncertain (H&lt;sub&gt;before&lt;/sub&gt;) as to what I&apos;m about to send. After you receive a character, your uncertainty goes down (to H&lt;sub&gt;after&lt;/sub&gt;). H&lt;sub&gt;after&lt;/sub&gt; is never zero because of noise in the communication system. Your decrease in uncertainty is the information (I) that you gain.&lt;br /&gt;
&lt;br /&gt;
Since H&lt;sub&gt;before&lt;/sub&gt; and H&lt;sub&gt;after&lt;/sub&gt; are state functions, this makes I a function of state. It allows you to lose information (it&apos;s called forgetting).&lt;br /&gt;
&lt;br /&gt;
Many of the statements in the early literature assumed a noiseless channel, so the uncertainty after receipt is zero (H&lt;sub&gt;after&lt;/sub&gt;=0). This leads to the SPECIAL CASE where I = H&lt;sub&gt;before&lt;/sub&gt;. But H&lt;sub&gt;before&lt;/sub&gt; is NOT &quot;the uncertainty&quot;, it is the uncertainty of the receiver BEFORE RECEIVING THE MESSAGE.</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-03-22T01:14:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/3455181/">
    <title>Brainiacs Succeed in Mapping 248-Dimensional Object</title>
    <link>http://mahalanobis.twoday.net/stories/3455181/</link>
    <description>&lt;img title=&quot;&quot; height=&quot;181&quot; alt=&quot;e8&quot; width=&quot;180&quot; align=&quot;right&quot; class=&quot;right&quot; src=&quot;http://static.twoday.net/mahalanobis/images/e8.jpg&quot; /&gt;&lt;b&gt;MIT news office&lt;/b&gt;: An international team of 18 mathematicians has mapped one of the largest and most complicated structures in mathematics. If written out on paper, the calculation describing this structure, known as E&lt;sub&gt;8&lt;/sub&gt;, would cover an area the size of Manhattan. &lt;br /&gt;
&lt;br /&gt;
The work is important because it could lead to new discoveries in mathematics, physics and other fields. In addition, the innovative large-scale computing that was key to the work likely spells the future for how longstanding math problems will be solved in the 21st century. Click &lt;a href=&quot;http://web.mit.edu/newsoffice/2007/e8.html&quot;&gt;here&lt;/a&gt; (or &lt;a href=&quot;http://www.sciam.com/article.cfm?articleID=6C66165B-E7F2-99DF-3D86B476FFD18F17&amp;ref=sciam&amp;chanID=sa003&quot;&gt;here&lt;/a&gt; ) to continue.&lt;br /&gt;
&lt;br /&gt;
related items:&lt;br /&gt;
American Institute of Mathematics: &lt;a href=&quot;http://aimath.org/E8/&quot;&gt;E&lt;sub&gt;8&lt;/sub&gt;&lt;/a&gt;&lt;br /&gt;
Lecture Slides: &lt;a href=&quot;http://math.mit.edu/~dav/E8TALK.pdf&quot;&gt;The Character Table for E8, or How We Wrote Down a 453,060 x 453,060 Matrix and Found Happiness&lt;/a&gt;, David Vogan, MIT</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2007 Mahalanobis</dc:rights>
    <dc:date>2007-03-20T01:35:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/2870138/">
    <title>MARS :: Multivariate Adaptive Regression Splines</title>
    <link>http://mahalanobis.twoday.net/stories/2870138/</link>
    <description>&lt;blockquote&gt;&quot;Multivariate Adaptive Regression Splines (MARS)  is an implementation of techniques popularized by &lt;a href=&quot;http://www-stat.stanford.edu/~jhf/&quot;&gt;Friedman&lt;/a&gt; (1991) for solving regression-type problems.&lt;br /&gt;
&lt;br /&gt;
MARS is a nonparametric regression procedure that makes no assumption about the underlying functional relationship between the dependent and [explanatory] variables. Instead, MARS constructs this relation from a set of coefficients and basis functions that are entirely &quot;driven&quot; from the regression data. In a sense, the method is based on the &quot;divide and conquer&quot; strategy, which partitions the input space into regions, each with its own regression equation. This makes MARS particularly suitable for problems with higher input dimensions (i.e., with more than 2 variables), where the &lt;a href=&quot;http://www.statsoft.com/textbook/glosc.html#Curse&quot;&gt;curse of dimensionality&lt;/a&gt; [see also &lt;a href=&quot;http://www.stat.columbia.edu/~cook/movabletype/archives/2004/10/the_blessing_of.html&quot;&gt;blessing of dimensionality&lt;/a&gt;] would likely create problems for other techniques.&lt;br /&gt;
&lt;br /&gt;
The MARSplines technique has become particularly popular in the area of data mining because it does not assume or impose any particular type or class of relationship (e.g., linear, logistic, etc.) between the predictor variables and the dependent (outcome) variable of interest. Instead, useful models (i.e., models that yield accurate predictions) can be derived even in situations where the relationship between the predictors and the dependent variables is non-monotone and difficult to approximate with parametric models.&quot; [&lt;a href=&quot;http://www.statsoft.com/textbook/stmars.html&quot;&gt;Continue&lt;/a&gt;]&lt;/blockquote&gt;

Note to self: Read
&lt;ul&gt;  
&lt;li&gt;&lt;a href=&quot;http://links.jstor.org/sici?sici=0090-5364%28199103%2919%3A1%3C1%3AMARS%3E2.0.CO%3B2-D&quot;&gt;Multivariate Adaptive Regression Splines&lt;/a&gt;, Jerome H. Friedman, &lt;i&gt;The Annals of Statistics&lt;/i&gt;, Vol. 19, No. 1. (Mar., 1991), pp. 1-67.&lt;/li&gt;  
&lt;li&gt;&lt;a href=&quot;http://www.amazon.co.uk/Elements-Statistical-Learning-Prediction-Statistics/dp/0387952845&quot;&gt;The Elements of Statistical Learning: Data Mining, Inference and Prediction&lt;/a&gt;, Hastie, T., Tibshirani, R. and Friedman, J.H. (2001), Springer Verlag, New York&lt;/li&gt;
&lt;/ul&gt;

Hat tip to &lt;a href=&quot;http://www.itp.phys.ethz.ch/econophysics/R/contact.htm&quot;&gt;Diethelm Würtz&lt;/a&gt;</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2006 Mahalanobis</dc:rights>
    <dc:date>2006-10-30T15:15:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/2835225/">
    <title>Taylor Effect and Empirical Scaling Law :: Rmetrics</title>
    <link>http://mahalanobis.twoday.net/stories/2835225/</link>
    <description>&lt;b&gt;Taylor Effect&lt;/b&gt;: It is by now well established in the financial econometrics literature that high frequency time series of financial returns are often uncorrelated but not independent because there are non-linear transformations which are positively correlated. In 1986 Taylor observed that the empirical sample autocorrelations of absolute returns, |r|, are usually larger than those of squared returns, |r|^2. A similar phenomena is observed by Ding et al. (1993) who examined daily returns of the S&amp;P 500 index and conclude that, for this particular series, the autocorrelations of absolute returns raised to the power of &theta; are maximized when &theta; is around 1, that is, the largest autocorrelations are found in the absolute returns. Granger and Ding (1995) denote this empirical property of financial returns as &lt;i&gt;Taylor Effect&lt;/i&gt;. Therefore, if r&lt;sub&gt;t&lt;/sub&gt;, t = 1,...T, is the series of returns and &rho;&lt;sub&gt;&theta;&lt;/sub&gt;(k) denotes the sample autocorrelation of order k of |r&lt;sub&gt;t&lt;/sub&gt;|&lt;sup&gt;&theta;&lt;/sup&gt;, &theta; &gt; 0, the Taylor effect can be defined as follows:

&lt;p align=&quot;center&quot;&gt;&rho;&lt;sub&gt;1&lt;/sub&gt;(k) &gt; &rho;&lt;sub&gt;&theta;&lt;/sub&gt;(k) for any &theta; &ne; 1.&lt;/p&gt;

However, Granger and Ding (1994, 1996) analyze several series of daily exchange rates and individual stock prices, and conclude that the maximum autocorrelation is not always obtained when &theta; = 1 but for smaller values of &theta;. Nevertheless, they point out that the autocorrelations of absolute returns are always larger than the autocorrelations of squares. [1] This can also be observed when looking at &lt;a href=&quot;http://www.itp.phys.ethz.ch/econophysics/R/data/textbooks/Wuertz/data/usdchf30min.csv&quot;&gt;USDCHF High Frequency FX rates&lt;/a&gt; (1996-04-01 00:00:00 to 2001-03-30 23:30:00; 62,496 observations):&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;480&quot; alt=&quot;usdchfhist&quot; width=&quot;496&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/usdchfhist.gif&quot; /&gt;&lt;br /&gt;
&lt;b&gt;teffectPlot&lt;/b&gt;, k = 1,...,10:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;517&quot; alt=&quot;taylor_effect_rmetrics&quot; width=&quot;497&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/taylor_effect_rmetrics.gif&quot; /&gt;&lt;br /&gt;
&lt;b&gt;Scaling Law&lt;/b&gt;: Some financial time series show a selfsimilar behavior under temporal aggregation. The &apos;empirical scaling law&apos; relates the average of the unconditional volatility, measured as the absolute value of the return, r(t&lt;sub&gt;i&lt;/sub&gt;), over a time interval to the size of the time interval:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;79&quot; alt=&quot;scalinglawformula&quot; width=&quot;232&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/scalinglawformula.gif&quot; /&gt;&lt;br /&gt;
where the drift exponent 1/E is an estimated constant that Müller et al. (1990) find to be similar across different currencies and &Delta;T is a time constant that depends on the currency [2]. The &lt;a href=&quot;http://mahalanobis.twoday.net/stories/210704/&quot;&gt;Wiener process&lt;/a&gt;, a continuous Gaussian random walk, exhibits a scaling law with a drift exponent of 0.5 (slope of green line). The estimated drift component for the USDCHF series is 0.52, which is actually not statistically different from 0.5:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;518&quot; alt=&quot;scalinglaw&quot; width=&quot;487&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/scalinglaw.gif&quot; /&gt;&lt;br /&gt;
For more information see &lt;a href=&quot;http://ideas.repec.org/p/wop/olaswp/_009.html&quot;&gt;Fractals and Intrinsic Time - A Challenge to Econometricians&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.itp.phys.ethz.ch/econophysics/R/&quot;&gt;Here&lt;/a&gt; is the official Rmetrics site.&lt;br /&gt;
&lt;br /&gt;
[1]: see &lt;a href=&quot;http://docubib.uc3m.es/WORKINGPAPERS/WS/ws046315.pdf&quot;&gt;Stochastic Volatility Models and the Taylor Effect&lt;/a&gt;, Alberto Mora-Galán and Ana Pérez and Esther Ruiz&lt;br /&gt;
[2] see &lt;a href=&quot;http://www.rotman.utoronto.ca/~tmccurdy/papers/edmc.pdf&quot;&gt;The Impact of News on Foreign Exchange Rates: Evidence from High Frequency Data&lt;/a&gt;, Dirk Eddelbuettel and Thomas H. McCurdy</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2006 Mahalanobis</dc:rights>
    <dc:date>2006-10-21T21:19:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/2796923/">
    <title>Neat Proofs</title>
    <link>http://mahalanobis.twoday.net/stories/2796923/</link>
    <description>&lt;img title=&quot;&quot; height=&quot;848&quot; alt=&quot;neatproofs&quot; width=&quot;475&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/neatproofs.gif&quot; /&gt;&lt;br /&gt;
Addendum:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;337&quot; alt=&quot;geo03&quot; width=&quot;442&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/geo03.gif&quot; /&gt;&lt;br /&gt;
by Rick Mabry &lt;br /&gt;
&lt;a href=&quot;http://links.jstor.org/sici?sici=0025-570X%28199902%2972%3A1%3C63%3APWW%3C%3E2.0.CO%3B2-O&quot;&gt;Mathematics Magazine, Vol. 72, No. 1. (Feb., 1999), p. 63.&lt;/a&gt;</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2006 Mahalanobis</dc:rights>
    <dc:date>2006-10-12T22:37:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/2684143/">
    <title>Garch-in-mean :: Recursive Estimates</title>
    <link>http://mahalanobis.twoday.net/stories/2684143/</link>
    <description>Finance theory suggests that an asset with a higher perceived risk would pay a higher return on average [&lt;a href=&quot;http://www.techcentralstation.com/080305G.html&quot;&gt;Caution&lt;/a&gt;]. For example, let r&lt;sub&gt;t&lt;/sub&gt; denote the ex post rate of return on some asset minus the return on a safe alternative asset. Suppose that r&lt;sub&gt;t&lt;/sub&gt; is decomposed into a component anticipated by investors at date t-1 (denoted &mu;&lt;sub&gt;t&lt;/sub&gt;) and a component that was unanticipated (denoted u&lt;sub&gt;t&lt;/sub&gt;):&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;38&quot; alt=&quot;garchblog&quot; width=&quot;302&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/garchblog.gif&quot; /&gt;Then the theory suggests that the mean return (&mu;&lt;sub&gt;t&lt;/sub&gt;) would be related to the variance of the return. The GARCH(1,1)-in-mean, or GARCH(1,1)-M, regression model is characterized by&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;145&quot; alt=&quot;garchblogg&quot; width=&quot;302&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/garchblogg.gif&quot; /&gt;&lt;br /&gt;
for &epsilon; i.i.d. with zero mean and unit variance. The effect that higher perceived variability of u&lt;sub&gt;t&lt;/sub&gt; has on the level of r&lt;sub&gt;t&lt;/sub&gt; is captured by the parameter &lt;font color=&quot;green&quot;&gt;&gamma;&lt;/font&gt; (see Hamilton&apos;s &lt;a href=&quot;http://www.amazon.com/Time-Analysis-James-Douglas-Hamilton/dp/0691042896/sr=8-1/qid=1158536684/ref=pd_bbs_1/002-4681870-8859228?ie=UTF8&amp;s=books&quot;&gt;TSA Bible&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
A realization (n = 500) of a Garch(1,1)-M process with &kappa; = 0.005, &gamma; = 2, &omega; = 0.0001, &alpha; = 0.1, &beta; = 0.8, and &epsilon; ~ N(0,1) looks as follows:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;411&quot; alt=&quot;examplegarchm&quot; width=&quot;477&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/examplegarchm.gif&quot; /&gt;&lt;br /&gt;
Unfortunately, I got a GARCH-in-mean effect (&gamma;) of &lt;b&gt;-34&lt;/b&gt; instead of &lt;b&gt;+2&lt;/b&gt; after I estimated the process given above (n=500) with R (&lt;a href=&quot;http://www.r-project.org&quot;&gt;R&lt;/a&gt; uses the &lt;a href=&quot;http://www.doornik.com&quot;&gt;Ox&lt;/a&gt; package with &quot;garchOxFit&quot; command to estimate GARCH models. See &lt;a href=&quot;http://gsbwww.uchicago.edu/fac/ruey.tsay/teaching/bs41202/G@RCH_info.txt&quot;&gt;here &lt;/a&gt;for &quot;garchOxFit&quot; installation instructions for Windows OS.) Estimating the GARCH(1,1)-M coefficient for n=500, 1000, 2000, 3000, ..., 10000 yields the following result:&lt;br /&gt;
&lt;img title=&quot;&quot; height=&quot;465&quot; alt=&quot;garchblog02&quot; width=&quot;495&quot; align=&quot;center&quot; class=&quot;center&quot; src=&quot;http://static.twoday.net/mahalanobis/images/garchblog02.gif&quot; /&gt;&lt;br /&gt;
This would mean that you shouldn&apos;t even think of estimating such a model if you don&apos;t have at least 4000 observations. So far I haven&apos;t seen any applied work where people used more than 1000 observations. How cool is that? Suggestions welcomed.</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2006 Mahalanobis</dc:rights>
    <dc:date>2006-09-17T22:16:00Z</dc:date>
  </item>
  <item rdf:about="http://mahalanobis.twoday.net/stories/2663621/">
    <title>Helmeted cyclists in more peril on the road ?</title>
    <link>http://mahalanobis.twoday.net/stories/2663621/</link>
    <description>&lt;b&gt;timesonline&lt;/b&gt;: Cyclists who wear helmets are more likely to be knocked off their bicycles than those who do not, according to research.&lt;br /&gt;
&lt;br /&gt;
Motorists give helmeted cyclists less leeway than bare-headed riders because they assume that they are more proficient. They give a wider berth to those they think do not look like proper cyclists, including women, than to kitted-out lycra-clad warriors.&lt;br /&gt;
&lt;br /&gt;
Ian Walker, a traffic psychologist, was hit by a bus and a truck while recording 2,500 overtaking manoeuvres. On both occasions he was wearing a helmet.&lt;br /&gt;
&lt;br /&gt;
During his research he measured the exact distance of passing traffic using a computer and sensor fitted to his bicycle.Half the time Dr Walker, of the University of Bath, was bare-headed. For the other half he wore a helmet and has the bruises to prove it.&lt;br /&gt;
&lt;br /&gt;
He even wore a wig on some of his trips to see if drivers gave him more room if they thought he was a woman. They did.&lt;br /&gt;
&lt;br /&gt;
He was unsure whether the protection of a helmet justified the higher risk of having a collision. We know helmets are useful in low-speed falls, and so are definitely good for children.&lt;br /&gt;
&lt;br /&gt;
On average, drivers steered an extra 3.3 in away from those without helmets to those wearing the safety hats. Motorists were twice as likely to pass very close to the cyclist if he was wearing a helmet.&lt;br /&gt;
&lt;br /&gt;
For an excellent discussion, see &lt;a href=&quot;http://www.stat.columbia.edu/~cook/movabletype/archives/2006/09/should_you_wear.html&quot;&gt;here&lt;/a&gt;. &lt;a href=&quot;http://static.twoday.net/mahalanobis/images/geiles_fahrrad.jpg&quot;&gt;Here &lt;/a&gt;is a nice picture of a bike.</description>
    <dc:creator>Mahalanobis</dc:creator>
    <dc:subject>mathstat</dc:subject>
    <dc:rights>Copyright &#169; 2006 Mahalanobis</dc:rights>
    <dc:date>2006-09-13T12:24:00Z</dc:date>
  </item>


<textinput rdf:about="http://mahalanobis.twoday.net/search">
   <title>find</title>
   <description>Search this site:</description>
   <name>q</name>
   <link>http://mahalanobis.twoday.net/search</link>
</textinput>


</rdf:RDF>
