File:Negbinomial.gif

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Negbinomial.gif(250 × 149 pixels, file size: 26 KB, MIME type: image/gif, looped, 8 frames, 21 s)

Summary

Description
English: Probability mass function of a negative binomial distribution
Date
Source Own work
Author Stpasha
Other versions File:Negative binomial.svg

Source code in Mathematica

g = Table[
  ListPlot[
    Table[{k, Binomial[k + r - 1, r - 1] (r/(10 + r))^r (1 - r/(10 + r))^k}, {k, 0, 25}],
    PlotRange -> 0.118, 
    Filling -> Axis,
    PlotStyle -> PointSize[0.02], 
    FillingStyle -> Directive[Hue[0.6], Thickness[0.01], Opacity[0.3]],
    Epilog -> Inset[Style["\!\(\*StyleBox[\"r\",\nFontSlant->\"Italic\"]\) = " <> ToString[r], 16], {23, 0.08}], 
    Prolog -> {Opacity[0.5], Green, Thin, Line[{{10 - Sqrt[(10 (10 + r))/r], .1}, {10 + Sqrt[(10 (10 + r))/r], .1}}], 
               Dashed, Thick, Orange, Line[{{10, 0}, {10, 1}}]},
    ImageSize -> 200,
    LabelStyle -> Directive[Larger],
    AxesLabel -> {"\!\(\*StyleBox[\"k\",\nFontSlant->\"Italic\"]\)"},
    AxesOrigin -> {-1, 0}
    ], 
  {r, {1, 2, 3, 4, 5, 10, 20, 40}}
  ]
Export["c:/users/stpasha/documents/negbinomial.gif", g, "DisplayDurations" -> {.5, .5, .5, .5, .5, .5, .5, .15}, "TransparentColor" -> White, ImageSize -> 250]

Licensing

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

18 January 2010

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current05:12, 10 January 2012Thumbnail for version as of 05:12, 10 January 2012250 × 149 (26 KB)DerekleungtszheiAdded transparent background to make it better on gray background.
22:56, 4 February 2011Thumbnail for version as of 22:56, 4 February 2011250 × 149 (29 KB)StpashaOrigin moved to 0
01:01, 19 January 2010Thumbnail for version as of 01:01, 19 January 2010250 × 149 (29 KB)StpashaSize increased to 250px
23:26, 18 January 2010Thumbnail for version as of 23:26, 18 January 2010200 × 118 (24 KB)Stpasha{{Information |Description={{en|1=Probability mass function of a negative binomial distribution}} |Source=Own work |Author=Stpasha |Date=Jan 18, 2010 |Permission= |other_versions=Negative binomial.svg }} == Source code in Mathematica
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file: