<?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"
	>

<channel>
	<title>Rudd-O.com &#187; Math</title>
	<atom:link href="http://rudd-o.com/archives/category/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://rudd-o.com</link>
	<description>We only do fun stuff.</description>
	<pubDate>Thu, 02 Oct 2008 13:18:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Google Treasure Hunt 2008: the bot in the checkerboard problem</title>
		<link>http://rudd-o.com/archives/2008/05/18/google-treasure-hunt-2008-the-bot-in-the-checkerboard-problem/</link>
		<comments>http://rudd-o.com/archives/2008/05/18/google-treasure-hunt-2008-the-bot-in-the-checkerboard-problem/#comments</comments>
		<pubDate>Sun, 18 May 2008 16:15:00 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Around the Internets]]></category>

		<category><![CDATA[Google]]></category>

		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2008/05/18/google-treasure-hunt-2008-the-bot-in-the-checkerboard-problem/</guid>
		<description><![CDATA[I have the solution to the bot in the pseudocheckerboard problem for the Google Treasure Hunt 2008 .



(I have munged some of the key points here, so don’t feel sorry if you can’t replicate it.)

It took me moments to figure out that it was not a series problem.  It was immediately obvious to me [...]]]></description>
			<content:encoded><![CDATA[<p>I have the solution to the bot in the pseudocheckerboard problem for the <a href="http://treasurehunt.appspot.com/">Google Treasure Hunt 2008 </a>.</p>

<p><span id="more-1919"></span></p>

<p>(I have munged some of the key points here, so don&#8217;t feel sorry if you can&#8217;t replicate it.)</p>

<p>It took me moments to figure out that it was not a series problem.  It was immediately obvious to me that I needed to count the paths.</p>

<p>It took me an hour to devise a solution in Python with a random bot that traced all possible paths (computationally intractable for 8&#215;8 and bigger checkerboards), and put them into a <code>Set</code>.  The only way to interrupt this program was with Ctrl+C (skip to the end of this article for program listings).</p>

<p>It took me thirty minutes to devise a much faster, deterministic recursive solution in Python which essentially acts as a lazy tree lookup, which is also computationally intractable for 12&#215;12 and bigger checkerboards.</p>

<p>It took me twenty minutes to reduce this solution to a two-variable recursive by-parts function that I couldn&#8217;t simplify to a sum or a product or any other computationally tractable form.  It&#8217;s not impossible to do, because there IS a way to do it, but my limited math skills didn&#8217;t allow me.  In essence, my program is just this:</p>

<pre><code>f(0,0) = 0
f(m,0) = 1
f(1,n) = 1
f(m,n) = [not gonna tell you]
</code></pre>

<p>It took me another thirty minutes to dabble in freshly installed Haskell and Scilab, but Scilab was impossible to use and Haskell (while letting me declare a function by parts) was just ten times slower than Python.  So much for functional languages.</p>

<p>However, my last Python solution allowed me to generate a permutation of tables with OO.o and discover that there IS a progression embedded in the tables, and that said progression needs to be folded unto itself several times (the length of the progression and the number of folds are equal to the dimensions of the checkerboard).  I reverse-engineered the progression using OO.o formulas.  This is how one of the tables looks.</p>

<pre><code>./googlebotproblem 7 4
[1, 1, 1, 1]
[1, 2, 3, 4]
[...snipped...]
84
</code></pre>

<p>Once I figured it out, I wrote a ten-liner Python script that replayed the OO.o formulas onto a row of data.  Lo and behold, in less than a second I had the answer.</p>

<p>Other people just coded the <em>exact</em> same algorithm I devised for trees, but with a twist: they used a cache to speed up computation.  Never occurred to me &#8212; it should have.  However, I have yet to see someone who actually folded the problem into a formula, nor have I seen anyone who figured out the series trick.</p>

<p>I still don&#8217;t know how to fold that formula into a computationally feasible one.  Dear Lazyweb, care to enlighten me?</p>

<h2>Source code</h2>

<p>This is the source code of the three problems, in one file:</p>

<p><pre>#!/usr/bin/env python</pre></p>

<p>import sys</p>

<p>from random import choice
from sets import Set</p>

<p>rows = int(sys.argv[1])
columns = int(sys.argv[2])</p>

<p>class OutOfBounds(Exception): pass
paths = Set()
def generate_path():
    cols = columns
    row = 1
    col = 1
    path = []
    while not ( row == rows and col == cols ):
        if row == rows: movement = "right"
        elif col == cols: movement = "down"
        else: movement = choice(["down","right"])
        if movement == "down":  row = row + 1
        else:               col = col + 1
        path.append(movement)
    return path</p>

<p>def stumble():
    try:
        while True:
            try:
                path = generate_path()
                paths.add(" ".join(path))
                print len(paths)
            except OutOfBounds, e: pass
                #print "killed:",e
    except KeyboardInterrupt:
        paths = [ p for p in paths ]
        paths.sort()
        for p in paths:
            print p</p>

<h1>recursive solution</h1>

<p>def rec(row,column):
    # breakaway condition
    if row == 1 and column == 1: return 0
    # options where there is only one possible path
    if row == 1 or column == 1: return 1
    recs = [...munged...]
    return sum(recs)</p>

<h1>table solution</h1>

<p>def rowize(row):
    newrow = [1]
    for n in [...munged...]
        [...munged...]
    return newrow</p>

<p>def calculate(rows,columns):
    row = [1] * columns
    for n in [...munged...]
        row = rowize(row)
    return row[-1]</p>

<h1>print stumble(rows,columns)</h1>

<h1>print rec(rows,columns)</h1>

<p>print calculate(rows,columns)</p>

<h1>a solution with memoize to not explore alternative routes</h1>

<p>cache = {}</p>

<h1>Removed, sorry!</h1>

<p>print count(rows,columns)</p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2008/05/18/google-treasure-hunt-2008-the-bot-in-the-checkerboard-problem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Amazingly cool Internet filter against stupidity!</title>
		<link>http://rudd-o.com/archives/2007/11/12/amazingly-cool-math-against-stupidity/</link>
		<comments>http://rudd-o.com/archives/2007/11/12/amazingly-cool-math-against-stupidity/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 23:12:42 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Around the Internets]]></category>

		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Haha!]]></category>

		<category><![CDATA[Math]]></category>

		<category><![CDATA[Morons]]></category>

		<category><![CDATA[Software bacán]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2007/11/12/amazingly-cool-math-against-stupidity/</guid>
		<description><![CDATA[If you ever had to undergo the horrible torture that is reading YouTube comments, you can now rest safe and sound, knowing that rampant stupidity will soon be a thing of the past, thanks to Bayesian probabilities.



The system in question that will deliver us from stupid is called (somewhat appropriately, would you say?) StupidFilter, and [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever had to undergo the horrible torture that is reading YouTube comments, you can now rest safe and sound, knowing that rampant stupidity will soon be a thing of the past, thanks to Bayesian probabilities.</p>

<p><span id="more-1815"/></p>

<p>The system in question that will deliver us from stupid is called (somewhat appropriately, would you say?) <a href="http://stupidfilter.org/main/index.php?n=Main.Status">StupidFilter</a>, and has been in development for a while now.</p>

<p>It consists of a rather dumb Bayesian system — the exact opposite of an expert system, which consists of brute-forcing a corpus of data and inferring useful information from the corpus without contextual understanding.  In other words, it’s a giant, incredibly stupid but learning machine that is being trained to identify the stupid out of a quarter of a million wastes of time pulled straight out of (wait for it) YouTube itself!</p>

<p>How it works is rather simple.  Given a large amount of comments ranked smart to stupid, it identifies the chance that a particular word is in a stupid comment.  Example: if the word <em>moran</em> frequently appears in comments deemed stupid, then future comments with that word will be deemed stupid.  Bayesian filtering was suggested first by Paul Graham in his now-famous essay <a href="http://www.paulgraham.com/spam.html">A plan for spam</a>, and (perhaps due to its dead-simple mathematical ruthlessness, perhaps because it works like a charm) is now in use for antispam systems in both mail servers and the Akismet blog commenting filter.</p>

<p>At the moment, there’s not much from the project to showcase, except for a damn <a href="http://stupidfilter.org/random.php">hilarious stupid randomizer</a> that will let you spend countless hours and inches of eyelashes at your computer, marveling at the utter inanity of regular YouTubers.  It cracked the fuck me up — and it’s feature-complete, down to the customary big MOAR button!</p>

<p>Let’s hope they deliver a solution soon.  I can’t wait to plug it into my blog and clean up comments en masse.</p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2007/11/12/amazingly-cool-math-against-stupidity/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Retiran lotería por persistente imbecilidad de los compradores&#8230;</title>
		<link>http://rudd-o.com/archives/2007/11/05/retiran-loteria-por-persistente-imbecilidad-de-los-compradores/</link>
		<comments>http://rudd-o.com/archives/2007/11/05/retiran-loteria-por-persistente-imbecilidad-de-los-compradores/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 21:44:53 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Curiosidades]]></category>

		<category><![CDATA[Haha!]]></category>

		<category><![CDATA[Math]]></category>

		<category><![CDATA[Morons]]></category>

		<category><![CDATA[Sucks!]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2007/11/05/retiran-loteria-por-persistente-imbecilidad-de-los-compradores/</guid>
		<description><![CDATA[…en Manchester.  El antedicho lotto se ganaba al raspar un número menor que el mostrado.  Miles de imbéciles reclamaron, argumentando que -5 era menor que -6.



Por supuesto, el mero hecho de que alguien compre lotería ya es evidencia de que es menos inteligente que el promedio, pero el comentario de esta enojadísima tarada [...]]]></description>
			<content:encoded><![CDATA[<p>…en Manchester.  <a href="http://www.manchestereveningnews.co.uk/news/s/1022757_cool_cash_card_confusion">El antedicho lotto</a> se ganaba al raspar un número menor que el mostrado.  Miles de imbéciles reclamaron, <strong>argumentando que -5 era menor que -6</strong>.</p>

<p><span id="more-1803"/></p>

<p>Por supuesto, el mero hecho de que alguien compre lotería ya es evidencia de que es menos inteligente que el promedio, pero el comentario de esta enojadísima tarada no tiene precio:</p>

<blockquote>“I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I’m not having it. </blockquote>

<p>Dicho en español:</p>

<blockquote>“Telefoneé a Camelot y me trataron de entucar con un cuento de que -6 es mayor que -8, pero a mí no me van a engañar con esa huevada. </blockquote>

<p>Imbécil.</p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2007/11/05/retiran-loteria-por-persistente-imbecilidad-de-los-compradores/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dating pools</title>
		<link>http://rudd-o.com/archives/2007/09/13/dating-pools/</link>
		<comments>http://rudd-o.com/archives/2007/09/13/dating-pools/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 00:13:44 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Cool]]></category>

		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2007/09/13/dating-pools/</guid>
		<description><![CDATA[Hilarious.  Can’t help but think at least some part of me must agree.  XKCD always makes great strips, and I highly recommend them for those of us who enjoy math:





Of course, if you want to read the alternative text on the image, you must head to the site.
]]></description>
			<content:encoded><![CDATA[<p>Hilarious.  Can’t help but think at least some part of me must agree.  <a href="http://xkcd.com">XKCD</a> always makes great strips, and I highly recommend them for those of us who enjoy math:</p>

<p><span id="more-1675"/></p>

<p><img src="http://rudd-o.com/wp-content/uploads/2007/09/dating_pools.png" alt="Dating pools"/></p>

<p>Of course, if you want to read the alternative text on the image, you must <a href="http://xkcd.com/314/">head to the site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2007/09/13/dating-pools/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dos mas dos</title>
		<link>http://rudd-o.com/archives/2007/07/19/dos-mas-dos/</link>
		<comments>http://rudd-o.com/archives/2007/07/19/dos-mas-dos/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 07:03:18 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Math]]></category>

		<category><![CDATA[Religión y fe]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2007/07/19/dos-mas-dos/</guid>
		<description><![CDATA[Esta es la gama de aritméticas — de los creyentes a los ateos:



Fundamentalistas

Creen que 2 + 2 = 5, porque Así Está Escrito.  En algún papel.  Obviamente tienen problemas a la hora de ajustar sus cuentas.

Creyentes “moderados”

Viven sus vidas basándose en que 2 + 2 = 4, pero regularmente van a una iglesia [...]]]></description>
			<content:encoded><![CDATA[<p>Esta es la gama de aritméticas — de los creyentes a los ateos:</p>

<p><span id="more-1605"/></p>

<h2>Fundamentalistas</h2>

<p>Creen que 2 + 2 = 5, porque Así Está Escrito.  En algún papel.  Obviamente tienen problemas a la hora de ajustar sus cuentas.</p>

<h2>Creyentes “moderados”</h2>

<p>Viven sus vidas basándose en que 2 + 2 = 4, pero regularmente van a una iglesia a escuchar que 2 + 2 = 5, o algún día será 5, o que “muy en el fondo, simbólica y espiritualmente” es 5.</p>

<h2>Ateos “moderados”</h2>

<p>Saben que 2 + 2 = 4, pero creen que es mala educación decirlo en voz alta porque los que creen que 2 + 2 = 5 se pueden ofender.</p>

<h2>Ateos “militantes”</h2>

<p><q>Por lo que más quieran, maldita sea… dos manzanas aquí, dos manzanas acá, <strong>cuatro</strong>!  ¿Qué rayos les pasa?  ¿Tienen el cerebro defectuoso?</q></p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2007/07/19/dos-mas-dos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Review de Junio 5 en mi blogroll</title>
		<link>http://rudd-o.com/archives/2007/06/05/review-de-junio-5-en-mi-blogroll/</link>
		<comments>http://rudd-o.com/archives/2007/06/05/review-de-junio-5-en-mi-blogroll/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 03:30:05 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Haha!]]></category>

		<category><![CDATA[Math]]></category>

		<category><![CDATA[Mi país]]></category>

		<category><![CDATA[Society]]></category>

		<category><![CDATA[Sucks!]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2007/06/05/review-de-junio-5-en-mi-blogroll/</guid>
		<description><![CDATA[Dos artículos.  Uno para llorar, otro para reír:




¿Cuánto dinero gastamos en comida?  Andufo nos muestra en fotos lo que gastan las familias de varios países para alimentarse cada semana.  Bonus: está el Ecuador con su dieta de cretinismo, y Chad, con su dieta de… ehhh, ¿aire?.  Ese es el post para [...]]]></description>
			<content:encoded><![CDATA[<p>Dos artículos.  Uno para llorar, otro para reír:</p>

<p><span id="more-1552"/></p>

<ol>
<li><em>¿Cuánto dinero gastamos en comida?</em>  <a href="http://andufo.com/">Andufo</a> nos muestra en fotos <a href="http://andufo.com/posts/gasto-promedio-semanal-de-alimentos-por-familia-en-varias-naciones-alrededor-del-planeta/">lo que gastan las familias de varios países para alimentarse</a> cada semana.  Bonus: está el Ecuador con su dieta de cretinismo, y Chad, con su dieta de… ehhh, ¿aire?.  Ese es el <em>post</em> para llorar — a no ser que les provoque un chance de risa la dieta del ecuatoriano, o las bielas del alemán.</li>
<li><em>¿Recuerdan las matemáticas del colegio?</em>  Nita nos muestra <a href="http://nitadp.blogspot.com/2007/06/respuestas-creativas-en-un-examen.html">formas “creativas” de resolver problemas matemáticos</a>.  Obviamente con este se van a descoser de la risa.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2007/06/05/review-de-junio-5-en-mi-blogroll/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Más bruto, más religioso</title>
		<link>http://rudd-o.com/archives/2007/01/18/mas-bruto-mas-religioso/</link>
		<comments>http://rudd-o.com/archives/2007/01/18/mas-bruto-mas-religioso/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 20:26:40 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Math]]></category>

		<category><![CDATA[Religión y fe]]></category>

		<category><![CDATA[Science]]></category>

		<category><![CDATA[Yo]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2007/01/18/mas-bruto-mas-religioso/</guid>
		<description><![CDATA[Acabo de enterarme de algo que yo sospechaba, pero que recién ahora se confirma.



En su libro The God Delusion, Dawkins dice:

On the subject of religion and IQ, the only meta-analysis known to me was published by Paul Bell in Mensa Magazine in 2002 (Mensa is the society of individuals with a high IQ, and their [...]]]></description>
			<content:encoded><![CDATA[<p>Acabo de enterarme de algo que yo sospechaba, pero que recién ahora se confirma.</p>

<p><span id="more-1334"/></p>

<p>En su libro <em>The God Delusion</em>, Dawkins dice:</p>

<blockquote>On the subject of religion and IQ, the only meta-analysis known to me was published by Paul Bell in Mensa Magazine in 2002 (Mensa is the society of individuals with a high IQ, and their journal not surprisingly includes articles on the one thing that draws them together).57 Bell concluded: ‘Of 43 studies carried out since 1927 on the relationship between religious belief and one’s intelligence and/or educational level, all but four found an inverse connection. That is, the higher one’s intelligence or education level, the less one is likely to be religious or hold “beliefs” of any kind.’
</blockquote>

<p>Dicho de otra forma: hay una correlación inversa entre “creyente” e “inteligente”.  Este resultado se deriva de un meta-estudio serio que revisó 43 estudios diferentes desde el año 1927.</p>

<p>Si no sabes estadística, esto significa que: <em>mientras más bruto eres, más probable es que seas religioso</em>.</p>

<p>Tiene lógica, ¿no?  Si eres bruto, es probable que creas cualquier huevada que te han dicho, en lugar de preguntarte “¿es eso cierto?”.  Esa es casi casi la misma definición de la palabra <em>bruto</em>.</p>

<p>Nótese que ni yo digo, ni el estudio dice que todos los religiosos son brutos, ni que todos los ateos son inteligentes.  Hay excepciones: algunos religiosos son muy inteligentes, y algunos ateos son unas bestias.  Los que no son excepciones… bueno, pues, conforman a la regla que el estudio descubrió.</p>

<p>Si te sientes insultado por este artículo, bueno, al menos lo entendiste, así que no eres bruto.  Ahora te toca comenzar a cuestionar tus creencias, a ver si son ciertas o papanoelescas.</p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2007/01/18/mas-bruto-mas-religioso/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Matemáticas, academia, hombres y mujeres</title>
		<link>http://rudd-o.com/archives/2006/10/22/matematicas-academia-hombres-y-mujeres/</link>
		<comments>http://rudd-o.com/archives/2006/10/22/matematicas-academia-hombres-y-mujeres/#comments</comments>
		<pubDate>Mon, 23 Oct 2006 03:32:53 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Math]]></category>

		<category><![CDATA[Mujeres]]></category>

		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2006/10/22/matematicas-academia-hombres-y-mujeres/</guid>
		<description><![CDATA[Por centurias, muchos hombres (y mujeres) han opinado que las mujeres son una especie de ser inferior, más bruto y débil que el hombre.  Naturalmente, este pensamiento ha sido utilizado para justificar toda clase de estupideces.



Claro, reconocer esto en público, hoy, sería sepultarse bajo varias toneladas de incorrección política.  Por consiguiente, esta imbécil [...]]]></description>
			<content:encoded><![CDATA[<p>Por centurias, muchos hombres (y mujeres) han opinado que las mujeres son una especie de ser inferior, más bruto y débil que el hombre.  Naturalmente, este pensamiento ha sido utilizado para justificar toda clase de estupideces.</p>

<p><span id="more-1193"/></p>

<p>Claro, reconocer esto en público, hoy, sería sepultarse bajo varias toneladas de incorrección política.  Por consiguiente, esta imbécil ideología ha cambiado gradualmente: la última “moda” en línea con esta ideología es el famoso aserto “las mujeres son buenas para las palabras, los hombres buenos para los números” y enteleqias relacionadas, coronadas con alguna estúpida explicación que está radicada en “genes” o algo igualmente lapidario.</p>

<p>Afortunadamente, todavía tenemos gente que continúa trabajando para investigar y descubrir la verdad.  Resulta que <a href="http://www.sciencemag.org/cgi/content/full/314/5798/435">un artículo de la revista Science relata un experimento</a>:</p>

<ul>
<li>a un grupo de mujeres se les hizo tomar un test de matemáticas,</li>
<li>después, a cada una se le dio un “paper”; algunos papers decían que decía “las diferencias en habilidad matemática entre sexos están relacionadas con los genes”, otros decían que “las diferencias observadas eran cuestión de práctica y experiencia”, y un tercero no se pronunciaba en ninguna dirección,</li>
<li>finalmente se les hizo tomar un segundo test de matemáticas.</li>
</ul>

<p>Resultado: las mujeres que leyeron el paper que explicaba la “incapacidad” de las mujeres en los genes ejecutaron su segundo test significativamente peor que las otras.</p>

<p>Conclusiones?  No seas vago — ese es mi trabajo — y déjamelas como comentarios.</p>

<p><em>Visto en <a href="http://www.srcf.ucam.org/~hmw26/join-the-dots/2006/10/21/stereotypes-causes-and-math-performance/">un artículo de Hanna Wallach</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2006/10/22/matematicas-academia-hombres-y-mujeres/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blogs, matemáticas y el teorema de la cola larga</title>
		<link>http://rudd-o.com/archives/2006/08/19/blogs-matematicas-y-el-teorema-de-la-cola-larga/</link>
		<comments>http://rudd-o.com/archives/2006/08/19/blogs-matematicas-y-el-teorema-de-la-cola-larga/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 14:07:45 +0000</pubDate>
		<dc:creator>Rudd-O</dc:creator>
		
		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://rudd-o.com/archives/2006/08/19/blogs-matematicas-y-el-teorema-de-la-cola-larga/</guid>
		<description><![CDATA[Hoy vamos a estudiar matemáticas.  Más exactamente, las matemáticas de esta página: BloGalaxia.com : Directorio y Buscador de Blogs Latinos - Ranking.



Como sabrán, BloGalaxia es un sitio que le lleva la pista a cantidad de blogs alrededor del mundo — aunque cabe recalcar que no es ni una gota de agua al lado de, [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy vamos a estudiar matemáticas.  Más exactamente, las matemáticas de esta página: <a href="http://www.blogalaxia.com/top100.php?top=1">BloGalaxia.com : Directorio y Buscador de Blogs Latinos - Ranking</a>.</p>

<p><span id="more-1088"/></p>

<p>Como sabrán, BloGalaxia es un sitio que le lleva la pista a cantidad de blogs alrededor del mundo — aunque cabe recalcar que no es ni una gota de agua al lado de, por ejemplo, Technorati.  En la página enlazada, podrán ver una lista de blogs populares, desde el top 1 hacia abajo, junto con el número de visitas en un espacio X de tiempo (que para el efecto no interesa).  Ahora, dibujado en un gráfico de barras, veamos cómo se distribuyen:</p>

<p class="centered"><img src="http://rudd-o.com/wp-content/uploads/images/z-distribution-blogs.png" alt="Dibujada en un gráfico, la distribución de visitas en los blogs listados en BloGalaxia" width="468" height="276"/><br /><em>Dibujada en un gráfico, la distribución de visitas en los blogs listados en BloGalaxia</em></p>

<p>Fíjense en el primer lugar (más a la izquierda).  ¿Se dan cuenta de la diferencia con respecto del segundo?  ¿Y de la diferencia del segundo con respecto del tercero?  Y así sucesivamente.</p>

<p>¿A qué les recuerda?  ¿Se acuerdan de sus clases de estadística?  Pues es la distribución Zipf.  Esto fue descubierto por algunas personas, pero mi análisis favorito <a href="http://www.useit.com/alertbox/traffic_logs.html">es el de Jakob Nielsen</a>, y es popularmente conocido como “la cola larga”, porque el gráfico tiene una cola, ehm, pues, ¡larga!.</p>

<p><em>Nota: los gráficos en Nielsen tienen una curva más o menos plana porque el eje Y está en escala logarítimica/exponencial.</em></p>

<p>El teorema de la cola larga (así se llama) dice que: <em>En cualquier sistema de elecciones libres, dada una cantidad X de elecciones y N de votantes, los votos se distribuirán de acuerdo a una distribución Z</em>.  Dicho en español, 1/x (1 sobre X).  Okey, eso no fue español.  Pero básicamente, el primer escaño recibirá más o menos el doble de “votos” que el segundo, y así sucesivamente (esto es una sobresimplificación, y seguro vendrá el Ing. Maldonado a cortarme la cabeza por decir esto, pero bueh… algún día tenía que pasar, ¿no?).</p>

<p>Esto aplica a las páginas Web.  Esto aplica a los blogs.  Esto aplica a la distribución de visitantes entre páginas específicas de sus blogs.  Esto aplica para la circulación de periódicos.  Esto aplica a las elecciones.  Esto aplica a la distribución de amigos en la vida real.</p>

<p>Esto explica por qué los países con un sistema político bipartisano no pueden salir de él.  Esto explica matemáticamente por qué los países como el nuestro no pueden salir del relajo político en el que estamos (básicamente porque quien está en la posición 2, 3 o 4 no tiene esperanzas de llegar a la posición 1 — ¡miren el gráfico, no miente!).</p>

<p>Hay otras cosas que se pueden derivar de aquí.  Sólo listaré unas cuantas por el momento:</p>

<ul>
<li>Esperar crecimiento continuo en un portal es soñar: eventualmente se llega a un escaño de la distribución Zipf.  Generalmente el primer escaño lo ocupa un servicio extremadamente popular que explotó, o un servicio que siempre fue líder.</li>
<li>¿Recuerdan la famosa ley de Pareto?  ¿La ley del 80%/20%?  Responde a una curva de Zipf también.  El 20% de los sitios (opciones) se llevan el 80% de los visitantes (votos).</li>
</ul>

<p>A tí, lector, te convido a que hagas un grafiquito en Excel, y veas cuáles páginas de tu sitio son más populares, y cuáles no, y cómo se ve el gráfico de páginas versus popularidad.  Descubrirás cosas fantásticas.</p>
]]></content:encoded>
			<wfw:commentRss>http://rudd-o.com/archives/2006/08/19/blogs-matematicas-y-el-teorema-de-la-cola-larga/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
