<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1793887327383463116</id><updated>2024-09-10T17:05:52.860-07:00</updated><title type='text'>Modelado y Simulación</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1793887327383463116.post-2751808883225817166</id><published>2012-05-29T13:32:00.000-07:00</published><updated>2012-05-29T13:32:48.568-07:00</updated><title type='text'>Proyecto Final: Texturas de Madera</title><content type='html'>&lt;br /&gt;
&lt;div id=&quot;__ss_13124172&quot; style=&quot;width: 425px;&quot;&gt;
&lt;b style=&quot;display: block; margin: 12px 0 4px;&quot;&gt;&lt;a href=&quot;http://www.slideshare.net/saulgav/presentacin-proyecto-final-13124172&quot; title=&quot;Presentación Proyecto Final&quot;&gt;Presentación Proyecto Final&lt;/a&gt;&lt;/b&gt;&lt;object height=&quot;355&quot; id=&quot;__sse13124172&quot; width=&quot;425&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=presentacinmodelado-120529152228-phpapp02&amp;stripped_title=presentacin-proyecto-final-13124172&amp;userName=saulgav&quot; /&gt;

&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;/&gt;

&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;/&gt;

&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;/&gt;

&lt;embed name=&quot;__sse13124172&quot; src=&quot;http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=presentacinmodelado-120529152228-phpapp02&amp;stripped_title=presentacin-proyecto-final-13124172&amp;userName=saulgav&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;355&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;
&lt;div style=&quot;padding: 5px 0 12px;&quot;&gt;
View more &lt;a href=&quot;http://www.slideshare.net/&quot;&gt;presentations&lt;/a&gt; from &lt;a href=&quot;http://www.slideshare.net/saulgav&quot;&gt;Saul Gausin&lt;/a&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Código en Python:&lt;br /&gt;
&lt;br /&gt;
&lt;script src=&quot;https://gist.github.com/2830476.js&quot;&gt;
 
&lt;/script&gt;
&lt;br /&gt;
Imágen generadas:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFTcDAkSLUwE7fKpnE5mWSVeE0fYPIa0pgHqawJc81bSCdVRFKf-GUoWb_tYuficLK_JIfBnJvIRzHsOVPVA1s_DbvDXbS_fe8QC3nmw2LquFVK_gPC4BpfjtjEKJqW3Byv0pFTOd7mmwi/s1600/Captura+de+pantalla+2012-05-29+a+la%28s%29+09.08.54.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFTcDAkSLUwE7fKpnE5mWSVeE0fYPIa0pgHqawJc81bSCdVRFKf-GUoWb_tYuficLK_JIfBnJvIRzHsOVPVA1s_DbvDXbS_fe8QC3nmw2LquFVK_gPC4BpfjtjEKJqW3Byv0pFTOd7mmwi/s400/Captura+de+pantalla+2012-05-29+a+la%28s%29+09.08.54.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix3KVcHIHKJmAVos-R7KP3FEssHQ18p6ZrY1xvkFJOOcH7E7bazPaobQRxkxLUr14swVH5a8QNtjaKIoEGGk-ocJJILL2itUFNUazty5dAT9HRsQKVuRmPfpDBiGsX-ZD1Km3q-iyBW45I/s1600/Captura+de+pantalla+2012-05-29+a+la%28s%29+15.25.42.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEix3KVcHIHKJmAVos-R7KP3FEssHQ18p6ZrY1xvkFJOOcH7E7bazPaobQRxkxLUr14swVH5a8QNtjaKIoEGGk-ocJJILL2itUFNUazty5dAT9HRsQKVuRmPfpDBiGsX-ZD1Km3q-iyBW45I/s400/Captura+de+pantalla+2012-05-29+a+la%28s%29+15.25.42.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0iCETxAGo4QpFeeJEmOn-s-sUitbVSQuwqHT-4BqsgluIPsBQ97tk48fyo0X9E4LJhKV9HotvVGPBBJGCdQdlnvtuWDU4mgvCCzkYj3Irx_LM3KKLEy8jc9e6tNE_I6f7T5F6PPjuuchyphenhyphen/s1600/Captura+de+pantalla+2012-05-29+a+la%28s%29+15.26.02.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0iCETxAGo4QpFeeJEmOn-s-sUitbVSQuwqHT-4BqsgluIPsBQ97tk48fyo0X9E4LJhKV9HotvVGPBBJGCdQdlnvtuWDU4mgvCCzkYj3Irx_LM3KKLEy8jc9e6tNE_I6f7T5F6PPjuuchyphenhyphen/s320/Captura+de+pantalla+2012-05-29+a+la%28s%29+15.26.02.png&quot; width=&quot;320&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiegWCfVGtqDDIiaqoSMM6zAVLJZKALav6fgsa2ozflKMaettYzNRX9epAXeec60Bls4M4Eeswz6FKoFo7qbbq22BjPcovnsDfQgjDfaKr6u967YvL-ueCFOsLV3ZxNyQMkfdS-9NnbT_eH/s1600/Captura+de+pantalla+2012-05-29+a+la%28s%29+15.29.30.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiegWCfVGtqDDIiaqoSMM6zAVLJZKALav6fgsa2ozflKMaettYzNRX9epAXeec60Bls4M4Eeswz6FKoFo7qbbq22BjPcovnsDfQgjDfaKr6u967YvL-ueCFOsLV3ZxNyQMkfdS-9NnbT_eH/s320/Captura+de+pantalla+2012-05-29+a+la%28s%29+15.29.30.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/2751808883225817166/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://modysimu.blogspot.com/2012/05/proyecto-final-texturas-de-madera.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/2751808883225817166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/2751808883225817166'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/2012/05/proyecto-final-texturas-de-madera.html' title='Proyecto Final: Texturas de Madera'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFTcDAkSLUwE7fKpnE5mWSVeE0fYPIa0pgHqawJc81bSCdVRFKf-GUoWb_tYuficLK_JIfBnJvIRzHsOVPVA1s_DbvDXbS_fe8QC3nmw2LquFVK_gPC4BpfjtjEKJqW3Byv0pFTOd7mmwi/s72-c/Captura+de+pantalla+2012-05-29+a+la%28s%29+09.08.54.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1793887327383463116.post-5555703411377116148</id><published>2012-05-28T08:30:00.001-07:00</published><updated>2012-05-28T08:30:07.139-07:00</updated><title type='text'>Ecuación de Lotka-Volterra</title><content type='html'>La ecuación de Lotka-Volterra, también conocida como las ecuaciones de&amp;nbsp; depredador-presa, que en sí son ecuaciones de primer orden, no líneales, que son usados para describir sistemas dinamicos biologicos, en donde dos especies interactuan, donde uno es depredador y otro es presa. En donde se representa la ecuación de la siguiente manera :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif89E9IKksYQPqpnz8yCl5zTK5bi93KyHcCJiZzt_PiG8LbE7ubFkNZ2WwvGCIzySkkywEkDz-qsYEkBTZ-BxS2QB585nmgZ3sxHbb1zEwTAeFCyw0VslETJ5nVQd4TKoGh4X7Qp9UBjor/s1600/Captura+de+pantalla+2012-05-28+a+la%28s%29+09.52.40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif89E9IKksYQPqpnz8yCl5zTK5bi93KyHcCJiZzt_PiG8LbE7ubFkNZ2WwvGCIzySkkywEkDz-qsYEkBTZ-BxS2QB585nmgZ3sxHbb1zEwTAeFCyw0VslETJ5nVQd4TKoGh4X7Qp9UBjor/s1600/Captura+de+pantalla+2012-05-28+a+la%28s%29+09.52.40.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;Donde,&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;x es el número de presas.&lt;/li&gt;
&lt;li&gt;y es el número de depredadores.&lt;/li&gt;
&lt;li&gt;&quot;dy/dt&quot; y &quot;dx/dt&quot; representan el crecimiento de las dos poblaciones contra tiempo.&lt;/li&gt;
&lt;li&gt;t representa el tiempo.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;alfa, δ, &lt;/i&gt;ß y &lt;i&gt;γ &lt;/i&gt;son parámetros que representan la interacción entre dos especies.&lt;/li&gt;
&lt;/ul&gt;
Ahora lo haremos en python, para posterior mente gráficarlo con gnuplot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:python&quot;&gt;#sigma, alfa, beta y r floats                                                                                                                                                        
# x  y ints                                                                                                                                                                          
f =open(&quot;algo.dat&quot;,&quot;a&quot;)
sigma = float(raw_input(&quot;Sigma&quot;))
alfa = float(raw_input(&quot;Alfa&quot;))
beta = float(raw_input(&quot;Beta&quot;))
r = float(raw_input(&quot;R&quot;))
x = float(raw_input(&quot;X&quot;))
y = float(raw_input(&quot;Y&quot;))
iter = 100
dt=0.01
t=0.01
for i in range(iter):
    dx = r*x-alfa*x*y
    dx = dx*dt
    dy = -sigma*y-beta*x*y
    dy = dy*dt
    (x,y) =(x+dx, y+dy)
    if x &amp;lt; 0:
        x = 0
    if y &amp;lt; 0:
        y = 0
    print &amp;gt;&amp;gt; f, &#39;%g %g %g \n&#39;%(t,x,y)
    t+=dt
