File:Negbinomial.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

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[edit]

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[edit]

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.

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)Derekleungtszhei (talk | contribs)Added 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)Stpasha (talk | contribs)Origin moved to 0
01:01, 19 January 2010Thumbnail for version as of 01:01, 19 January 2010250 × 149 (29 KB)Stpasha (talk | contribs)Size increased to 250px
23:26, 18 January 2010Thumbnail for version as of 23:26, 18 January 2010200 × 118 (24 KB)Stpasha (talk | contribs){{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

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: