File:Birthday paradox.svg

From Wikimedia Commons, the free media repository

Jump to: navigation, search

Birthday_paradox.svg(SVG file, nominally 575 × 291 pixels, file size: 188 KB)

[edit] Summary

Description

Vectorial version of Image:050329-birthday1.png

Date

7 March 2008(2008-03-07)

Source

Own work

Author

Toobaz

Permission
(Reusing this image)

GFDL

Made with pylab (started with "ipython -pylab"). Here is the code:

 def inv_prob(n):
         if n == 0:
                 return 1
         if n > 365:
                 return 0
         return inv_prob(n-1)*(1-(n-1.)/365)
 
 def probarray():
         arr=[]
         for people in range(364):
                 arr.append(1-inv_prob(people))
         return arr
 
 
 def qrobarray():
         arr=[0]
         for people in range(399):
                 arr.append(1-((1-arr[people])*(1-1./365)))
         return arr
 
 plot(qrobarray())
 plot(probarray())
 text(200,.5,'q(n)', color='blue')
 text(35,.6,'p(n)', color='green')

[edit] Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Беларуская | Беларуская (тарашкевіца) | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Հայերեն | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | 文言 | Македонски | Bahasa Melayu | Malti | Nnapulitano | Plattdüütsch | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | Kiswahili | తెలుగు | ไทย | Tagalog | Türkçe | Українська | اردو | Vèneto | Tiếng Việt | Volapük | Yorùbá | 中文 | ‪中文(简体)‬ | ‪中文(繁體)‬ | +/−

Creative Commons license
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike 3.0, Attribution ShareAlike 2.5, Attribution ShareAlike 2.0 and Attribution ShareAlike 1.0 License. In short: you are free to share and make derivative works of the file under the conditions that you appropriately attribute it, and that you distribute it only under a license identical to this one. Official license.

Afrikaans | Беларуская | Беларуская (тарашкевіца) | Български | Català | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | Estremeñu | Suomi | Français | עברית | Hrvatski | Հայերեն | Italiano | 日本語 | 한국어 | Lietuvių | Македонски | Plattdüütsch | Nederlands | ‪Norsk (bokmål)‬ | Occitan | Polski | Piemontèis | Português | Română | Русский | Slovenčina | ไทย | Vèneto | Tiếng Việt | 中文 | ‪中文(简体)‬ | ‪中文(繁體)‬ | +/−

You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current02:40, 7 March 2008Thumbnail for version as of 02:40, 7 March 2008575×291 (188 KB)Toobaz (talk | contribs) ({{Information |Description=Vectorial version of Image:050329-birthday1.png |Source=self-made |Date=07 Mar 2008 |Author= Toobaz |Permission= GFDL }} Made with pylab (started with "ipython -pylab). Here is the code: def inv_prob(n): )

The following page links to this file:

Global file usage

The following other wikis use this file: