Dosya:Birthday paradox probability.svg
testwiki sitesinden
Gezinti kısmına atla
Arama kısmına atla
Bu SVG dosyasının PNG önizlemesinin boyutu: 720 × 540 piksel. Diğer çözünürlükler: 320 × 240 piksel | 640 × 480 piksel | 1.024 × 768 piksel | 1.280 × 960 piksel | 2.560 × 1.920 piksel.
Orijinal dosya (SVG dosyası, sözde 720 × 540 piksel, dosya boyutu: 51 KB)
Bu dosya Wikimedia Commons deposunda bulunmaktadır ve diğer projeler tarafından kullanılıyor olabilir. Aşağıda dosya açıklama sayfasındaki açıklama gösteriliyor.
Özet
| AçıklamaBirthday paradox probability.svg |
English: In probability theory, the birthday paradox concerns the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday. By the pigeonhole principle, the probability reaches 100% when the number of people reaches 367 (since there are 366 possible birthdays, including February 29). However, 99% probability is reached with just 57 people, and 50% probability with 23 people. These conclusions are based on the assumption that each day of the year (except February 29) is equally probable for a birthday. |
| Tarih | |
| Kaynak | Yükleyenin kendi çalışması |
| Yazar | Guillaume Jacquenot |
| SVG gelişimi InfoField | |
| Kaynak kodu InfoField | Python code# -*- coding: utf-8 -*-
#
# Script to generate in English and French, graphs for the
# birthday problem.
#
# **************************************************************
# http://en.wikipedia.org/wiki/Birthday_problem
# From Wikipedia, the free encyclopedia:
# In probability theory, the birthday problem or birthday
# paradox concerns the probability that, in a set of n
# randomly chosen people, some pair of them will have the
# same birthday. By the pigeonhole principle, the probability
# reaches 100% when the number of people reaches 367
# (since there are 366 possible birthdays, including February
# 29). However, 99% probability is reached with just 57 people,
# and 50% probability with 23 people. These conclusions are
# based on the assumption that each day of the year (except
# February 29) is equally probable for a birthday.
#
# The mathematics behind this problem led to a well-known
# cryptographic attack called the birthday attack, which
# uses this probabilistic model to reduce the complexity
# of cracking a hash function.
#
# Text under the
# Creative Commons Attribution-ShareAlike License
# **************************************************************
#
#
# Guillaume Jacquenot
# 2012/12/16
from pylab import *
import numpy as np
def makePlot(
generateEnglishPlot = True,
outputFilename = r'Birthday_paradox.svg',
useYLogScale = False):
N=91
n = np.arange(float(N))
pbar=np.exp(-n* (n-1) / (2.0*365.0))
p=1.0-pbar
n05 = 0.5*(1.0+np.sqrt(1-8.0*365.0*np.log(1.0-0.5)))
plot([n05,n05],[0.0,0.5],c='k', linestyle='--')
plot([0.0,n05],[0.5,0.5],c='k', linestyle='--')
text(23.5,0.02,' ~23')
if generateEnglishPlot:
plot(n,p ,c='r',label = unicode('Probability of a pair', 'utf8'))
plot(n,pbar,c='b',label = unicode('Probability of no matching pair', 'utf8'))
else:
plot(n,p ,c='r',label = unicode('Probabilité de coïncidence', 'utf8'))
plot(n,pbar,c='b',label = unicode('Probabilité de non-coïncidence', 'utf8'))
legend(loc='right')
xlim(0, N)
if useYLogScale:
ylim(1e-6, 1)
ax = gca()
ax.set_yscale('log')
else:
ylim(0, 1)
yticks([0.0,0.2,0.4,0.5,0.6,0.8,1.0])
xticks(range(0, N, 10))
grid(True, ls='-', c='#a0a0a0')
if generateEnglishPlot:
xlabel('Number of people')
ylabel('Probability')
else:
xlabel('Nombre de personnes')
ylabel(unicode('Probabilité', 'utf8'))
savefig(outputFilename)
show()
makePlot(generateEnglishPlot = True, outputFilename = r'Birthday_paradox.svg')
makePlot(generateEnglishPlot = False, outputFilename = r'Paradoxe_anniversaire.svg')
|
Lisanslama
Ben, bu işin telif sahibi, burada işi aşağıdaki lisans altında yayımlıyorum:
Bu dosya, Creative Commons Atıf-Benzer Paylaşım 3.0 Taşınmamış lisansı ile lisanslanmıştır
- Şu seçeneklerde özgürsünüz:
- paylaşım – eser paylaşımı, dağıtımı ve iletimi
- içeriği değiştirip uyarlama – eser adaptasyonu
- Aşağıdaki koşullar geçerli olacaktır:
- atıf – Esere yazar veya lisans sahibi tarafından belirtilen (ancak sizi ya da eseri kullanımınızı desteklediklerini ileri sürmeyecek bir) şekilde atıfta bulunmalısınız.
- benzer paylaşım – Maddeyi yeniden düzenler, dönüştürür veya inşa ederseniz, katkılarınızı özgünüyle aynı veya uyumlu lisans altında dağıtmanız gerekir.
Altyazılar
Bu dosyanın temsil ettiği şeyin tek satırlık açıklamasını ekleyin.
Bu dosyada gösterilen öğeler
betimlenen
16 Aralık 2012
image/svg+xml
3b38941255998a827e98c5fab5e563dc1bf89d10
52.556 bayt
540 piksel
720 piksel
software used for creation İngilizce
Dosya geçmişi
Dosyanın herhangi bir zamandaki hâli için ilgili tarih/saat kısmına tıklayın.
| Tarih/Saat | Küçük resim | Boyutlar | Kullanıcı | Yorum | |
|---|---|---|---|---|---|
| güncel | 22.01, 16 Aralık 2012 | 720 × 540 (51 KB) | wikimediacommons>Gjacquenot | User created page with UploadWizard |
Dosya kullanımı
Aşağıdaki sayfa bu dosyayı kullanmaktadır:
"https://tr.wiki.beta.math.wmflabs.org/wiki/Dosya:Birthday_paradox_probability.svg" sayfasından alınmıştır