f.close()
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora lo que despliega en gnuplot es lo siguiente :&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggl6mItXMIMWihP6C_0GF8UOFr5Bdq3m4sAaJz2KtcwLN3PNRnaTu3lbXzYli4A4WVt3lEpw4zFbS035sHfcH4WbWBXBpEAfCLWEs8lxNrFR7NrmXMbRukl4GK-wD6twK1S-Vxur3e8AdT/s1600/Captura+de+pantalla+2012-05-28+a+la%28s%29+10.25.24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggl6mItXMIMWihP6C_0GF8UOFr5Bdq3m4sAaJz2KtcwLN3PNRnaTu3lbXzYli4A4WVt3lEpw4zFbS035sHfcH4WbWBXBpEAfCLWEs8lxNrFR7NrmXMbRukl4GK-wD6twK1S-Vxur3e8AdT/s400/Captura+de+pantalla+2012-05-28+a+la%28s%29+10.25.24.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Fuentes de información:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equation&quot;&gt;http://en.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equation &lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/5555703411377116148/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://modysimu.blogspot.com/2012/05/ecuacion-de-lotka-volterra.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/5555703411377116148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/5555703411377116148'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/2012/05/ecuacion-de-lotka-volterra.html' title='Ecuación de Lotka-Volterra'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEif89E9IKksYQPqpnz8yCl5zTK5bi93KyHcCJiZzt_PiG8LbE7ubFkNZ2WwvGCIzySkkywEkDz-qsYEkBTZ-BxS2QB585nmgZ3sxHbb1zEwTAeFCyw0VslETJ5nVQd4TKoGh4X7Qp9UBjor/s72-c/Captura+de+pantalla+2012-05-28+a+la%28s%29+09.52.40.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1793887327383463116.post-3592737665507940140</id><published>2012-05-11T13:43:00.003-07:00</published><updated>2012-05-11T20:12:23.827-07:00</updated><title type='text'>Sistemas caóticos: Envío de mensajes secretos por medio de caos</title><content type='html'>Una de las grandes aplicaciones de caos ha sido utilizado en las comunicaciones privadas, ya sea para ocultar información&amp;nbsp; enviada a un particular hasta ser una completamente clasificada.Comúmente la personas usan código para poder enviar mensajes secretos, pero al paso del tiempo estos logran ser decifrados.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpMAAjMszUpSsbq9J2bBnOTyDGm-f0LkCGrZqcuHc7dgJuJJ4y5HsiozroHRRuJ1erqz5IOj1XV70QaWAiwIOuFWajuAuF7D8fcdnCdI09Y6YgcqwVFcLDlM9eJebPtpc-3Pdb0aHGsyue/s1600/crypto400.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpMAAjMszUpSsbq9J2bBnOTyDGm-f0LkCGrZqcuHc7dgJuJJ4y5HsiozroHRRuJ1erqz5IOj1XV70QaWAiwIOuFWajuAuF7D8fcdnCdI09Y6YgcqwVFcLDlM9eJebPtpc-3Pdb0aHGsyue/s1600/crypto400.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Kevin Cuomo y Alan Oppenheim en el año de 1992 se enfocaron en resolver este problema basandose en el descubrimiento de Pecora y Carroll sobre caos sincronizado.La estrategia era de que cuando se transmita dicho mensaje hacia el receptor, este iba a ir enmascarado con un sonido más fuerte usando caos.Por consecuencia alguien que recepte ese mensaje solamente oirá el caos, en otras palabras escuchará solamente puro sonido sin sentido como cuando enciendes la televisión y no tienes señal.&lt;br /&gt;
&lt;br /&gt;
El receptor lo que hará será solamente usar un traductor que reprodusca el caos para así substraer la máscara de caos y así sustraer el mensaje oculto.&lt;br /&gt;
&lt;br /&gt;
Para hacer esta demostración Kevin Cuomo desarrolló un proyecto en el cual por medio de un circuito analógico implemento las ecuaciones de lorenz para crear una máscara caótica en mensajes, para hacer la demostración el reprodució una canción, para después mostrar la canción enmascarada la cual no tenía sentido alguno y luego de ser pasada hacia el receptor que este desenmascarado la máscara de caos y así se logró escuchar la canción que se escuchó con algo de ruido sin perder el mensaje.&lt;br /&gt;
&lt;br /&gt;
En la que si lo veríamos gráficamente se podría acercar a algo como esto.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoEVpuk9q6f0Z9DGPu392cd3qGVtZNvEWop7tlB89FEYv7bJ89jo3XPh5U4NfBlG-hPqgeWL7h62IXSNk-ddqgHu2tvIjsVAEVJ9Ms7mwUDbvpVWM9HD90yXqxL6ixcLSxXxu2fwCLuaxB/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+13.47.12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoEVpuk9q6f0Z9DGPu392cd3qGVtZNvEWop7tlB89FEYv7bJ89jo3XPh5U4NfBlG-hPqgeWL7h62IXSNk-ddqgHu2tvIjsVAEVJ9Ms7mwUDbvpVWM9HD90yXqxL6ixcLSxXxu2fwCLuaxB/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+13.47.12.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Esto puede ser demostrada por medio de algún programa por medio de un &lt;a href=&quot;http://en.wikipedia.org/wiki/Logistic_map&quot;&gt;mapa lógistico&lt;/a&gt; : &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEics_eyfXFTBE4gXUK4-Y7SBY9iCVnUvIZE0PIeMNeN3yjGOnQjdYXYgQO302RwwrbGT9aRZEPMgrmUq23top2YIjZHwQcIAbEt3fxic7yIjWh5iYBUCRXwnK9nuE3LfTgJRRvQPsTuPn_f/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+14.02.41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEics_eyfXFTBE4gXUK4-Y7SBY9iCVnUvIZE0PIeMNeN3yjGOnQjdYXYgQO302RwwrbGT9aRZEPMgrmUq23top2YIjZHwQcIAbEt3fxic7yIjWh5iYBUCRXwnK9nuE3LfTgJRRvQPsTuPn_f/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+14.02.41.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
En donde &lt;b&gt;Xn&lt;/b&gt; es un número entre 0 y 1, dicho número lo tomaremos de manera pseudoaleatoria.&lt;b&gt;r&lt;/b&gt; es un número positivo y este representa una tasa combinada para una reproducción y inanición.&lt;br /&gt;
&lt;br /&gt;
Tomaremos un valor entre 3.57 y 4 para &lt;b&gt;r&lt;/b&gt; ya que no todos los valores producen caos y estos valores son los más sensibles a producirlo.&lt;br /&gt;
&lt;br /&gt;
Ahora tomamos un mensaje, el cual queremos evniar el cual llamaremos m.Luego sumamos el valor anterior generado.En esta ecuación obtendremos un valor nuevo llamado señal &lt;b&gt;s&lt;/b&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ6N_c9JIvscxPiVT3n-sJr91Rza4NZbJhP6wW1AfN4PGXF4VdgUxfsR12J1KD9x3kElpfQyqMIj5CDf3_fZf4XGxsIxc8MrSHaC3Tq4G0CtCEIJc7JYoG-6Uu0SshK8yaIYEKAWy3xAzc/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+14.37.37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ6N_c9JIvscxPiVT3n-sJr91Rza4NZbJhP6wW1AfN4PGXF4VdgUxfsR12J1KD9x3kElpfQyqMIj5CDf3_fZf4XGxsIxc8MrSHaC3Tq4G0CtCEIJc7JYoG-6Uu0SshK8yaIYEKAWy3xAzc/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+14.37.37.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Esta es la forma en la que nosotros enmascaramos el mensaje por medio de caos, si nosotros escuchamos dicho mensaje nosotros solamente oiremos ruido.&lt;br /&gt;
&lt;br /&gt;
Ahora lo que necesitamos es reproducir el mensaje para ello supongamos que hacemos otro mapa lógistico.En esta ocación en lugar de iterar el valor actual de nuetro sistema para obtener el siguiente estado, promediaremos el estado actual por medio de la señal que ha sido transmitido.Llamaremos señal transmitida&lt;b&gt; s&lt;/b&gt; y nuestro nuevo mapa será así.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt9uHyypiOI474X7M5UaZO5xvJM_pkyoIM9IZ9oe-BzEQn11hgz1GpSY1xgdmSMy6RDtBC0g_C0_YgN4ulYgkRPlvL47EFa1PKw197d0kvRQnunb3AGNF-UcvKG4HuqPTnVfnfd4K_NIto/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+14.53.00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt9uHyypiOI474X7M5UaZO5xvJM_pkyoIM9IZ9oe-BzEQn11hgz1GpSY1xgdmSMy6RDtBC0g_C0_YgN4ulYgkRPlvL47EFa1PKw197d0kvRQnunb3AGNF-UcvKG4HuqPTnVfnfd4K_NIto/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+14.53.00.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp7NaiBlIac8zMDSecmEpIhnC2PojEZZJFTEJjEjVPrmriWQt1Zwcs8D050WUEMH-Bw5PoBRQU_gYfclPzNvYPhJp53KeyeLohXAC-64yCYWQ4IOgxsBMm_YSRAVO6MzY0eH6fjYi7o2yX/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+15.07.19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
Tomamos el mismo valor que tomamos en &lt;b&gt;r&lt;/b&gt;, y lo que haremos será subtraer x&#39; de la señal &lt;b&gt;s&lt;/b&gt; para obtener un señal reconstruida &lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp7NaiBlIac8zMDSecmEpIhnC2PojEZZJFTEJjEjVPrmriWQt1Zwcs8D050WUEMH-Bw5PoBRQU_gYfclPzNvYPhJp53KeyeLohXAC-64yCYWQ4IOgxsBMm_YSRAVO6MzY0eH6fjYi7o2yX/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+15.07.19.png&quot; /&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTce6L6YSAHPhmk_pj91HiNBTdlczZIDdnhlNC2_T3vilzapzjA-XbFTx8rqY1CdU78Ia5lpvOiSIZp_hy5_pQb8lZw6H02W3vFfnZUVl7gyXVy9ktApj51S5X0Ma2tZTvnvB7DdIjkEpX/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+15.08.37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTce6L6YSAHPhmk_pj91HiNBTdlczZIDdnhlNC2_T3vilzapzjA-XbFTx8rqY1CdU78Ia5lpvOiSIZp_hy5_pQb8lZw6H02W3vFfnZUVl7gyXVy9ktApj51S5X0Ma2tZTvnvB7DdIjkEpX/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+15.08.37.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Si recordamos &lt;b&gt;s&lt;/b&gt; era la suma de &lt;b&gt;m&lt;/b&gt; y &lt;b&gt;x&lt;/b&gt;, así que sustituimos.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyuuRF7PCs6vgswZMEyeY1FEIQh_6WnXUP2nqhRqem6LFSijyOsw9uqxgh2lVctB1P8m2IWVmbi-qz24sdzG0hA_zdX00ZlOJoEbbiQO7Ou_Xu2-YV3zY-Er7gKlNHk19GH3JNN-HQpoW/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+15.10.15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyuuRF7PCs6vgswZMEyeY1FEIQh_6WnXUP2nqhRqem6LFSijyOsw9uqxgh2lVctB1P8m2IWVmbi-qz24sdzG0hA_zdX00ZlOJoEbbiQO7Ou_Xu2-YV3zY-Er7gKlNHk19GH3JNN-HQpoW/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+15.10.15.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Para después multiplicarlo por 100 y así obtener el mensaje aproximado.&lt;br /&gt;
&lt;br /&gt;
Ahora demostrare esto en un código de Python el cual encontre en una de las páginas que tengo como referencia en la parte de abajo, al código le modifique para que este nos gráficara que es lo que esta sucediendo.&lt;br /&gt;
&lt;br /&gt;
El codificador.&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=sVvExPs8&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
El decodificador.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=qv3bad1P&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
Video del mensaje, codificación y decodificación&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.blogger.com/video.g?token=AD6v5dzYY1dQhnAxxbkaiuW-0l1s5mrs6Jrb5OFNEAanEJ2NgRgz4cPqyOtJobvU0-EG4fmErWVcHMuXNMFY6CrI_Q&#39; class=&#39;b-hbp-video b-uploaded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;br /&gt;
Gráfica: &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh48GqyNy1aZTN0a0iG5IKFvUTwNT-1p7nvho3z-CuI1pfIaQyMz-WxE9gKyH_PSXnExjrGpLdXe3l_UpEfd3UJSS8HzqJYs5FCLJBZ7ioRxAtHf1z9CeaX10YuD7ZJS8sUuatWBELfBXMT/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+17.47.08.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh48GqyNy1aZTN0a0iG5IKFvUTwNT-1p7nvho3z-CuI1pfIaQyMz-WxE9gKyH_PSXnExjrGpLdXe3l_UpEfd3UJSS8HzqJYs5FCLJBZ7ioRxAtHf1z9CeaX10YuD7ZJS8sUuatWBELfBXMT/s1600/Captura+de+pantalla+2012-05-11+a+la%28s%29+17.47.08.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fuentes:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://jellymatter.com/2012/01/04/a-secret-message-from-another-dimension/&quot;&gt;http://jellymatter.com/2012/01/04/a-secret-message-from-another-dimension/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Logistic_map&quot;&gt;http://en.wikipedia.org/wiki/Logistic_map&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Nonlinear Dynamics and Chaos por Steven H. Strogatz</content><link rel='replies' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/3592737665507940140/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://modysimu.blogspot.com/2012/05/sistemas-caoticos-envio-de-mensajes.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/3592737665507940140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/3592737665507940140'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/2012/05/sistemas-caoticos-envio-de-mensajes.html' title='Sistemas caóticos: Envío de mensajes secretos por medio de caos'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpMAAjMszUpSsbq9J2bBnOTyDGm-f0LkCGrZqcuHc7dgJuJJ4y5HsiozroHRRuJ1erqz5IOj1XV70QaWAiwIOuFWajuAuF7D8fcdnCdI09Y6YgcqwVFcLDlM9eJebPtpc-3Pdb0aHGsyue/s72-c/crypto400.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1793887327383463116.post-5037888616508631138</id><published>2012-04-20T15:42:00.000-07:00</published><updated>2012-04-20T20:10:42.728-07:00</updated><title type='text'>Pruebas estadísticas para los números pseudoaleatorios</title><content type='html'>En esta entrada hablaremos sobre los números pseudoaleatorios, generaremos un número pseudo-aleatorio por medio de un programa hecho en Ruby y de ahí nos pasaremos a hacer unas pruebas estadísticas sobre dichos datos.&lt;br /&gt;
&lt;br /&gt;
Así es como se generan números aleatorios en Ruby:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:rails, ror, ruby&quot;&gt;archivo = File.new(&quot;rand.dat&quot;,&quot;w+&quot;)
for s in 1...100
      print s,&quot;\n&quot;;
      archivo.print s,&quot; &quot;,rand(),&quot;\n&quot;;
