Image:Gamma distribution pdf.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is attempting to create a freely licensed media file repository. You can help.

See the image on the commons for gnuplot source.

Related links:

_ln_dgamma(x, a, b) = a*log(b) - lgamma(a) + (a-1)*log(x) - b*x dgamma(x, shape, rate) =\

(x<0)? 0 :\
(x==0)? ((shape<1)? 1/0 : (shape==1)? rate : 0) :\
(rate==0)? 0 :\
exp(_ln_dgamma(x, shape, rate))

pgamma(x, shape, rate) = (x<0)? 0 : igamma(shape, x*rate)

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

set xtics 0,2 set ytics 0,0.1

f(x, k, t) = dgamma(x, k, 1.0/t) set key top right

  1. f(x, k, t) = pgamma(x, k, 1.0/t)
  2. set key bottom right

plot [0:20] \

   f(x,1,1.0) title "{/Times-Italic k} = 1, {/Symbol q} = 1.0", \
   f(x,2,2.0) title "{/Times-Italic k} = 2, {/Symbol q} = 2.0", \
   f(x,3,2.0) title "{/Times-Italic k} = 3, {/Symbol q} = 2.0", \
   f(x,5,1.0) title "{/Times-Italic k} = 5, {/Symbol q} = 1.0", \
   f(x,9,0.5) title "{/Times-Italic k} = 9, {/Symbol q} = 0.5" lt 7

Probability density function for the Gamma 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".

العربية | Asturianu | Български | বাংলা | ইমার ঠার | Brezhoneg | Bosanski | Català | Sinugboanong Binisaya | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | 한국어 | Kurdî / كوردي | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | Norsk (nynorsk) | Norsk (bokmål) | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | 中文(简体) | 中文(繁體) | +/-


gnuplot source under GPL:

_ln_dgamma(x, a, b) = a*log(b) - lgamma(a) + (a-1)*log(x) - b*x
dgamma(x, shape, rate) =\
 (x<0)? 0 :\
 (x==0)? ((shape<1)? 1/0 : (shape==1)? rate : 0) :\
 (rate==0)? 0 :\
 exp(_ln_dgamma(x, shape, rate))
pgamma(x, shape, rate) = (x<0)? 0 : igamma(shape, x*rate)

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

set xtics 0,2
set ytics 0,0.1

f(x, k, t) = dgamma(x, k, 1.0/t)
set key top right

#f(x, k, t) = pgamma(x, k, 1.0/t)
#set key bottom right

plot [0:20] \
    f(x,1,2.0) title "{/Times-Italic k} = 1, {/Symbol q} = 2.0", \
    f(x,2,2.0) title "{/Times-Italic k} = 2, {/Symbol q} = 2.0", \
    f(x,3,2.0) title "{/Times-Italic k} = 3, {/Symbol q} = 2.0", \
    f(x,5,1.0) title "{/Times-Italic k} = 5, {/Symbol q} = 1.0", \
    f(x,9,0.5) title "{/Times-Italic k} = 9, {/Symbol q} = 0.5" lt 7
GNU head 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 the GNU General Public License for more details.

العربية ǀ Česky ǀ Deutsch ǀ English ǀ Español ǀ فارسی ǀ Français ǀ Italiano ǀ 日本語 ǀ Nederlands ǀ Polski ǀ Português ǀ Русский ǀ Svenska ǀ Türkçe ǀ 简体中文 ǀ 正體中文 ǀ +/-

This image should be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Images for cleanup for more information. If an SVG form of this image is already available, please upload it. After uploading an SVG, replace this template with template {{SupersededSVG|new image name.svg}} in this image.

Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Русский | العربية | 正體中文 | +/-

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):