Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • Notebook Assistant + LLM Kit

    All-in-one AI assistance for your Wolfram experience

  • Compute Services
  • System Modeler
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • AI & Linguistic Understanding

Deployment Options

  • Wolfram Cloud
  • wolframscript
  • Wolfram Engine Community Edition
  • Wolfram LLM API
  • WSTPServer
  • Wolfram|Alpha APIs

From the Community

  • Function Repository
  • Community Paclet Repository
  • Example Repository
  • Neural Net Repository
  • Prompt Repository
  • Wolfram Demonstrations
  • Data Repository
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

  • Data & Computational Intelligence
  • Model-Based Design
  • Algorithm Development
  • Wolfram|Alpha for Business
  • Blockchain Technology
  • Education Technology
  • Quantum Computation

Wolfram Consulting

Wolfram Solutions

  • Data Science
  • Artificial Intelligence
  • Biosciences
  • Healthcare Intelligence
  • Sustainable Energy
  • Control Systems
  • Enterprise Wolfram|Alpha
  • Blockchain Labs

More Wolfram Solutions

Wolfram Solutions For Education

  • Research Universities
  • Colleges & Teaching Universities
  • Junior & Community Colleges
  • High Schools
  • Educational Technology
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM/STEAM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
Wolfram|Alpha
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • Notebook Assistant + LLM Kit
    • Compute Services
    • System Modeler
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • AI & Linguistic Understanding
    • Deployment Options
      • Wolfram Cloud
      • wolframscript
      • Wolfram Engine Community Edition
      • Wolfram LLM API
      • WSTPServer
      • Wolfram|Alpha APIs
    • From the Community
      • Function Repository
      • Community Paclet Repository
      • Example Repository
      • Neural Net Repository
      • Prompt Repository
      • Wolfram Demonstrations
      • Data Repository
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions

    We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

    WolframConsulting.com

    Wolfram Solutions

    • Data Science
    • Artificial Intelligence
    • Biosciences
    • Healthcare Intelligence
    • Sustainable Energy
    • Control Systems
    • Enterprise Wolfram|Alpha
    • Blockchain Labs

    More Wolfram Solutions

    Wolfram Solutions For Education

    • Research Universities
    • Colleges & Teaching Universities
    • Junior & Community Colleges
    • High Schools
    • Educational Technology
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM/STEAM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • Wolfram|Alpha
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
NegativeMultinomialDistribution
  • See Also
    • NegativeBinomialDistribution
    • MultinomialDistribution
  • Related Guides
    • Parametric Statistical Distributions
    • Urn Model Distributions
    • See Also
      • NegativeBinomialDistribution
      • MultinomialDistribution
    • Related Guides
      • Parametric Statistical Distributions
      • Urn Model Distributions

NegativeMultinomialDistribution[n,p]

represents a negative multinomial distribution with parameter n and failure probability vector p.

Details
Details and Options Details and Options
Background & Context
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
Possible Issues  
See Also
Related Guides
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • NegativeBinomialDistribution
    • MultinomialDistribution
  • Related Guides
    • Parametric Statistical Distributions
    • Urn Model Distributions
    • See Also
      • NegativeBinomialDistribution
      • MultinomialDistribution
    • Related Guides
      • Parametric Statistical Distributions
      • Urn Model Distributions

NegativeMultinomialDistribution

NegativeMultinomialDistribution[n,p]

represents a negative multinomial distribution with parameter n and failure probability vector p.

Details

  • The probability for a vector of non-negative integers , , …, , where is the length of in a negative multinomial distribution, is proportional to .
  • The parameter n can be any positive real number, and p can be any vector of non-negative real numbers that sum to less than unity.
  • If n is a positive integer, NegativeMultinomialDistribution[n,p] gives the distribution of the failure counts in a sequence of trials with success probability 1-Total[p] and Length[p] types of failure before n successes occur.
  • NegativeMultinomialDistribution allows n and components of vector p to be dimensionless quantities. »
  • NegativeMultinomialDistribution can be used with such functions as Mean, CDF, and RandomVariate.