end
&lt;/pre&gt;
&lt;br /&gt;
Este genera un archivo llamado rand.dat en el cual se van guardando los datos, para que posteriormente sean gráficados.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSW6RLVxMjmi6z6-OLzTLIqhoGGvG1h8F9_yVtPoD2pCH7Q8xZLHJDYjhGqpYe75JYdheHvFjNsMBkGUGeGepoXD_0z6UWv_MFITkoWVtO9WWPI1rbfmy9-11oPIw05-MoQJ9Zi-rTDlla/s1600/Captura+de+pantalla+2012-04-20+a+la%28s%29+00.27.27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSW6RLVxMjmi6z6-OLzTLIqhoGGvG1h8F9_yVtPoD2pCH7Q8xZLHJDYjhGqpYe75JYdheHvFjNsMBkGUGeGepoXD_0z6UWv_MFITkoWVtO9WWPI1rbfmy9-11oPIw05-MoQJ9Zi-rTDlla/s1600/Captura+de+pantalla+2012-04-20+a+la%28s%29+00.27.27.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Donde genera 100 números de manera pseudoaleatoria en un rango entre 0 y 1.&lt;br /&gt;
&lt;br /&gt;
Para hacer dicha modificaré el código de Ruby para generar números que sean 0 ó 1:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:rails, ror, ruby&quot;&gt;archivo = File.new(&quot;rand.dat&quot;,&quot;w+&quot;)
for s in 1...100
      print s,&quot;\n&quot;;
      archivo.print s,&quot; &quot;,rand(2),&quot;\n&quot;;
