File:Normal approximation to binomial.svg
From Wikimedia Commons, the free media repository
Normal_approximation_to_binomial.svg (SVG file, nominally 600 × 480 pixels, file size: 18 KB)
[edit] Summary
svg version of the same png Normal_approximation_to_binomial.png file. Original author: User:MarkSweep Created with gnuplot.
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 svg
set output "Normal approximation to binomial.svg"
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)"
[edit] Licensing
| This file is licensed under the Creative Commons Attribution ShareAlike 3.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 This licensing tag was added to this file as part of the GFDL licensing update. Alemannisch | Беларуская (тарашкевіца) | Català | Česky | Deutsch | Deutsch (Sie-Form) | Ελληνικά | English | Español | Eesti | Suomi | Français | Hrvatski | Հայերեն | Italiano | 한국어 | Lietuvių | Македонски | Polski | Português | Português do Brasil | Русский | Svenska | ไทย | Vèneto | Tiếng Việt | +/− |
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 14:56, 21 November 2006 | 600×480 (18 KB) | Vasiliev Mihail (talk | contribs) | (svg version of the same png file. Created with gnuplot. ) |
- Edit this file using an external application (See the setup instructions for more information)
File links
The following page links to this file:
Global file usage
The following other wikis use this file:
- Usage of Normal approximation to binomial.svg on dewiki
- Usage of Normal approximation to binomial.svg on enwiki