<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by data crunch on Medium]]></title>
        <description><![CDATA[Stories by data crunch on Medium]]></description>
        <link>https://medium.com/@macardifashion?source=rss-123337baa169------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Buzptx0IvhqzkrUnMxx6qQ.png</url>
            <title>Stories by data crunch on Medium</title>
            <link>https://medium.com/@macardifashion?source=rss-123337baa169------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:07:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@macardifashion/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cambiamos de sitio…]]></title>
            <link>https://medium.com/@macardifashion/cambiamos-de-sitio-cb6dc70581bb?source=rss-123337baa169------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb6dc70581bb</guid>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[probabilidad]]></category>
            <category><![CDATA[datacruch]]></category>
            <category><![CDATA[estadística]]></category>
            <dc:creator><![CDATA[data crunch]]></dc:creator>
            <pubDate>Sun, 04 Aug 2019 11:35:56 GMT</pubDate>
            <atom:updated>2019-08-04T11:35:56.733Z</atom:updated>
            <content:encoded><![CDATA[<p>Hola a todos nuestros seguidores. Nuestro blog ahora estará en <a href="https://medium.com/@datacrunchteam">https://medium.com/@datacrunchteam</a> Esperamos que nos sigan, nos lean, nos compartan y nos escriban en nuestra nueva dirección! Somos datacrunch team!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*5CZ4qS9M-mcKnaS33FExDQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb6dc70581bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A formula to defeat Thanos!]]></title>
            <link>https://medium.com/@macardifashion/a-formula-to-defeat-thanos-a35120313edb?source=rss-123337baa169------2</link>
            <guid isPermaLink="false">https://medium.com/p/a35120313edb</guid>
            <category><![CDATA[rstats]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[data crunch]]></dc:creator>
            <pubDate>Sun, 14 Jul 2019 17:21:52 GMT</pubDate>
            <atom:updated>2019-07-14T17:21:52.621Z</atom:updated>
            <content:encoded><![CDATA[<p>In consideration of the past premiere of End Game, today we will to calculate the probability of defeat Thanos. If you have not watched the MCU movies, run to watch them! If you have no time, <a href="https://youtu.be/XLs_Lus68X0">here</a> is a very complete summary of Infinity War.</p><p>Before start our calculus path we need to make a <strong>Spoiler Alert</strong>. If you keep reading without have seen the previous films you could be spoiled.</p><h3>First Scene: Dr Strange and the possible universes.</h3><p>This speculation begins far far away, in the planet Titan, the Thanos ancient home; there are some of our heroes together because the plot brought them there. At one point they notice that Dr Strange is having seizures of infinity, and when they ask if he is fine he answer with one of the biggest enigmas of the whole saga.</p><p>“I went forward in time to view alternate futures to see all the possible outcomes of the coming conflict.” — says Dr Strange.</p><p>“How many did you see?” — asks Chris Pratt.</p><p>“14000605” — answers the Dr.</p><p>“How many did we win?” — asks Ironman.</p><p>“One” — answers Dr. Strange while there sounds the most epic music of the world!</p><p>So that, the conflict has 14000605 <em>possible endings</em>, and only in one they manage to defeat Thanos. This way, the win probability is 1/14000605, didn’t? That’s all folks.</p><p>Well, no! because the choice of this scenario is not random. Some <em>endings</em> are more likely than others and there are also some impossible. So, this number don’t means a lot. It means that exists one unique chain of events in which Thanos is defeated, but no more. Unless the doctor had told us lies.</p><p>About the theories generated from the number 14000605 it’s possible find the details <a href="https://youtu.be/woiBsYv1qDs">here</a></p><p>Now, let’s teke the only timeline when Thanos is defeated. Let suppose reasonably that in this timeline Thanos takes the infinity stones, kills the half of life and the heroes who are still alive using the dragon balls manage to defeat him and bring all the dead back to life.</p><p>In this universe, we can see the living and death heroes like a binary vector, where 1 means the hero is alive and 0 means isn’t. In this case we have this:</p><p><strong>Character Lives</strong></p><p>Falcon</p><p>0</p><p>Bucky</p><p>0</p><p>Hulk</p><p>1</p><p>T’Challa</p><p>0</p><p>Nebula</p><p>1</p><p>Shuri</p><p>0</p><p>Scarlet Witch</p><p>1</p><p>Vision</p><p>0</p><p>Okoye</p><p>1</p><p>Wong</p><p>1</p><p>Strange</p><p>0</p><p>Drax</p><p>0</p><p>Rocket</p><p>1</p><p>Mantis</p><p>0</p><p>War Machine</p><p>1</p><p>Ironman</p><p>1</p><p>Cap. América</p><p>1</p><p>Thor</p><p>1</p><p>Peter Quill</p><p>0</p><p>Gamora</p><p>0</p><p>Black Widow</p><p>1</p><p>Spiderman</p><p>0</p><p>Groot</p><p>0</p><p>Thanos</p><p>1</p><p>This, considering the movie poster characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/1*QsfWTPA-nuttjzsaQeMUAQ.jpeg" /></figure><h3>Second scene: The Thanos purpose</h3><p>In Avengers Infinite War the Thanos purpose is very clear: eliminate the half of the life to decrease the resource consumption in the universe. Although he could have increased the resources ton double or modify life for less resource consumption, this genocide option was which him judged better and we don’t will discus this here.</p><p>However, is very remarkable that the choice process elected by Thanos is random. Let’s say that he could eliminate half of life by multiple criteria, (one of them the resourse consumption, keeping alive the less consumer beings, having a major impact). Nevertheless, the use of other choice criteria could break many ecosystem balances, which is not correct, according Thanos. So that, the elimination of living beings is made though a random choice system, where each living thing has a probability of 0.5 of survive or dead.</p><p>Connecting this with that previous, the process of selection of the main characters who still alive is random, and is possible to picture it like a random choice of a binary vector between all possible binary vectors, bringing down the problem to a combinatorical issue.</p><h3>Third scene: The calculation</h3><p>Then, the situation of the MCU before End Game is:</p><p>There is a unique possible future where Thanos is defeated. We can define this future according to the main characters dead an alive in the random choice elimination process. The probability of dead in this genocide process is 0.5 for each characters, except Gamora who is already dead.</p><p>This way, the probability of defeat for Thanos is equal to the probability of when selecting randomly the remaining heroes they match with those alive in the specific future visited by Strange.</p><p>Then, being the random variable of Thanos defeat, and , the probability of death of each main character, calculated over the 23 main characters in the movie poster (excluding Gamora whose death is not part of the random choice process), then the probability of defeat is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*HolRMbYxtb0ThcFLXKAF9g.png" /></figure><h3>Last scene</h3><p>We could go deeper in this analysis because there are many factors that can change the result in a significant way. Some of them are:</p><ul><li>If Strange did not know about the existence of Cap Marvel probably underestimate (in statistic terms) the victory scenarios.</li></ul><p>There is not a unified absolute criteria to support the use of the poster main characters.</p><p>The probability is calculated a priori, nevertheless, since the experiment (random genocide) was already executed, the probability in this moment is 1 or 0, unless we are in a bayesian perspective.</p><p>Because all these factors and situations that could occur and we will know soon, is that today we present to you a formula to defeat Thanos. How many others can be created? It’s a probabilistic issue!</p><p>What would be the probability of finding us at the movies?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a35120313edb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Happy though undecided !]]></title>
            <link>https://medium.com/@macardifashion/happy-though-undecided-2abda2453a76?source=rss-123337baa169------2</link>
            <guid isPermaLink="false">https://medium.com/p/2abda2453a76</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[monty-hall]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[data crunch]]></dc:creator>
            <pubDate>Mon, 10 Jun 2019 23:46:05 GMT</pubDate>
            <atom:updated>2019-06-10T23:46:05.907Z</atom:updated>
            <content:encoded><![CDATA[<h3><a href="https://dictionary.cambridge.org/es/diccionario/ingles-espanol/happy">Happy</a> <a href="https://dictionary.cambridge.org/es/diccionario/ingles-espanol/though">though</a> <a href="https://dictionary.cambridge.org/es/diccionario/ingles-espanol/undecided">undecided</a> !</h3><p>Statistics with all its formulas, can take us from the exact world to the philosophy world with thoughts about our life.</p><p>Lets suppose we have a glass made of opaque material and we put a couple of dice inside, then we turn it over a table.</p><p>The amount shown by the dice under the glass is an integer between 2 and 12. But is that a random variable?</p><p>For some, not since the dice have already fallen and the number, although unknown, is fixed and deterministic. The perspective that shows us that reality produces unknown fixed quantities that we can try to discover, is called frequentist.</p><p>Others say that it does not matter if the experiment has already happened or not, but the amount of information we have about it. For them, if we can not see the dice, the number of points is a random variable. That is, reality produces known random quantities of which we have some information, but we do not know their value, because they are random. This is the Bayesian perspective.</p><p>The question then is: By changing the information we have, without changing reality, does the system of probabilities around an event change?</p><p>The answer to this question is contained in a great probabilistic challenge: The problem of Monty Hall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uc9oTfsR3SqFlSuHGIfhrQ.png" /></figure><p>This mathematical problem of probability is based on the American television contest called “Let’s Make a Deal” created in 1963 and which was issued until 2009. In this contest three doors were closed and the contestants had to choose a door. That chosen door would not be open but the presenter would open a door that always had a goat. The presenter then gave the contestant the option to change his chosen door or ratify his choice. Once the contestant made the decision to stay with his door or change for the other, the chosen door was opened and the contestant took his prize: A goat or a car.</p><p>First, with a discarded door, the probability of winning between two options makes us think as if it were the launch of a coin where there are only two options: Face and Seal, that is, ½ and ½, but this is not like that. Here are the doubts: If I only have two doors randomly assigned, how come the odds are not the same?</p><p>If the probability has no memory, why open a door changes the probability of winning? Are not probabilities supposed to remain immutable over time? Does the probability of an event depend more on the information we have about it than on the conditions in which it occurs?</p><p>The probability distribution of the doors is not face and seal. Actually there are three options and the probability of winning if we change the door is higher than if we do not change it. Let’s see why.</p><p>To solve the problem we can start by writing the probability that the car is behind any of the doors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*5tJRly7OCokw1FkuoOpL2Q.png" /></figure><p>Then we add the contestant’s choice, which we will say, is also random.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*k6PG_uO7pT9cl-4ss-0jMg.png" /></figure><p>After the contestant chooses a door, the presenter chooses another one and opens it. Of course, the car is never there. Surprise! A goat appears. Then the presenter gives the contestant the opportunity to change their chosen door. So here we have two different alternatives. Taking into account that there is an open door with a goat, we can see what happens in the case in which the contestant keeps his choice or in the case where he changes the door, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*tVDGGddMvHbk1fLGyKsYTg.png" /></figure><p>Which is a very different scenario than:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*RasexhBpf5OVpDlZf2HMuw.png" /></figure><p>In the graphs where the choice does not change, the probability of winning is 1/3 which is obtained by adding the final probability in all the lines that it gains, which gives 3/9, while with a similar calculation, the case in which it changes the door, the probability is 2/3.</p><p>Now, if we see it as the probability of mutually exclusive events, then we have three events:</p><p>A = Player selects the door with the car initially.</p><p>B = Player selects a door with goat initially.</p><p>G = Winning the car.</p><p>And the formula for the probability of winning will be:</p><p>P (G) = P (A ∩G) U (B ∩G)</p><p>P (G) = P (A) .P (G | A) + P (B) .P (G | B)</p><p>And the chances of selecting the door with the car or a door with goat are:</p><p>P (A) = 1/3</p><p>P (B) = 2/3</p><p>Now let’s see the winning probability of a player that does not change his decision:</p><p>P (G | A) = 1</p><p>P (G | B) = 0</p><p>P (G) = P (A) .P (G | A) + P (B). P (G | B)</p><p>P (G) = 1/3. 1 + 2/3. 0 = 1/3</p><p>As we appreciate, the probability of winning, given that the contestant selects the door with the car (A) and does not change his decision, will be 1, as well as the probability of winning if he selects a door with a goat (B) and does not change his decision, will be 0.</p><p>Applying the formula, we see that the probability of winning the car without changing the decision is 1/3</p><p>And what is the probability of winning of a player that changes his decision?</p><p>P (G | A) = 0</p><p>P (G | B) = 1</p><p>P (G) = P (A) .P (G | A) + P (B) .P (G | B)</p><p>P (G) = 1/3. 0 + 2/3. 1 = 2/3</p><p>As we can see, the probability of winning if he selects a door with a goat (B) but changes his decision, will be 1 and the probability of winning if he selects the door with the car (A) and changes his decision, will be zero.</p><p>Applying the formula, we see that the probability of winning the car changing the decision is 2/3 and is greater than the probability of winning without changing the decision.</p><p>Although at first the problem seems complex, it is much simpler than life itself. In the problem of Monty Hall it is clear what the prize is. It is a modern car which is much more exciting than winning a goat. But in our lives full of options or paths to take, how to know which decision is better than another?</p><p>If life were like Monty Hall’s problem, we would always change our decision and a better option would appear. We would be very happy though undecided!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2abda2453a76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[¡Una fórmula para derrotar a Thanos!]]></title>
            <link>https://medium.com/colombia-ai/una-f%C3%B3rmula-para-derrotar-a-thanos-2c139ee57ea2?source=rss-123337baa169------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c139ee57ea2</guid>
            <dc:creator><![CDATA[data crunch]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 23:47:43 GMT</pubDate>
            <atom:updated>2019-04-22T00:01:04.682Z</atom:updated>
            <content:encoded><![CDATA[<p>En vista del próximo estreno de End Game, hoy vamos a calcular la probabilidad real de derrotar a Thanos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgSwseufoLBMdtAItZ1n-g.jpeg" /></figure><p>Si no has visto las películas previas del MCU, ¡corre a verlas! O si no tienes tiempo, puedes encontrar aquí <a href="https://youtu.be/XLs_Lus68X0">https://youtu.be/XLs_Lus68X0</a> un resúmen muy completo de Infinity War.</p><p>Antes de comenzar con nuestro entramado de cálculos es necesario hacer una **Alerta de Spoiler**. ¡Si sigues leyendo sin ver las películas previamente, te enterarás de datos que no quisieras haber sabido!</p><p><strong>Primer acto: El doctor Strange y los universos posibles.</strong></p><p>Esta especulación comienza en un lugar muy lejano, el planeta Titán, antiguo hogar de Thanos, donde están reunidos algunos de nuestros héroes porque la trama los ha llevado allí. En un momento se dan cuenta de que Dr Strange está con unas convulsiones del infinito, y cuando le preguntan si está bien responde con uno de los enigmas más grandes de toda la saga.</p><ul><li>“Avancé en el tiempo para ver futuros alternos y estudiar los posibles resultados del conflicto que viene”. — dice Dr Strange.</li><li>“¿Cuántos viste doctor?” — pregunta Chris Pratt.</li><li>“14000605 finales” — responde el doctor.</li><li>“¿En cuántos ganamos?” — pregunta Iron man.</li><li>“En uno” — responde Strange mientras suena la música más épica del mundo mundial!</li></ul><p>De manera que el conflicto tiene 14000605 finales posibles y sólo en uno de ellos logran derrotar a Thanos. De manera que la probabilidad de ganar es 1/14000605, no? y ya. Fin del comunicado.</p><p>¡Pues no! porque la escogencia de este escenario no es aleatoria. Unos finales son más probables que otros y también hay unos que son imposibles. De manera que este número no nos dice mucho. Nos dice que existe una única cadena de acontecimientos en la cual Thanos es derrotado, pero nada más. A menos que el doctor nos hubira dicho mentiras.</p><p>Respecto a las teorías generadas a partir del número 14000605 es posible detallarlas aquí: <a href="https://youtu.be/woiBsYv1qDs">https://youtu.be/woiBsYv1qDs</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*PKAwi8QsxL6yq9TNvK1WuA.jpeg" /></figure><p>Tomemos ahora el único futuro en donde Thanos es derrotado. Supongamos razonablemente que en este futuro Thanos toma las gemas del infinito, mata a la mitad del universo y los héroes que quedan vivos mediante las esferas del dragón logran derrotarlo y devolver a la vida todos los muertos.</p><p>Podemos ver los heroes vivos y muertos de este universo como un vector binario, donde 1 es que sigue vivo y 0 es que se murió. En este caso tenemos lo siguiente:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*fOKQlkbNvTNlMoPPmmxoCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*6tYI4GBN0crgdkRRUJ3lyQ.png" /></figure><p>Esto, tomando los personajes que aparecen en el poster de la película.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*vIpK1hDr9IKoGsYTZqCDbQ.png" /></figure><p><strong>Segundo acto: El propósito de Thanos.</strong></p><p>En Avengers Infinity War el propósito de Thanos es muy claro: eliminar la mitad de la vida para disminuir el consumo de recursos en el universo. Si bien hubiera podido aumentar los recursos al doble o modificar la vida para que se consuman menos recursos, esta opción genocida fue la que le pareció mejor a él y no lo vamos a discutir aquí.</p><p>No obstante, llama mucho la atención que el mecanismo de selección elegido por Thanos es aleatorio. Tengamos en cuenta que pudo haber eliminado la mitad de la vida según muchos criterios, (siendo uno de ellos el consumo de recursos y dejando vivos a los seres que menos consumen, logrando un mayor impacto). Sin embargo el uso de distintos criterios de selección hubieran podido romper equilibrios y ecosistemas, lo cual no es correcto, según Thanos. De manera que, la eliminación de los seres vivos se realiza mediante un sistema aleatorio, en donde cada ser vivo tiene una probabilidad de 0.5 de morir o de continuar su existencia.</p><p>Conectando esto con lo anterior, el proceso de selección de cuáles de los personajes principales quedan vivos es aleatorio, y se puede representar mediante la selección aleatorioa de un vector binario entre todos los posibles vectores binarios. Reduciendo el problema a un asunto de combinatoria.</p><p><strong>Tercer acto: Los cálculos.</strong></p><p>Entonces, la situación en la que se encuentra el MCU es la siguiente.</p><ul><li>Hay un único futuro posible donde Thanos es derrotado.</li><li>Podemos definir ese futuro de acuerdo a los personajes vivos y muertos en el proceso de selección aleatoria.</li><li>La probabilidad de morir en el proceso de genocidio es de 0.5 para todos los personajes excepto Gamora.</li></ul><p>De manera que la probabilidad de derrota de Thanos consiste en la probabilidad de que al seleccionar aleatoriamente los héroes que viven y mueren, estos coincidan con aquellos que viven y mueren en el futuro específico visto por Strange.</p><p>Entonces, siendo D la variable aleatoria de derrota de Thanos,</p><p>y P_i = 0.5, que es la probabilidad de muerte de cada personaje calculado sobre los 24 personajes del póster y excluyendo a Gamora (cuya muerte no hace parte del proceso de selección aleatorio), entonces la probabilidad de derrotar a Thanos es:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*BEWAIIG_ao-R5Pa24LLxmw.png" /></figure><p><strong>Ultimo acto</strong></p><p>Podríamos profundizar mucho más en el análisis ya que hay varios factores que pueden alterar el resultado de manera significativa. Algunos son:</p><ul><li>Si Strange no conocía la existencia de Capitain Marvel probablemente subestimó (en términos estadísticos) los escenarios de victoria.</li><li>No hay un criterio unificado para trabajar únicamente con los personajes del póster. Al trabajar con más personajes la cifra puede disminuir.</li><li>La probabilidad calculada es a priori, sin embargo, ya que el experimento (genocidio aleatorio) ya fue llevado a cabo, la probabilidad en este momento es 1 ó 0, a menos que estemos en una perspectiva bayesiana (ver el post anterior).</li></ul><p>Por todos estos factores y situaciones que pudieron ocurrir y que descubriremos pronto, es que hoy les presentamos una fórmula para derrotar a Thanos. ¿Cuántas otras fórmulas se podrán generar?</p><p>¡Es cuestión de probabilística!</p><p>¿Será que nos encontramos en el cine? La probabilidad sería…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c139ee57ea2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/colombia-ai/una-f%C3%B3rmula-para-derrotar-a-thanos-2c139ee57ea2">¡Una fórmula para derrotar a Thanos!</a> was originally published in <a href="https://medium.com/colombia-ai">Colombia.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[¡Indecisos pero felices!]]></title>
            <link>https://medium.com/colombia-ai/indecisos-pero-felices-827c1b06d90f?source=rss-123337baa169------2</link>
            <guid isPermaLink="false">https://medium.com/p/827c1b06d90f</guid>
            <dc:creator><![CDATA[data crunch]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 16:22:49 GMT</pubDate>
            <atom:updated>2019-06-03T00:01:48.369Z</atom:updated>
            <content:encoded><![CDATA[<p>La vida está llena de “Y’s”. Cómo saber cuándo estamos frente a un premio como el carro de un concurso ó ante una cabra? Una cabra? Sí! una cabra!</p><p>Resulta que la estadística con sus fórmulas, más de una vez nos puede llevar del mundo de lo exacto a terminar filosofando sobre la vida misma.</p><p>Por ejemplo, imaginemos que tenemos un vaso de material opaco (no transparente), ponemos allí un par de dados y le damos vuelta sobre una mesa.</p><p>La cantidad que muestran los dados debajo del vaso es un número entero entre 2 y 12. Pero ¿Será esa una variable aleatoria?</p><p>Para algunos no, puesto que los dados ya cayeron y el número, aunque desconocido es fijo y determinístico. La perspectiva que nos muestra que la realidad produce cantidades fijas desconocidas que podemos intentar descubrir, se llama frecuentista.</p><p>Otros dicen que no importa si el experimento ya ocurrió o no, sino la cantidad de información que tenemos al respecto. Para ellos, si no podemos ver los dados, la cantidad de puntos sí es una variable aleatoria. Es decir, la realidad produce cantidades aleatorias conocidas de las que tenemos alguna información, pero no sabemos su valor, porque son aleatorias. Esta es la perspectiva bayesiana.</p><p>La pregunta entonces es: Al cambiar la información que tenemos, sin cambiar la realidad, el sistema de probabilidades alrededor de un suceso cambia?</p><p>La respuesta a esta pregunta está contenida en un gran reto probabilístico: El problema de Monty Hall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uc9oTfsR3SqFlSuHGIfhrQ.png" /></figure><p>Este problema matemático de probabilidad esta basado en el concurso de televisión estadounidense llamado “Trato hecho” (“Let’s make a deal”) creado en 1.963 y que fue emitido hasta 2.009. En este concurso se veían tres puertas cerradas y los concursantes debían elegir una puerta. Esa puerta elegida no se abría pero el presentador si abría una puerta que siempre tenía una cabra. El presentador entonces daba la opción al concursante, de cambiar su puerta elegida ó ratificarse en su elección. Una vez el concursante tomaba la decisión de quedarse con su puerta ó cambiar por la otra, se abria la puerta elegida y el concursante se llevaba su premio: Una cabra ó un carro.</p><p>Primero, con una puerta descartada, la probabilidad de ganar entre dos opciones hace que más de uno piense como si se tratara del lanzamiento de una moneda en donde solo hay dos opciones: Cara y Sello, es decir, ½ y ½, pero esto no es así. Aquí vienen las dudas: Si solo tengo dos puertas asignadas aleatoriamente, ¿cómo es que las probabilidades no son las mismas?</p><p>Si la probabilidad no tiene memoria, por qué abrir una puerta cambia la probabilidad de ganar? ¿No se supone que las probabilidades deben permanecer inmutables en el tiempo? ¿Acaso la probabilidad de un evento depende más de la información que tenemos del mismo que de las condiciones en que se da?</p><p>La distribución de probabilidad de las puertas no es de cara y sello. En realidad hay tres opciones y la probabilidad de ganar si cambiamos de puerta es más alta que si no cambiamos. Veamos por qué.</p><p>Para solucionar el problema podemos comenzar por escribir la probabilidad de que el auto se encuentre detrás de alguna de las puertas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*3CsUQE9G2QM7DF6ITn7UTA.png" /></figure><p>Luego adicionamos la elección del concursante, que diremos, es al azar también.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*C9Qd9rOmct8edHlycGALZA.png" /></figure><p>Luego de que el concursante elije una puerta, el presentador elije otra y esa si la abre. Por supuesto, nunca el carro está allí. ¡Sorpresa! Aparece una cabra. Entonces el presentador le da al concursante la oportunidad de cambiar su puerta elegida. Entonces aquí tenemos dos alternativas distintas, teniendo en cuenta que hay una puerta abierta con una cabra, podemos ver que pasa en el caso en el que el concursante conserve su elección ó en el caso en que cambie de puerta, así:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*uh0aKXjC1Cwifi92RO6IiQ.png" /></figure><p>Que es un panorama muy distinto a:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*Xx6ZwzHUP2mHjBd2EaRkMA.png" /></figure><p>Vemos cómo en las gráficas en la que no cambia su elección, la probabilidad de que gane es</p><p>1/3 que se obtiene al sumar la probabilidad final en todos los renglones que sí gana, lo que da 3/9, mientras con un cálculo similar, el caso en que cambia de puerta, la probabilidad es de 2/3.</p><p>Ahora, si lo vemos como la probabilidad de eventos mutuamente excluyentes, entonces tenemos tres eventos:</p><ul><li>A = Jugador selecciona la puerta con el carro inicialmente.</li><li>B = Jugador selecciona una puerta con cabra inicialmente.</li><li>G = Ganar el carro.</li></ul><p>Y la fórmula de la probabilidad de ganar será:</p><p>P(G) = P(A ∩G) U (B ∩G)</p><p>P(G) = P(A).P(G|A) + P(B).P(G|B)</p><p>Y las probabilidades de seleccionar la puerta con el carro ó una puerta con cabra son:</p><p>P(A) = 1/3</p><p>P(B) = 2/3</p><p>Ahora veamos qué probabilidad tiene de ganar un jugador que no cambia su decisión:</p><p>P(G|A) = 1</p><p>P(G|B) = 0</p><p>P(G) = P(A).P(G|A) + P(B). P(G|B)</p><p>P(G) = 1/3 . 1 + 2/3 . 0 = 1/3</p><p>Como apreciamos, la probabilidad de ganar, dado que el concursante seleccione la puerta con el carro (A) y no cambie su decisión, será 1, así como la probabilidad de ganar si selecciona una puerta con una cabra (B)y no cambia su decisión, será 0.</p><p>Aplicando la fórmula, vemos que la probabilidad de ganar el carro sin cambiar de decisión, es de 1/3</p><p>Y ¿Cuál será la probabilidad de ganar que tiene un jugador que si cambia su decisión?</p><p>P(G|A) = 0</p><p>P(G|B) = 1</p><p>P(G) = P(A).P(G|A) + P(B).P(G|B)</p><p>P(G) = 1/3 . 0 + 2/3 . 1 = 2/3</p><p>Como vemos, la probabilidad de ganar si selecciona una puerta con una cabra (B) pero cambia su decisión, será 1 y la probabilidad de ganar si selecciona la puerta con el carro (A) y cambia su decisión, será cero.</p><p>Aplicando la fórmula, vemos que la probabilidad de ganar el carro cambiando de decisión, es de 2/3 y es mayor a la probabilidad de ganar sin cambiar de decisión.</p><p>Aunque al comienzo el problema parece complejo, es mucho más sencillo que la vida misma. En el problema de Monty Hall está claro cuál es el premio. Es un moderno carro el cual es mucho más emocionante que ganarse una cabra. Pero en nuestras vidas llenas de opciones ó caminos por tomar, ¿cómo saber cuál decisión es mejor qué otra?</p><p>Si la vida fuera como el problema de Monty Hall, simplemente cambiaríamos de decisión siempre y aparecería una mejor opción. ¡Seríamos unos indecisos muy felices!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=827c1b06d90f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/colombia-ai/indecisos-pero-felices-827c1b06d90f">¡Indecisos pero felices!</a> was originally published in <a href="https://medium.com/colombia-ai">Colombia.AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>