end
&lt;/pre&gt;
&lt;br /&gt;
Ahora haremos una prueba llamada &quot;Random Excursions Test&quot; para comprobar que realmente son pseudoaleatorios, donde el propósito de está prueba es concentrarse en el número de ciclos que tienen exactamente K visitas en un paseo al azar la suma acumulada, para más información entra a está liga:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;http://es.scribd.com/doc/11305936/133/Random-Excursions-Test&quot;&gt;http://es.scribd.com/doc/11305936/133/Random-Excursions-Test&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Donde se programó esta prueba en Python:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;brush:python&quot;&gt;import math
import random
def tabla(x, k):
    val = 1.0 / (2.0 * math.fabs(x))
    return val * (1.0 - val)**(k - 1)

def lookup(lista):
    ciclo = list()
    c = None
    for e in lista:
        if e == 0:
            if c is not None:
                ciclo.append(c)
            c = list()
        else:
            c.append(e)
    return ciclo

file = open(&quot;rand.dat&quot;)
lista = list()
line = file.readline()
line = line.strip()
for elem in line.split():
    lista.append(int(elem)*2 -1)
n=len(lista)
s=list()

print lista
for e in range(0,n+1):
    s.append(sum(lista[:e]))

s.append(0)
print s
ciclo=lookup(s)
J = len(ciclo)

v=dict()
for x in range(-4, 5):
    if x != 0:
        for c in ciclo:
            oc = c.count(x)
            if oc &amp;gt; 5:
                oc = 5 # los mayores a cinco van con cinco
            if (x, oc) in v:
                v[(x, oc)] += 1
            else:
                v[(x, oc)] = 1
for x in range(-4, 5):
    if x != 0:
        ver = 0
        stat = 0.0
        for k in range(0, 6):
            if (x, k) in v:
                val = v[(x, k)] # frecuencia observada
            else:
                val = 0.0
            teor = J * tabla(x, k) # frecuencia esperada
            stat += (val - teor)**2 / teor
            ver += val
        print x, stat 
