File:Normal approximation to binomial.png

File:Normal approximation to binomial.svg is a vector version of this file. It should be used in place of this PNG file.Category:Superior vector version available

File:Normal approximation to binomial.png → File:Normal approximation to binomial.svg

For more information, see Help:SVG.

In other languages
Alemannisch  العربية  беларуская (тарашкевіца)  български  বাংলা  català  нохчийн  čeština  dansk  Deutsch  Ελληνικά  English  British English  Esperanto  español  eesti  euskara  فارسی  suomi  français  Frysk  galego  Alemannisch  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  Ido  italiano  日本語  ქართული  한국어  lietuvių  македонски  മലയാളം  Bahasa Melayu  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  norsk nynorsk  norsk  occitan  polski  prūsiskan  português  português do Brasil  română  русский  sicilianu  Scots  slovenčina  slovenščina  српски / srpski  svenska  தமிழ்  ไทย  Türkçe  татарча / tatarça  українська  vèneto  Tiếng Việt  中文  中文(中国大陆)  中文(简体)  中文(繁體)  中文(马来西亚)  中文(新加坡)  中文(臺灣)  +/−
New SVG image

Plot of the probability density function of a normal distribution approximating the probability mass function of a binomial distribution

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.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
Category:CC-BY-SA-3.0-migrated#Normal%20approximation%20to%20binomial.pngCategory:License migration completed#Normal%20approximation%20to%20binomial.pngCategory:GFDL#Normal%20approximation%20to%20binomial.png

Note: "Norm(12, 3)" is a normal distribution with a mean of 12 and a standard deviation of 3. Its variance is 48 × 1/4 × 3/4 = 9.

gnuplot source under GPL:

# normal (Gaussian) distribution
_ln_dnorm(x, m, s) = -0.5 * log(2*pi) - log(s) - 0.5*((x-m)*1.0/s)**2
dnorm(x, mean, sd) = exp(_ln_dnorm(x, mean, sd))
pnorm(x, mean, sd) = norm((x-mean) * 1.0/sd)

# binomial distribution
_ln_binom(x, n, p) =\
 lgamma(n+1) - lgamma(x+1) - lgamma(n-x+1) + x*log(p) + (n-x)*log(1-p)
dbinom(x, size, prob) = (x==int(x))? exp(_ln_binom(floor(x), size,  prob)) : 0
pbinom(x, size, prob) =\
 (x<0)? 0 : (x<size)? ibeta(size-floor(x), floor(x)+1, 1-prob) : 1

set terminal postscript enhanced color solid lw 2 "Times-Roman" 20
set output

set key 22,0.13

n = 48
p = 0.25
xmax = 25

set samples 50*xmax+1

plot [0:xmax] \
    dbinom(x, n, p) with impulses title "Binom(48, 0.25)", \
    dnorm(x, n*p, sqrt(n*p*(1-p))) linetype 3 title "Norm(12, 3)"

This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This work is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See version 2 and version 3 of the GNU General Public License for more details.

Category:GPL Category:Normal distribution Category:Binomial distributions Category:Media missing infobox template
Category:Binomial distributions Category:CC-BY-SA-3.0-migrated Category:Files with no machine-readable author Category:Files with no machine-readable source Category:GFDL Category:GPL Category:License migration completed Category:Media missing infobox template Category:Normal distribution Category:Superior vector version available