Background & Context

  • NegativeMultinomialDistribution[n,{p1,p2,…,pm}] represents a discrete multivariate statistical distribution supported over the subset of consisting of all tuples of integers satisfying and characterized by the property that each of the ^(th) (univariate) marginal distributions has a NegativeBinomialDistribution for . In other words, each of the variables satisfies xjBinomialDistribution[n,qj] for some probabilities qj where . The negative multinomial distribution is parametrized by a positive real number n and a vector {p1,p2,…,pm} of non-negative real numbers satisfying (called a "failure probability vector"), which together define the associated mean, variance, and covariance of the distribution.
  • The negative multinomial distribution was first investigated in the mid-1950s as a multivariate analogue of the univariate negative binomial distribution (NegativeBinomialDistribution). Analogously to the univariate case, NegativeMultinomialDistribution[n,{p1,p2,…,pm}] for integer n gives the distribution of the failure counts in a sequence of trials with success probability and m types of failure before n successes occur. The negative multinomial distribution has been used to model phenomena including epidemics, accident frequency, reliability, and industrial absenteeism.
  • RandomVariate can be used to give one or more machine- or arbitrary-precision (the latter via the WorkingPrecision option) pseudorandom variates from a negative multinomial distribution. Distributed[x,NegativeMultinomialDistribution[n,{p1,p2,…,pm}]] , written more concisely as xNegativeMultinomialDistribution[n,{p1,p2,…,pm}], can be used to assert that a random variable x is distributed according to a negative multinomial distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
  • The probability density and cumulative distribution functions for negative multinomial distributions may be given using PDF[NegativeMultinomialDistribution[n,{p1,p2,…,pm}]] and CDF[NegativeMultinomialDistribution[n,{p1,p2,…,pm}]]. The mean, median, variance, covariance, raw moments, and central moments may be computed using Mean, Median, Variance, Covariance, Moment, and CentralMoment, respectively.
  • DistributionFitTest can be used to test if a given dataset is consistent with a negative multinomial distribution, EstimatedDistribution to estimate a negative multinomial parametric distribution from given data, and FindDistributionParameters to fit data to a negative multinomial distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic negative multinomial distribution and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic negative multinomial distribution.
  • TransformedDistribution can be used to represent a transformed negative multinomial distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higher-dimensional distributions that contain a negative multinomial distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving negative multinomial distributions.
  • NegativeMultinomialDistribution is related to a number of other distributions. It is a higher-dimensional generalization of NegativeBinomialDistribution in the sense that the PDF of NegativeBinomialDistribution[n,p] with respect to a variable x is precisely the same as that of NegativeMultinomialDistribution[n,{1-p}] written in terms of the vector {x}. NegativeMultinomialDistribution is also related to BinomialDistribution, MultinomialDistribution, BernoulliDistribution, BetaBinomialDistribution, HypergeometricDistribution, GeometricDistribution, and PoissonDistribution.

Examples

open all close all

Basic Examples  (4)

Probability mass function:

Cumulative distribution function:

Mean and variance:

Covariance:

Scope  (9)

Generate a sample of pseudorandom vectors from a negative multinomial distribution:

Distribution parameters estimation:

Estimate the distribution parameters from sample data:

Goodness-of-fit test:

Skewness:

Kurtosis:

Correlation:

Different mixed moments for a bivariate negative multinomial distribution:

Mixed central moments:

Mixed factorial moments:

Closed form for a symbolic order:

Mixed cumulants:

Hazard function:

Univariate marginals give NegativeBinomialDistribution:

Multivariate marginals give NegativeMultinomialDistribution:

Use dimensionless Quantity to define NegativeMultinomialDistribution:

Applications  (1)

Find the distribution for the number of times a biased coin should be flipped until you get heads twice in a row. If you let p be the probability of heads, the two events for which you start over are "T" (tail) or "HT" (head, tail) and the event for which you succeed is "HH" (head, head). These events have the following probabilities:

The total number of coin flips until two heads:

Find the probability that no more than five coin flips are required:

Properties & Relations  (3)

The components are correlated:

Relationships to other distributions:

A univariate negative multinomial distribution is a negative binomial distribution:

Possible Issues  (3)

NegativeMultinomialDistribution is not defined when n is not a positive integer:

NegativeMultinomialDistribution is not defined when p is not a vector of probabilities that sum to less than 1:

Substitution of invalid parameters into symbolic outputs gives results that are not meaningful:

See Also

NegativeBinomialDistribution  MultinomialDistribution

Related Guides

    ▪
  • Parametric Statistical Distributions
  • ▪
  • Urn Model Distributions

History

Introduced in 2010 (8.0) | Updated in 2016 (10.4)

Wolfram Research (2010), NegativeMultinomialDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/NegativeMultinomialDistribution.html (updated 2016).

Text

Wolfram Research (2010), NegativeMultinomialDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/NegativeMultinomialDistribution.html (updated 2016).

CMS

Wolfram Language. 2010. "NegativeMultinomialDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/NegativeMultinomialDistribution.html.

APA

Wolfram Language. (2010). NegativeMultinomialDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NegativeMultinomialDistribution.html

BibTeX

@misc{reference.wolfram_2025_negativemultinomialdistribution, author="Wolfram Research", title="{NegativeMultinomialDistribution}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/NegativeMultinomialDistribution.html}", note=[Accessed: 01-May-2026]}

BibLaTeX

@online{reference.wolfram_2025_negativemultinomialdistribution, organization={Wolfram Research}, title={NegativeMultinomialDistribution}, year={2016}, url={https://reference.wolfram.com/language/ref/NegativeMultinomialDistribution.html}, note=[Accessed: 01-May-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • Notebook Assistant + LLM Kit
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English