&lt;/pre&gt;
Donde se normalizan los números pseudoaleatorios generados entre 0 y 1 donde 0 se cambia a -1, después de ello se hacen sumatorias parciales comenzando de X1 así sucesivamente hasta Xn, para luego examinar la cantidad de repeticiónes de frecuencias y compararlos apartir de la estadística Chi-square, lo que se esperaría una probabilidad de una distribución aleatoria.&lt;br /&gt;
&lt;br /&gt;
Como resultado obtenemos lo siguiente: &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggw2ZiaVgQZUQeZXoSt5HK_aVnOGYTiftjZaDA9INSeNJV2FHG3qieGDjyAwsRaaX9yK5RhtMW9CPv9LYJ_fjTL8qrmjzlFy_MqE-iYtQ06D87yOaWf2Aiik8nBIgamppzd0rd32h8iZGW/s1600/Captura+de+pantalla+2012-04-20+a+la%28s%29+20.27.06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggw2ZiaVgQZUQeZXoSt5HK_aVnOGYTiftjZaDA9INSeNJV2FHG3qieGDjyAwsRaaX9yK5RhtMW9CPv9LYJ_fjTL8qrmjzlFy_MqE-iYtQ06D87yOaWf2Aiik8nBIgamppzd0rd32h8iZGW/s1600/Captura+de+pantalla+2012-04-20+a+la%28s%29+20.27.06.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Después comparamos con &lt;a href=&quot;http://www.danielsoper.com/statcalc3/calc.aspx?id=11&quot;&gt;esta&lt;/a&gt; applet si realmente tienen una alta probabilidad de distribución aleatoria:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqGzooLYDf4Lps23nnMxPY2CHnTCnZmlwJPkXIm0nJ85hRGkiRn-2ZGVe4RLFaDkqEhqZ922sqOHERzF482w3ul3By8NuS3oJmzzqq8eIcWBD2jMlff9HOhcaa5Ot5lYQRFhcYclAKP0Ad/s1600/Captura+de+pantalla+2012-04-20+a+la%2528s%2529+20.57.59.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqGzooLYDf4Lps23nnMxPY2CHnTCnZmlwJPkXIm0nJ85hRGkiRn-2ZGVe4RLFaDkqEhqZ922sqOHERzF482w3ul3By8NuS3oJmzzqq8eIcWBD2jMlff9HOhcaa5Ot5lYQRFhcYclAKP0Ad/s1600/Captura+de+pantalla+2012-04-20+a+la%2528s%2529+20.57.59.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Con esto concluimos que a mayor cantidad sean los valores, hay mayor probabilidad de que se rechazen los valores y que a menor cantidad sean hay mayor probabilidad de que se acepten.&lt;br /&gt;
&lt;br /&gt;
Se comprobó que los datos generados son uniformes y que puede mejorarse la aleatoridad. Se llegó a esta conclusión gracias a que dividimos los -1 y 1 entre los valores esperados para así mismo comprobarlo con el applet y esta misma applet nos determinó en todas las pruebas que se hicieron que nos daba una probabilidad de 0,9999.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw_S_DmiqQoKjAYpAPaqtMUiQwFiA3tWGiI0vLtdgTKvgvYaO-_LV0sudbgJnwmf2nN_AlSd2LiHBPM4GQdsrRNfhP0Fh0kjFo7bFTgFwTojIU7yahNTM92ZpvK5vBl7_BgIsCS-A5VyJD/s1600/Captura+de+pantalla+2012-04-20+a+la%28s%29+21.30.45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw_S_DmiqQoKjAYpAPaqtMUiQwFiA3tWGiI0vLtdgTKvgvYaO-_LV0sudbgJnwmf2nN_AlSd2LiHBPM4GQdsrRNfhP0Fh0kjFo7bFTgFwTojIU7yahNTM92ZpvK5vBl7_BgIsCS-A5VyJD/s1600/Captura+de+pantalla+2012-04-20+a+la%28s%29+21.30.45.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Link de referencia:&lt;br /&gt;
&lt;br /&gt;
Información de Random Excursions Test&lt;br /&gt;
&lt;a href=&quot;http://es.scribd.com/doc/11305936/133/Random-Excursions-Test&quot;&gt;http://es.scribd.com/doc/11305936/133/Random-Excursions-Test&lt;/a&gt;&lt;br /&gt;
Applet&lt;br /&gt;
&lt;a href=&quot;http://www.danielsoper.com/statcalc3/calc.aspx?id=11&quot;&gt;http://www.danielsoper.com/statcalc3/calc.aspx?id=11&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/5037888616508631138/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://modysimu.blogspot.com/2012/04/pruebas-estadisticas-para-los-numeros.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/5037888616508631138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/5037888616508631138'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/2012/04/pruebas-estadisticas-para-los-numeros.html' title='Pruebas estadísticas para los números pseudoaleatorios'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSW6RLVxMjmi6z6-OLzTLIqhoGGvG1h8F9_yVtPoD2pCH7Q8xZLHJDYjhGqpYe75JYdheHvFjNsMBkGUGeGepoXD_0z6UWv_MFITkoWVtO9WWPI1rbfmy9-11oPIw05-MoQJ9Zi-rTDlla/s72-c/Captura+de+pantalla+2012-04-20+a+la%28s%29+00.27.27.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1793887327383463116.post-7181836492433830322</id><published>2012-03-13T06:32:00.000-07:00</published><updated>2012-03-23T11:58:20.905-07:00</updated><title type='text'>Procesos estocásticos discretos y contínuos</title><content type='html'>&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
En este tema tomaré el lanzamiento de un dado de seis lados como base de explicación de este tema, en donde se buscara la probabilidad de que obtengamos el número 6 .&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQEtKkAGsi2oookr-Yx40q2E-HXmrY81-CCNv278HoNDu0I_0oVO5xIqgtR0idGdppOco8gFiE1Txcy36kzwW5TbnkocJ0GPR6EngJ8SvPbih-IuUOSZRZM6JJh8gC2OgCtRZBCMl_27mU/s1600/crapsdiceroll.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQEtKkAGsi2oookr-Yx40q2E-HXmrY81-CCNv278HoNDu0I_0oVO5xIqgtR0idGdppOco8gFiE1Txcy36kzwW5TbnkocJ0GPR6EngJ8SvPbih-IuUOSZRZM6JJh8gC2OgCtRZBCMl_27mU/s320/crapsdiceroll.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Para tener un mejor entendimiento del problema se explicarán las distintas distribuciones discretas y continuas que existen, ya que con ello se entendería el por que el usó de la distribución que se eligió.&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Distribuciones Discretas&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
En estas la variable puede tomar un número determinado de valores que pueden ser finitos o infinitos numerables; donde con infinito numerable se refiere a la cantidad que es muy grande y por serlo nadie se da lujo de enumerar, sin embargo tiene un límite y se puede cuantificar que es lo mismo a calcular.&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;b&gt;Ejemplo:&lt;/b&gt;&amp;nbsp;
&lt;/div&gt;
&lt;ul style=&quot;color: black;&quot;&gt;
&lt;li&gt;La cantidad de galaxias que existen en el universo.&lt;/li&gt;
&lt;li&gt;La cantidad de granos de arena en el mar.&lt;/li&gt;
&lt;li&gt;Veces en las que cae un número par o impar en un dado.&lt;/li&gt;
&lt;li&gt;El lanzamiento de una moneda en las que sale una cara o cruz.&lt;/li&gt;
&lt;li&gt;Cantidad de hombres o mujeres en un salón.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
En las distribuciones discretas se destacan los siguientes:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;La distribución de Bernouilli&lt;/b&gt; es el modelo que sigue un experimento que se realiza una sola vez y que puede tener dos soluciones:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Éxito&lt;/b&gt;; donde toma el valor de 1&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
o&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Fracaso;&amp;nbsp;&lt;/b&gt;donde toma el valor de 0&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Donde únicamente hay dos soluciones &amp;nbsp;de sucesos complementarios:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
A la probabilidad de éxito se le denomina &quot;p&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
A la probabilidad de fracaso se le denomina &quot;q&quot;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Por lo tanto:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;p + q = 1&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Ejemplo:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Probabilidad de acertar una quiniela:&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Probabilidad de acertar p = 0.00001&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Probabilidad de no acertar q = 0.99999&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Por lo tanto:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;p + q = 0.000001 + 0.99999&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;La distribución binomial&lt;/b&gt; es parte de la distribución de Bernouilli:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; La distribución de Bernouilli se aplica cuando se realiza una sola vez un experimento que tiene&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; únicamente dos posibles resultados éxito o fracaso, por lo que la variable sólo puede tomar dos&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valores: el 1 y el 0.&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; La distribución binomial se aplica cuando se realizan un número &quot;n&quot; de veces el experimento de&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bernouilli, siendo cada ensayo independiente del anterior, donde la variable puede tomar los&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valores 0 (si todos los experimentos han sido fracaso) y n (si todos los experimentos han sido&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; éxitos).&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Donde se sigue el siguiente modelo:&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoky5NsQ2zbOI2t50Y0pqsUv9HmW2aZSeyljGqEcmd5jZZPOTT-lS0AzM-xbC4lyL_c4OsUcy7mqQZz0jAC4k_KWC7NVPCplS67fPYT99IuO-OUi66LAy0hKKd9YvqDAqOJezunjzqwHYN/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.10.09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoky5NsQ2zbOI2t50Y0pqsUv9HmW2aZSeyljGqEcmd5jZZPOTT-lS0AzM-xbC4lyL_c4OsUcy7mqQZz0jAC4k_KWC7NVPCplS67fPYT99IuO-OUi66LAy0hKKd9YvqDAqOJezunjzqwHYN/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.10.09.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Para entenderlo veremos el siguiente ejemplo:&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
¿Cuál es la probabilidad de obtener cuatro veces el número 3 al lanzar un dado 8 veces?&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
Donde k es el número de aciertos en este caso se toma el valor 4, n es el número de veces lanzado por lo tanto el valor de n será 8 y p es la probabilidad de que salga un 3 al tirar el dado en este caso será 1/6 que es igual a 0.1666 .&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
Ya desarrollado el problema nos quedaría así:&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-dn5zqJs0kE5dQ2xP-96F11w5TdR3zKdk3Dau5erFtOKrRpmkbiY1C_dk3jwIl8IBEyQ6lNmdIypV7vRZlG_flBFsCd7R34zaSp_tenar4Hc2hAoQ36gclyu2ejPCRmSwCYlQQt3lHzm7/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.33.53.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-dn5zqJs0kE5dQ2xP-96F11w5TdR3zKdk3Dau5erFtOKrRpmkbiY1C_dk3jwIl8IBEyQ6lNmdIypV7vRZlG_flBFsCd7R34zaSp_tenar4Hc2hAoQ36gclyu2ejPCRmSwCYlQQt3lHzm7/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.33.53.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
Por lo tanto obtenemos:&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: center;&quot;&gt;
&lt;b&gt;P(x = 4) = 0.026&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;
Con esto queremos decir que tiene una probabilidad de 2.6% de obtener 4 veces el número 3 al tirar un dado 8 veces.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;b&gt;La distribución de Poisson &lt;/b&gt;parte de la distribución binomial:&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cuando en una distribución binomial se realiza el experimento un número n muy elevado de&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; veces y la probabilidad de éxito p en cada ensayo es reducida, entonces se aplica el modelo&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; de distribución de Poisson:&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
En donde tiene que cumplir con lo siguiente:&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: center;&quot;&gt;
p &amp;lt; 0.10&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: center;&quot;&gt;
p * n &amp;lt; 10&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
En el cual se sigue el siguiente modelo:&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMWLvLbknT_6bZxE1jFvR2CnEa4zAH9B7rmhHaW6CkAhIrFMbV7aivjz_VDkeZdIdJOU32WP_H5_R-vx2pvvHtIRTJtvNSojfQgloO4FvLSu3QDaQuDIEUlU6W461imU6jcezSeRZ8AQov/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.50.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMWLvLbknT_6bZxE1jFvR2CnEa4zAH9B7rmhHaW6CkAhIrFMbV7aivjz_VDkeZdIdJOU32WP_H5_R-vx2pvvHtIRTJtvNSojfQgloO4FvLSu3QDaQuDIEUlU6W461imU6jcezSeRZ8AQov/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.50.55.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
Donde:&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
Tenemos que &lt;b&gt;e&lt;/b&gt; es una constante que es igual a 2.71828, lambda es igual a número de veces &lt;b&gt;n&lt;/b&gt; que se realiza el experimento por la probabilidad &lt;b&gt;p&lt;/b&gt; de éxito en cada ensayo, y&amp;nbsp; &lt;b&gt;k&lt;/b&gt; es el número de éxito cuya probabilidad se está calculando.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
Ahora veamos el ejemplo:&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
La probabiliad de que un niño naza pelirrojo es de 0.012, ¿Cuál es la probabilidad de que entre 800 recien nacidos haya 5 pelirrojos?&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
Podemos identificar que &lt;b&gt;p&lt;/b&gt; es menor que 0.1 y el producto de &lt;b&gt;n * p&lt;/b&gt; es menor que 10, entonces aplicamos el modelo de&amp;nbsp; distribución de Poisson.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPf21vehfyRHjvbR8eMeO4Xojt-Eky2hlnvh4WAkyNWXHVGf35VD3bsmoZo0k-53usK2v5M4UrIKk2eZkg1-88jYnEfjxmhvkLmk1KWxeUODpcP_-ux7_cAXI6MFePKyrn33UsHEq4c3HL/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.50.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPf21vehfyRHjvbR8eMeO4Xojt-Eky2hlnvh4WAkyNWXHVGf35VD3bsmoZo0k-53usK2v5M4UrIKk2eZkg1-88jYnEfjxmhvkLmk1KWxeUODpcP_-ux7_cAXI6MFePKyrn33UsHEq4c3HL/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+16.50.55.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: left;&quot;&gt;
Por lo tanto:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;b&gt;P(x=5) = 4.602 &lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: left;&quot;&gt;
Entonces la probabilidad de que haya 5 pelirrojos entre 800 recien nacidos es del 4.6% .&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: black; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;b&gt;Distribuciones Continuas&lt;/b&gt;
&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Estos pueden tomar cualquiera de los infinitos valores existentes dentro de un intervalo.&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;b&gt;Ejemplo:&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;color: black;&quot;&gt;
&lt;li&gt;Mantenimiento de alguna computadora, en las que interviene el tiempo que existe hasta que se vuelva a descomponer.&lt;/li&gt;
&lt;li&gt;Crecimiento relativo anual de alguna población &amp;nbsp;de un país o región.&lt;/li&gt;
&lt;li&gt;El periodo de incubación de una enfermedad, ya que una enfermedad nunca es exacta aún si está es la misma.&lt;/li&gt;
&lt;li&gt;Nivel de líquido de un embalse.&lt;/li&gt;
&lt;li&gt;Cantidad de decimales que se pueden encontrar entre 0 y 1 de una regla; siendo decimales los números después de la coma.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
En las distribuciones continuas se destacan las siguientes:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;La distribución uniforme&lt;/b&gt; es aquella que puede tomar cualquier valor dentro de un intervalo, todos ellos con la misma probabilidad, se dice que es una distribución continua porque puede tomar cualquier valor y no únicamente un número determinado.&lt;br /&gt;
&lt;br /&gt;
La función de densidad es aquella que nos permite conocer la probabilidad que tiene cada punto del intervalo, y viene modelado de la siguiente manera:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1YF8I3rfx0vtfP3lobmIfINML0E4XiVAeDyhcAU_kIImpvMxbhLo3YU6vBNJmJyX6Gbkbxa622BGswudCyGUOiWBmkkRtTy3JrFEUsO0SIKigXjtzrkU06HBVWSmfVQ-fOdjX6FzWozcw/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+18.42.48.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1YF8I3rfx0vtfP3lobmIfINML0E4XiVAeDyhcAU_kIImpvMxbhLo3YU6vBNJmJyX6Gbkbxa622BGswudCyGUOiWBmkkRtTy3JrFEUsO0SIKigXjtzrkU06HBVWSmfVQ-fOdjX6FzWozcw/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+18.42.48.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
En donde &lt;b&gt;b&lt;/b&gt; es el extremo superior(si hablamos del 1 al 100, 100 sería nuestro valor extremo superior) y &lt;b&gt;a&lt;/b&gt; es el extremo inferior(si hablamos del 1 al 100, 1 sería nuestro valor extremo inferior).&lt;br /&gt;
&lt;br /&gt;
El valor medio de dicha distribución se calcula de la siguiente manera:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0Ir8DfhyNiooggQJyjau5FclVMVGbbwnaO9S8eV445vu_Y5b-uBxIx1CwChtBlbSwv5VNQszj_4GvCCk2joZUY-qLrQnqK71-clxd1eJfrYHJVO2cLVjl3Mw6-g0K3cp5cBYthChPakTM/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+18.54.21.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0Ir8DfhyNiooggQJyjau5FclVMVGbbwnaO9S8eV445vu_Y5b-uBxIx1CwChtBlbSwv5VNQszj_4GvCCk2joZUY-qLrQnqK71-clxd1eJfrYHJVO2cLVjl3Mw6-g0K3cp5cBYthChPakTM/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+18.54.21.png&quot; /&gt;&lt;/a&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Ejemplo:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
El volumen de precipitaciones estimado para el próximo año en la cuidad de Sevilla va a oscilar entre 400 y 500 litros por metro cuadrado.Calcular la función de distribución y la precipitación media esperada:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyRawEE59u2g7UtQIq4SBWoxIV-qzompKFN_OWfqYbQV22-32U-8bOmlEagFiatU1H_FQCztxDQTm8XXVlY6YzzlPb6Yl7gZcxAyy-A4eUzno_qdjaNjdgL6gx560PlYsA-KNG4C-7Sl0p/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+19.13.19.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyRawEE59u2g7UtQIq4SBWoxIV-qzompKFN_OWfqYbQV22-32U-8bOmlEagFiatU1H_FQCztxDQTm8XXVlY6YzzlPb6Yl7gZcxAyy-A4eUzno_qdjaNjdgL6gx560PlYsA-KNG4C-7Sl0p/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+19.13.19.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Es decir, que el volumen de precipitaciones esté entre 400 y 401 litros tiene un 1% de probabilidades; que esté entre 401 y 402 litros, otro 1%, etc.&lt;br /&gt;
&lt;br /&gt;
El valor medio esperado es:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmEQg0u0geYKAv1YIkX8iV3Zv699g9UITUHS9brg2kFlJOGR30jaBbkMG8wIOsKL18vCrut5hmWfy7wHIHJrHGpXxDio_N5i6liVR_Yr1lKzBpcgk-p3Vk3pyvsdDzTWuVJ_2KTZdSm96E/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+19.15.00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmEQg0u0geYKAv1YIkX8iV3Zv699g9UITUHS9brg2kFlJOGR30jaBbkMG8wIOsKL18vCrut5hmWfy7wHIHJrHGpXxDio_N5i6liVR_Yr1lKzBpcgk-p3Vk3pyvsdDzTWuVJ_2KTZdSm96E/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+19.15.00.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Donde la precipitación media estimada en Sevilla para el próximo año es de 450 litros.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;La distribución normal o gaussiana&lt;/b&gt; es el modelo de distribución más utilizado en la práctica, ya que multitud de fenómenos se comportan según una distribución normal, dicha distribución se caracteriza porque los valores se distribuyen formando una campana de Gauss, en torno a un valor central que coincide con el valor medio de la distribución:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEEq-Mk_pZmHFE8LkqOoC1YGbogRPHjcEYScnbqOjoXyvpAFOXd1OE0qus_xefIbkssc8ojXMiE9wLONqqISbOo4Vc0832QwKebzgiOhmZcxd1Zu_PGrCLi-HAru1345OoYtaJoMbPEysJ/s1600/Gaussian_distribution.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEEq-Mk_pZmHFE8LkqOoC1YGbogRPHjcEYScnbqOjoXyvpAFOXd1OE0qus_xefIbkssc8ojXMiE9wLONqqISbOo4Vc0832QwKebzgiOhmZcxd1Zu_PGrCLi-HAru1345OoYtaJoMbPEysJ/s320/Gaussian_distribution.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Donde hay un 50% del lado izquierdo y derecho.Está distribución viene definida por dos parámetros:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
X: N(&lt;b&gt;m&lt;/b&gt;, &lt;b&gt;sˆ2&lt;/b&gt;)&lt;/div&gt;
&lt;br /&gt;
Donde &lt;b&gt;m&lt;/b&gt; es el valor medio de la distribución y es precisamente donde se sitúa el centro de la curva, &lt;b&gt;sˆ2&lt;/b&gt; es la varianza, esto indica si los valores están más o menos alejados del valor central, si la varianza es baja los valores están próximos a la media y si es alta, entonces los valores están muy alejados de ella, se representa por sˆ2 por que su raiz cuadrada, s, es la denominada desviación estandar.&lt;br /&gt;
&lt;br /&gt;
Cuando la media de la distribución es 0 y la varianza es 1, se denomina normal tipificada, y su ventaja reside en que hay tablas o rutinas de cálculo que permiten obtener esos valores, donde se recoge la probilidad acumulada para cada punto de la curva de esta distribución.&lt;br /&gt;
&lt;br /&gt;
El modelo de la distribución normal&amp;nbsp; es el siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgFvse8Kr3iGpQn3Wq456Ecz_5czRwi3lcgctaz9z2lPnwMhxqL_ILWW8xyw0tPkluLmJ-xveUDEOkrth7oFBbouxlqLnxaNmcPYZaeSIxc9fibLGlUosPf1NAlTpUEsKakaiueOezBzGH/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+23.06.20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgFvse8Kr3iGpQn3Wq456Ecz_5czRwi3lcgctaz9z2lPnwMhxqL_ILWW8xyw0tPkluLmJ-xveUDEOkrth7oFBbouxlqLnxaNmcPYZaeSIxc9fibLGlUosPf1NAlTpUEsKakaiueOezBzGH/s1600/Captura+de+pantalla+2012-03-12+a+la%28s%29+23.06.20.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora ya explicado lo anterior eligiré una distribución binomial, ya que quiero saber la probabilidad de que nos salga un número impar o par y necesitamos mas de una prueba.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Problema planteado&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
¿Cuál es la probabilidad de obtener 5 veces el número 6 al lanzarlo 30 veces?&lt;br /&gt;
&lt;br /&gt;
Primero tenemos que identificar la probabilidad que tenemos de conseguir un numero par:&lt;br /&gt;
&lt;br /&gt;
El cual será 1/6, por lo tanto &lt;b&gt;p&lt;/b&gt; vale 0.1666,&amp;nbsp; &lt;b&gt;n&lt;/b&gt; es igual a 30 y &lt;b&gt;k&lt;/b&gt; es igual a 4 que es las veces que deseamos obtener dicho resultado.&lt;br /&gt;
&lt;br /&gt;
Para ello usaremos el siguiente modelo:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoky5NsQ2zbOI2t50Y0pqsUv9HmW2aZSeyljGqEcmd5jZZPOTT-lS0AzM-xbC4lyL_c4OsUcy7mqQZz0jAC4k_KWC7NVPCplS67fPYT99IuO-OUi66LAy0hKKd9YvqDAqOJezunjzqwHYN/s1600/Captura+de+pantalla+2012-03-12+a+la%2528s%2529+16.10.09.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoky5NsQ2zbOI2t50Y0pqsUv9HmW2aZSeyljGqEcmd5jZZPOTT-lS0AzM-xbC4lyL_c4OsUcy7mqQZz0jAC4k_KWC7NVPCplS67fPYT99IuO-OUi66LAy0hKKd9YvqDAqOJezunjzqwHYN/s1600/Captura+de+pantalla+2012-03-12+a+la%2528s%2529+16.10.09.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Por medio de octave se hizo una función en la que se usa está formula:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:cpp,c&quot;&gt;function binomial(n, p, filename)
  q = 1 - p;
  output = fopen(filename, &quot;w&quot;);
  for k = 0 : n
    fprintf(output, &quot;%d %f\n&quot;, k, bincoeff(n, k) * p**k * q**(n - k));
  endfor
  fclose(output);
