പ്രമാണം:Birthdaymatch.svg
testwiki സംരംഭത്തിൽ നിന്ന്
വഴികാട്ടികളിലേക്ക് പോവുക
തിരച്ചിലിലേക്ക് പോവുക
ഈ SVG പ്രമാണത്തിന്റെ PNG പ്രിവ്യൂവിന്റെ വലിപ്പം: 720 × 540 പിക്സലുകൾ. മറ്റ് റെസലൂഷനുകൾ: 320 × 240 പിക്സലുകൾ | 640 × 480 പിക്സലുകൾ | 1,024 × 768 പിക്സലുകൾ | 1,280 × 960 പിക്സലുകൾ | 2,560 × 1,920 പിക്സലുകൾ.
പൂർണ്ണ വലിപ്പം (എസ്.വി.ജി. പ്രമാണം, നാമമാത്രമായ 720 × 540 പിക്സലുകൾ, പ്രമാണത്തിന്റെ വലിപ്പം: 291 കെ.ബി.)
ഈ പ്രമാണം വിക്കിമീഡിയ കോമൺസ് സംരംഭത്തിൽ നിന്നുമുള്ളതാണ്, മറ്റു പദ്ധതികൾ ഇതുപയോഗിക്കുന്നുണ്ടാകാം. ഈ പ്രമാണത്തിന്റെ വിവരണ താളിലുള്ള വിവരങ്ങൾ താഴെ കൊടുത്തിരിക്കുന്നു.
ചുരുക്കം
| വിവരണംBirthdaymatch.svg |
English: 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. |
| തീയതി | |
| സ്രോതസ്സ് | സ്വന്തം സൃഷ്ടി |
| സ്രഷ്ടാവ് | Guillaume Jacquenot |
| SVG വികസനം InfoField | |
| സോഴ്സ് കോഡ്(കമ്പ്യൂട്ടിംഗ്) InfoField | Python code# -*- coding: utf-8 -*-
#
# Script to generate in English and French, graphs for the
# birthday problem.
# More precisely, it generates two SVG files representing the
# probability of no match of two identical birthday one the same
# wrt the number of person in the considered group.
#
# **************************************************************
# 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
# **************************************************************
#
# Implementation:
# To ensure numerical accuracy, one evaluates the log10 of the
# probabibity of no match. This allows to converts the
# probability formula from a product formula to a sum formula.
#
#
# Guillaume Jacquenot
# 2013/03/10
import matplotlib.pyplot as plt
from matplotlib import rc
rc('font',**{'family':'serif','serif':['Palatino'],'size':14})
rc('text', usetex=True)
import numpy as np
def BirthdaymatchComputationLog10():
'''
This function evaluates the log10 probability of no
match for the birthday paradox.
This ensures no approximation on the result.
$\log _{10} \left( {\bar p(n)} \right) =
\sum\limits_{i = 365 + 1 - n}^{365}
{\log _{10} \left( i \right)}
- n\log _{10} \left( {365} \right)$
'''
n=np.arange(1,365)
nR=np.arange(365,1,-1)
p=np.cumsum(np.log10(nR))-n*np.log10(365)
return n,p
def BirthdaymatchGenerateTitle(logTitle=False):
if logTitle:
title='$\\log _{10} \\left( {\\bar p(n)} \\right)\
= \\sum\\limits_{i = 365 + 1 - n}^{365}\
{\\log _{10} \\left( i \\right)}\
- n\\log _{10} \\left( {365} \\right)$'
else:
title='$\\bar p(n) = \\frac{365!}{365^n\
\\left( {365 - n} \\right)!}$'
return title
def Birthdaymatch(\
labels={'xlabel':'Number of people',\
'ylabel':'Probability of no match',\
'title':'Birthday paradox'},\
outputFilename = r'Birthdaymatch.svg'):
n,p = BirthdaymatchComputationLog10()
fig, ax = plt.subplots()
plt.plot(n,p,c='k', linestyle='-')
plt.grid(True, ls='-', c='#a0a0a0')
plt.xlabel(labels['xlabel'])
plt.ylabel(labels['ylabel'])
plt.title(labels['title']+' - '+BirthdaymatchGenerateTitle())
fig.canvas.draw()
labels = [item.get_text() for item in ax.get_yticklabels()]
labels = [label[1:] if label.startswith('$') else label for label in labels]
labels = [label[0:-1] if label.endswith('$') else label for label in labels]
labels = ['$10^{'+label+'}$' for label in labels]
ax.set_yticklabels(labels)
plt.savefig(outputFilename)
Birthdaymatch()
Birthdaymatch(\
labels={'xlabel':u"Nombre de personnes",\
'ylabel':u"Probabilit\\'e de non correspondance",\
'title':u"Paradoxe des anniversaires"},\
outputFilename = r'Birthdaymatch_FR.svg')
|
അനുമതി
ഈ സൃഷ്ടിയുടെ പകർപ്പവകാശ ഉടമയായ ഞാൻ, താഴെ പറയുന്ന അനുമതിയിൽ ഈ സൃഷ്ടി ഇതിനാൽ പ്രസിദ്ധീകരിക്കുന്നു:
ഈ പ്രമാണത്തിന് അനുമതി നൽകപ്പെട്ടിരിക്കുന്നത് ക്രിയേറ്റീവ് കോമൺസ് ആട്രിബ്യൂഷൻ-ഷെയർ എലൈക് 3.0 അൺപോർട്ടഡ് അനുവാദപത്ര പ്രകാരമാണ്.
- താങ്കൾക്കുള്ള സ്വാതന്ത്ര്യങ്ങൾ:
- പങ്ക് വെയ്ക്കൽ – കൃതി പകർത്താനും, വിതരണം ചെയ്യാനും, പ്രസരിപ്പിക്കാനും
- പുനഃമിശ്രണം ചെയ്യൽ – കൃതി അനുയുക്തമാക്കാൻ
- താഴെ പറയുന്ന ഉപാധികൾ പാലിക്കുക:
- കടപ്പാട് – രചയിതാവോ അനുമതിയുള്ളയാളോ വ്യക്തമാക്കിയിട്ടുള്ള വിധത്തിൽ കൃതിയ്ക്കുള്ള കടപ്പാട് താങ്കൾ നൽകിയിരിക്കണം. താങ്കൾക്കിത് ഏത് വിധത്തിൽ വേണമെങ്കിലും ചെയ്യാവുന്നതാണ്, പക്ഷേ അത് അവർ താങ്കളേയോ താങ്കളുടെ ഉപയോഗത്തേയോ അടിച്ചേൽപ്പിച്ചതു പോലെയാവരുത്.
- ഇതു പോലെ പങ്ക് വെയ്ക്കുക – ഈ സൃഷ്ടിയെ പുനഃമിശ്രണം ചെയ്തോ രൂപാന്തരപ്പെടുത്തിയോ അടിസ്ഥാനപ്പെടുത്തിയോ ഉണ്ടാക്കുന്നവ; താങ്കളുടെ സംഭാവനയടക്കമുള്ള സൃഷ്ടി യഥാർത്ഥ സൃഷ്ടിയുടെ അതേ അല്ലെങ്കിൽ അനുരൂപമായ ഉപയോഗാനുമതിയിൽ മാത്രമേ താങ്കൾ വിതരണം ചെയ്യാവൂ.
തലവാചകങ്ങൾ
ഈ പ്രമാണം എന്തിനെ പ്രതിനിധീകരിക്കുന്നുവെന്ന ഒറ്റവരി വിശദീകരണം ചേർക്കുക
ഈ പ്രമാണത്തിൽ ചിത്രീകരിച്ചിരിക്കുന്ന ഇനങ്ങൾ
സൃഷ്ടിയിലുള്ളത്
10 മാർച്ച് 2013
image/svg+xml
68b9c96e2a245296ec08bbfe7963536985e6cf9e
data size ഇംഗ്ലീഷ്
2,97,936 ബൈറ്റ്
540 പിക്സൽ
720 പിക്സൽ
പ്രമാണ നാൾവഴി
ഏതെങ്കിലും തീയതി/സമയ കണ്ണിയിൽ ഞെക്കിയാൽ പ്രസ്തുതസമയത്ത് ഈ പ്രമാണം എങ്ങനെയായിരുന്നു എന്നു കാണാം.
| തീയതി/സമയം | ലഘുചിത്രം | അളവുകൾ | ഉപയോക്താവ് | അഭിപ്രായം | |
|---|---|---|---|---|---|
| നിലവിലുള്ളത് | 20:39, 10 മാർച്ച് 2013 | 720 × 540 (291 കെ.ബി.) | wikimediacommons>Gjacquenot | User created page with UploadWizard |
പ്രമാണത്തിന്റെ ഉപയോഗം
താഴെ കാണുന്ന താളിൽ ഈ ചിത്രം ഉപയോഗിക്കുന്നു:
"https://ml.wiki.beta.math.wmflabs.org/wiki/പ്രമാണം:Birthdaymatch.svg" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്