<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>Notebooks   </title>
    <link>http://bactra.org/notebooks</link>
    <description>Cosma's Notebooks</description>
    <language>en</language>

  <item>
    <title>&quot;Occam&quot;-style Bounds for Long Programs</title>
    <link>http://bactra.org/notebooks/2009/04/10#occam-bounds-for-long-programs</link>
    <description>
&lt;P&gt;A common idea in &lt;a href=&quot;learning-inference-induction.html&quot;&gt;machine
learning&lt;/a&gt; is that one can explain, or even prove, Occam's Razor in terms of
algorithmic information content.  This rests on results which say that if one
finds a simple classification rule which works well in-sample, then it is
highly probable that it will continue to work well out-of-sample.  (The
clearest and most elementary explanation of such results I've seen is in Kearns
and Vazirani's &lt;cite&gt;&lt;a href=&quot;../reviews/kearns-vazirani/&quot;&gt;Introduction to Computational Learning Theory&lt;/a&gt;&lt;/cite&gt;.)

&lt;P&gt;I think there are several things wrong with this --- not with the theorem,
which is perfectly valid, but with the argument.
&lt;ol&gt;
&lt;li&gt; Occam's razor is about &lt;em&gt;truth&lt;/em&gt;, not about &lt;em&gt;generalization
performance&lt;/em&gt;.  Generalization can be enhanced by picking a model which you
&lt;em&gt;know&lt;/em&gt; is wrong, if for instance fitting the correct model would subject
one to the curse of dimensionality.  (See e.g. section 2.1 of lecture 23 in
my &lt;a href=&quot;http://www.stat.cmu.edu/~cshalizi/350/&quot;&gt;data-mining course&lt;/a&gt;.)
&lt;li&gt; More generally, this doesn't seem like a very productive way to think
about Occam's Razor.  This should, IMHO, be seen as a property
of &lt;em&gt;methods&lt;/em&gt; rather than of &lt;em&gt;theories&lt;/em&gt;.  That is, the Razor is
the rule which says &quot;among the theories compatible with the evidence, chose the
simplest&quot;, and the question is why this leads to the truth &lt;em&gt;better&lt;/em&gt; than
a rule like &quot;among the theories compatible with the evidence, chose the one
whose statement involves the fewest occurrences of the letter 'e'&quot;, or even
&quot;the one which most glorifies Divine Providence&quot;.
&lt;li&gt; The result seems to hinge on a special way of defining &quot;simple rules&quot;,
when it actually doesn't.
&lt;/ol&gt;

Point (1) is something I've covered in
my &lt;a href=&quot;http://www.stat.cmu.edu/~cshalizi/350/&quot;&gt;data-mining class&lt;/a&gt; (see
e.g. section 2.1 of lecture 23).  Point (2) is something I'm copying from my
friend Kevin Kelly, so I'll
just &lt;a href=&quot;http://www.andrew.cmu.edu/user/kk3n/ockham/Ockham.htm&quot;&gt;refer you
to him&lt;/a&gt;.  Point (3) is what I'll elaborate on here.

&lt;P&gt;The technical results say that a classification rule is simple if it has a
short description, measured in bits.  (That is, we are
in &lt;a href=&quot;mdl.html&quot;&gt;minimum description length land&lt;/a&gt;, or very close to
it.)  The shorter the description, the tighter the bound on the generalization
error.  I am happy to agree that this is a reasonable (if language-dependent)
way of defining &quot;simplicity&quot; for classifier rules.  However, so far as I can
tell, this really isn't what makes the proofs work.

&lt;P&gt;What actually makes the proofs go is the fact that there are not very many
binary strings of length &lt;em&gt;m&lt;/em&gt; for small &lt;em&gt;m&lt;/em&gt;.  Finding a classifier
with a short description means that you have searched over a small space.  It's
the restriction of the search space which really does all the work.  It's not
the &lt;em&gt;simplicity&lt;/em&gt; of the rules which matters, but the fact that simple
rules are scarce in the space of all possible rules.  If confines oneself to
elaborate, baroque rules, but sticks to a &lt;em&gt;particular style&lt;/em&gt; of baroque
elaboration, one obtains the same effect.

&lt;P&gt;For example, suppose we have &lt;em&gt;n&lt;/em&gt; data points for a binary
classification problem.  Enumerate the rules in some order, say lexicographic.
Now consider the set of rules whose serial numbers are
exactly &lt;em&gt;m&lt;/em&gt;&lt;sup&gt;&lt;em&gt;m&lt;/em&gt;&lt;sup&gt;&lt;em&gt;m&lt;/em&gt;&lt;/sup&gt;&lt;/sup&gt;, with &lt;em&gt;m&lt;/em&gt;
being any prime number less than or equal to &lt;em&gt;n&lt;/em&gt;. By the prime number
theorem, there are approximately &lt;em&gt;n&lt;/em&gt;/ln(&lt;em&gt;n&lt;/em&gt;) such prime numbers.
Suppose one of these rules correctly classifies all the data.  The likelihood
of it doing so if its actual error rate were &lt;em&gt;q&lt;/em&gt; is
(1-&lt;em&gt;q&lt;/em&gt;)&lt;sup&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sup&gt;.  By a union bound, the probability that
the actual error rate is &lt;em&gt;q&lt;/em&gt; or more
is &lt;em&gt;n&lt;/em&gt;(1-&lt;em&gt;q&lt;/em&gt;)&lt;sup&gt;&lt;em&gt;n&lt;/em&gt;&lt;/sup&gt;/ln(&lt;em&gt;n&lt;/em&gt;).  Notice that
no matter how low an error rate I demand, I can achieve it with arbitrarily
high confidence by taking &lt;em&gt;n&lt;/em&gt; sufficiently large.  But, notice, most of
the rules involves here have enormous serial numbers, and so must be very long
and complicated programs.  That doesn't matter, because there still just aren't
many of them.  In fact, this argument would still work if I replaced the prime
less than or equal to &lt;em&gt;n&lt;/em&gt; with a &lt;em&gt;random&lt;/em&gt; set, provided the
density of the random set was 1/ln(&lt;em&gt;n&lt;/em&gt;).

&lt;P&gt;There may be something I'm missing here &amp;mdash; that's why this is a note
and not a paper &amp;mdash; but I honestly don't see what.
</description>
  </item>
  </channel>
</rss>