endfunction
&lt;/pre&gt;
&lt;br /&gt;
Donde &lt;b&gt;k&lt;/b&gt; es el número de intentos y &lt;b&gt;bincoeff(n, k)&lt;/b&gt; es una forma simplificada de octave que nos permite resolver el coeficiente binomial, a lado de ello multiplicamos &lt;b&gt;p&lt;/b&gt; elevada a la &lt;b&gt;k&lt;/b&gt; por &lt;b&gt;1-p&lt;/b&gt; que en este caso es &lt;b&gt;q&lt;/b&gt; elevada a la &lt;b&gt;n-k&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Luego en octave lo usamos de la siguiente manera(siempre y cuando estes en la misma dirección del archivo):&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;binomial(30,0.1666,&quot;lanzamientos.dat&quot;) &lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Donde el primer valor es &lt;b&gt;n&lt;/b&gt; número de veces, el segundo valor es la &lt;b&gt;p&lt;/b&gt; probabilidad de éxito y por último el nombre que deseamos del archivo.Y como resultados obtuve lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFoCpONlvqkfclQRLE8Co70SA_F6YZzHNbhLqCrcv0KlGs1Fj6MY3Nna3bJMxkq6mXx_1_K9UQc9yw9Q2wiJ0D1T7OGLxbTbpKaIFgfDC1uFVAmsN1oA6ztUcTuh7avwHUzJ8freLVhbLF/s1600/Captura+de+pantalla+2012-03-13+a+la%28s%29+08.02.56.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFoCpONlvqkfclQRLE8Co70SA_F6YZzHNbhLqCrcv0KlGs1Fj6MY3Nna3bJMxkq6mXx_1_K9UQc9yw9Q2wiJ0D1T7OGLxbTbpKaIFgfDC1uFVAmsN1oA6ztUcTuh7avwHUzJ8freLVhbLF/s1600/Captura+de+pantalla+2012-03-13+a+la%28s%29+08.02.56.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora si vemos que el resultado de obtener 5 veces el número 6 al tirar 30 veces el dado nos da como resultado 0.1920 por lo tanto hay un 19.20% de probabilidad de obtener ese resultado.&lt;br /&gt;
&lt;br /&gt;
Ahora generamos nuestra gráfica con Gnuplot:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf-bc5gU65JWX_iF-bT6NkTNEjzpixGKh-mwwXAL8_Jrz8vXTSzWgULrVdHIzpGw_OD_zuWLQOdjwmSUza0mtuD7lOsO8HJVpm6dg9Yixdtqut9jKlZkRamcLB6IQTfNAejVJzm5Sxx_Yw/s1600/Captura+de+pantalla+2012-03-15+a+la%28s%29+18.22.45.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf-bc5gU65JWX_iF-bT6NkTNEjzpixGKh-mwwXAL8_Jrz8vXTSzWgULrVdHIzpGw_OD_zuWLQOdjwmSUza0mtuD7lOsO8HJVpm6dg9Yixdtqut9jKlZkRamcLB6IQTfNAejVJzm5Sxx_Yw/s1600/Captura+de+pantalla+2012-03-15+a+la%28s%29+18.22.45.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ahora deseamos hacerla continua, viendo las distribuciónes anteriores la única que se me hizo mas semejante al momento de generar las gráficas fue la normal, ya que me genera una campana gaussiana.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Para ello debemos calcular nuestra media y desviación estándar.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Donde la media es igual a n * p donde n sería el total de veces que quieres que aparezca y que p sería la probabilidad.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrOR9WtI3jBgXhNJpmmVyY83dTUvc6y-qm7j3_DXFQ_xEVzFf5Huq1kEDOmvpp5MKJPdsCnba-nCUupFZ4CuxFtDwhB3BQ8CP3F-dxn5DUGCkYz54OB70IQ8uwtUOMzkdccRN4OvBwLPW3/s1600/Captura+de+pantalla+2012-03-16+a+la%2528s%2529+17.05.34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrOR9WtI3jBgXhNJpmmVyY83dTUvc6y-qm7j3_DXFQ_xEVzFf5Huq1kEDOmvpp5MKJPdsCnba-nCUupFZ4CuxFtDwhB3BQ8CP3F-dxn5DUGCkYz54OB70IQ8uwtUOMzkdccRN4OvBwLPW3/s1600/Captura+de+pantalla+2012-03-16+a+la%2528s%2529+17.05.34.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ahora nuestra desviación estándar donde necesitamos sacar la raíz cuadrada n p q donde q es la resta de 1- p.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia9FLdoKuULqpDobvnCQs9WxgWcrVfHaQOn6Dw_LqY7hHbW1i3iaeK7CfDj4mKWn6heuxurOdxqpWFbcq3eQ13PsgO7CzFpwFyhougP7JzeRbdSeRnwjBrvAg2OnMiG2qz0P2BZElijtzj/s1600/Captura+de+pantalla+2012-03-16+a+la%2528s%2529+17.05.24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia9FLdoKuULqpDobvnCQs9WxgWcrVfHaQOn6Dw_LqY7hHbW1i3iaeK7CfDj4mKWn6heuxurOdxqpWFbcq3eQ13PsgO7CzFpwFyhougP7JzeRbdSeRnwjBrvAg2OnMiG2qz0P2BZElijtzj/s1600/Captura+de+pantalla+2012-03-16+a+la%2528s%2529+17.05.24.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Luego determinamos el valor de Z que es el número de desviaciones estándar de x respecto a la media de distribución.Donde su formula es la siguiente:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-6BlMFPnlhCNpIkccalNHShdNgbG7Sy6TRRbjq_azOx6EbgzgK2XILoxDcib9gVBrmKMHWBZVjqW0u_zwU2uV5IQ-Hm-WnbfmNNG2zPbud6u5ysHna0JYF7w90dMzSZa6pkZYZoIIOky/s1600/Captura+de+pantalla+2012-03-16+a+la%28s%29+17.05.12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz-6BlMFPnlhCNpIkccalNHShdNgbG7Sy6TRRbjq_azOx6EbgzgK2XILoxDcib9gVBrmKMHWBZVjqW0u_zwU2uV5IQ-Hm-WnbfmNNG2zPbud6u5ysHna0JYF7w90dMzSZa6pkZYZoIIOky/s1600/Captura+de+pantalla+2012-03-16+a+la%28s%29+17.05.12.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp;Donde x es el valor de la variable aleatoria, np es la media de la distribución de esta variable aleatoria y s es la desviación estándar de esta distribución.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ahora si lo resolvemos nos daremos cuenta que 0.00097995 nuestra Z, ahora hay que comprobar que nuestra gráfica puede ser aproximada con nuestra distribución binomial en donde por medio de una función normcdf en Octave determinamos la probabilidad de obtener 5 veces el número 6 al lanzarlo 30 veces, en donde obtenemos 0.50039 por lo tanto tenemos un 50.03% de probilidad de obtener dicho resultado, comparandolo con nuestro resultado de la distribución binomial vemos que tenemos 0.61683 por lo que tenemos un 61.68% de probabilidad.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Aquí vemos la gráfica con gnuplot de la distribución normal. &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSdxjBbuYNghDg-znH-cNR2OCj0_i1Zcb0GkEC8H7XjiMEDSTkbEseIbP6xhLtRu2RBohPTw_VPdZRKncyDh9MhbcsO1jPgEExf9tb6-2mVsc4ZUzttkh_XL9h3yPkV_B2TChgeTfR3q5H/s1600/Captura+de+pantalla+2012-03-23+a+la%28s%29+08.18.35.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSdxjBbuYNghDg-znH-cNR2OCj0_i1Zcb0GkEC8H7XjiMEDSTkbEseIbP6xhLtRu2RBohPTw_VPdZRKncyDh9MhbcsO1jPgEExf9tb6-2mVsc4ZUzttkh_XL9h3yPkV_B2TChgeTfR3q5H/s1600/Captura+de+pantalla+2012-03-23+a+la%28s%29+08.18.35.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ahora comparamos. &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjERQJSgBPqcCpR8wM8IU7L1kgP7UPqpPkB4f5aoxIoUGLYg5J4Ao-jJ9qi38rG6JVrla8tPj9Ver6iBB42RU_QCGm1vnF3HM2BMazyAWmg7efhMI21xxAmlQDM95gP0zZcHD3F5AxHKmOX/s1600/Captura+de+pantalla+2012-03-23+a+la%28s%29+08.20.36.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjERQJSgBPqcCpR8wM8IU7L1kgP7UPqpPkB4f5aoxIoUGLYg5J4Ao-jJ9qi38rG6JVrla8tPj9Ver6iBB42RU_QCGm1vnF3HM2BMazyAWmg7efhMI21xxAmlQDM95gP0zZcHD3F5AxHKmOX/s1600/Captura+de+pantalla+2012-03-23+a+la%28s%29+08.20.36.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Para llegar a dichos resultados me base en el código de mi compañero &lt;a href=&quot;http://juankenny.blogspot.mx/&quot;&gt;Juan Carlos&lt;/a&gt;, ya que tuve ciertos problemas al momento de aproximar dichas distribuciones.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:cpp,c&quot;&gt;function Normal(n, p)
distBin = fopen(&quot;binomial.dat&quot;, &quot;w&quot;);
distNor = fopen(&quot;normal.dat&quot;, &quot;w&quot;);

#Determinamos nuestra media, desviacion estandar y q
media = n * p;
q = 1.0 - p;
desviacion_estandar = sqrt(n*p*q);
k = 0.0;

while(k &lt; n)
    #Determinamos Z
  z = (k - media) / desviacion_estandar;
    # Con esta funcion creamos grafica de una distribucion normal
normal = normpdf(z, 0, 1);
    # Ajustamos nuestra grafica en base a la altura de las lineas
y = desviacion_estandar * (bincoeff(n, k) * p**k * q**(n - k));
    #Se ajusta la altura con refencia a la distribucion normal
fprintf(distBin, &quot;%f %f\n&quot;,z , y);
    # Se imprime nuestra Distribucion normal
fprintf(distNor, &quot;%f %f\n&quot;,z , normal);
k = k + 0.1;

  endwhile
  fclose(distBin);
  fclose(distNor);

endfunction

&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
Links referencia:&lt;br /&gt;
&lt;br /&gt;
www-users.math.umd.edu&lt;br /&gt;
&lt;br /&gt;
http://nutriserver.com/Cursos/Bioestadistica/Distribuciones_Continuas.html&lt;br /&gt;
&lt;br /&gt;
http://nutriserver.com/Cursos/Bioestadistica/Distribuciones_Discretas.html&lt;br /&gt;
&lt;br /&gt;
http://www.gestiopolis.com/recursos/experto/catsexp/pagans/eco/44/distrinormal.htm
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/7181836492433830322/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://modysimu.blogspot.com/2012/03/procesos-estocasticos-discretos-y.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/7181836492433830322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/7181836492433830322'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/2012/03/procesos-estocasticos-discretos-y.html' title='Procesos estocásticos discretos y contínuos'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQEtKkAGsi2oookr-Yx40q2E-HXmrY81-CCNv278HoNDu0I_0oVO5xIqgtR0idGdppOco8gFiE1Txcy36kzwW5TbnkocJ0GPR6EngJ8SvPbih-IuUOSZRZM6JJh8gC2OgCtRZBCMl_27mU/s72-c/crapsdiceroll.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1793887327383463116.post-7162889688308633533</id><published>2012-02-09T11:51:00.000-08:00</published><updated>2012-02-09T14:07:05.037-08:00</updated><title type='text'>Caso de modelo determinístico: Elevador</title><content type='html'>Para la primer entrada de este blog voy a comentar sobre ¿Qué es un modelo determinista?, y explicaré un caso de modelo determnista, elegí como ejemplo un elevado.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&amp;nbsp;¿Qué es un modelo determinista?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;Según la wikipedia un modelo determinístico es un modelo matemático donde las mismas entradas producirán invariablemente las mismas salidas, no contemplándose la existencia del azar ni el principio de incertidumbre. Está estrechamente relacionado con la creación de entornos simulados a través de simuladores para el estudio de situaciones hipotéticas, o para crear sistemas de gestión que permitan disminuir la incertidumbre.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Ahora según mi conocimiento un modelo determinístico es un modelo donde siempre habrá una salida esperada en la que no hay una variabilidad de valores aleatorios.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Ya que tenemos definido algo, explicaré sobre el caso que elegí que es el de un elevador el cual es un sistema de transporte que sirve para movilizarnos a ciertos niveles aunque en la mayoría de los casos lo conocemos como pisos.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnTbWKVRl_4eA7CPZEUMIEFT9dixNmgZvvLj5VOw1RRY16n2_w9IyE4E6I5EKGcHUSWltBNlTUn7lPGOhtUG8K_XHm4hSqEjkf-S4iWhIKmmOljIokPTtA-VE8da2Qx0RReM1dJnP886cB/s1600/elevador.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnTbWKVRl_4eA7CPZEUMIEFT9dixNmgZvvLj5VOw1RRY16n2_w9IyE4E6I5EKGcHUSWltBNlTUn7lPGOhtUG8K_XHm4hSqEjkf-S4iWhIKmmOljIokPTtA-VE8da2Qx0RReM1dJnP886cB/s320/elevador.jpg&quot; width=&quot;218&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Elegí el elevador por que tiene los aspectos determínisticos y según lo que definimos tiene salidas definidas y ninguna es aleatoria, entre los cuales se pueden mencionar las siguientes&amp;nbsp;acciones&amp;nbsp;del modelo:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Presionar botón.&lt;/li&gt;
&lt;li&gt;Abrir puerta.&lt;/li&gt;
&lt;li&gt;Presionar botón(elegir piso).&lt;/li&gt;
&lt;li&gt;Cerrar puerta.&lt;/li&gt;
&lt;li&gt;Ir a piso.&lt;/li&gt;
&lt;li&gt;Abrir Puerta.&lt;/li&gt;
&lt;li&gt;Si hay pisos en cola ir al siguiente, si no, quedarse en la misma.&lt;/li&gt;
&lt;li&gt;Cerrar Puerta.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
Una de las cosas que se observaron fue la secuencia de instrucciones, de las cuales tienen que seguir dicho patrón para que funcione como tal.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Código&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;pre class=&quot;brush:py, python&quot;&gt;
class Elevador():
 def __init__(colaPisos,posicionActual):
  self.colaPisos=colaPisos
  self.posicionActual=posicionActual
 
 def run(self):
  while True:
   direccionElevador = colaPisos[1]
   if(direccionElevador &amp;gt; posicionActual):
    moverArriba(direccionElevador)
    colaPisos[1].pop
   else:
    moverAbajo(direccionElevador)
    colaPisos[1].pop
   break

 def moverAbajo(self,direccion):
  self.posicionActual=direccion
  print&#39;Posicion Actual &#39;,self.posicionActual
  print&#39;Cerrando Puerta&#39;
 
 def moverArriba(self,direccion):
  self.posicionActual=direccion
  print&#39;Posicion Actual &#39;,self.posicionActual
  print&#39;Cerrando Puerta&#39;

def main():
 print &#39;Presiona boton&#39;
 m = raw_input()
 while m != &#39;&#39;:
  print&#39;Abre puerta&#39;
  print &#39;Selecciona un piso&#39;
  n = raw_input()
  colaPisos = []
  colaPisos.append(n)
  posicionActual = [5]
  print&#39;Estas en el piso &#39;,posicionActual
  elevador = Elevador(colaPisos,posicionActual)
  elevador.start()
&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Links de referencia:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Definición corta de determinista wikipedia&lt;/div&gt;
&lt;a href=&quot;http://es.wikipedia.org/wiki/Modelo_determin%C3%ADstico&quot;&gt;es.wikipedia.org/wiki/Modelo_determinístico&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Imagen del elevador&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;http://blog.wegowise.com/Portals/107469/images/&quot;&gt;http://blog.wegowise.com/Portals/107469/images/&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://modysimu.blogspot.com/feeds/7162889688308633533/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://modysimu.blogspot.com/2012/02/caso-de-modelo-deterministicoelevador.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/7162889688308633533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1793887327383463116/posts/default/7162889688308633533'/><link rel='alternate' type='text/html' href='http://modysimu.blogspot.com/2012/02/caso-de-modelo-deterministicoelevador.html' title='Caso de modelo determinístico: Elevador'/><author><name>Saúl Gausin</name><uri>http://www.blogger.com/profile/00364409686961382810</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnTbWKVRl_4eA7CPZEUMIEFT9dixNmgZvvLj5VOw1RRY16n2_w9IyE4E6I5EKGcHUSWltBNlTUn7lPGOhtUG8K_XHm4hSqEjkf-S4iWhIKmmOljIokPTtA-VE8da2Qx0RReM1dJnP886cB/s72-c/elevador.jpg" height="72" width="72"/><thr:total>1</thr:total></entry></feed>