Probability Distribution Fundamentals
A probability distribution describes how likely each value is to appear. This page explains, for 7 probability distributions, the meaning of their parameters, the range of values, the shape of the distribution, and the mean and variance.
The distributions covered are the 7 available in the Synthetic Data Generator tab, and the parameter names correspond to the input field names of that tab. For choosing a GLM family as the distribution of a response variable, see GLM Fundamentals.
Normal Distribution
The normal distribution is a bell-shaped distribution symmetric around Mean (). SD (standard deviation, ) sets the spread, and about 95% of the values fall within . Values range over all real numbers.
The density function is:
The mean is and the variance is .
Use it for quantities determined by the sum of many small factors, such as measurement errors and residuals.
Uniform Distribution
The uniform distribution gives every value in the interval from Min (lower bound ) to Max (upper bound , ) the same density. Values are real numbers from to , and no value appears outside the interval.
The density function is:
The mean is and the variance is .
Use it for quantities whose range is known but where no tendency within the range is assumed.
Bernoulli Distribution
The Bernoulli distribution produces 1 with probability P (success probability , ) and 0 with probability . The only values are 0 and 1.
The probability mass function is:
The mean is and the variance is .
Use it for binary outcomes such as pass and fail, or occurrence and non-occurrence.
Categorical Distribution
The categorical distribution selects one of the levels listed in Levels. Weights (weights ) determine how likely each level is to be selected. The values are level names.
The probability mass function is as follows, where is the -th level.
MIDAS treats the weights as ratios, so they do not have to sum to 1. Without weights, MIDAS selects every level with equal probability.
Because the values are not numbers, there is no mean or variance.
Use it for nominal-scale variables such as groups, categories, and treatment conditions. See Data Types and Measurement Scales for nominal scales.
Poisson Distribution
The Poisson distribution describes the number of events that occur under a constant average rate. Lambda (average number of occurrences, ) determines how often events occur. Values are integers of 0 or more.
The probability mass function is:
Both the mean and the variance are . Equality of the mean and the variance is a strong assumption of the Poisson distribution, and the state where the variance of the data exceeds this assumption is called overdispersion. See GLM Fundamentals: Variance Functions and Overdispersion for details.
Use it for count data such as the number of visits or the number of failures.
Gamma Distribution
The gamma distribution is a distribution with a long right tail. Shape () determines the form of the distribution. With Shape below 1 the density concentrates near 0, with Shape equal to 1 it becomes the exponential distribution, and as Shape grows the form approaches symmetry. Scale () stretches the distribution horizontally without changing its form. Values are positive real numbers.
The density function is as follows, where is the gamma function.
The mean is and the variance is .
Use it for positive, right-skewed quantities such as waiting times and monetary amounts.
Weibull Distribution
The Weibull distribution has two parameters, Shape () and Scale (). Scale stretches the distribution horizontally without changing its form. Values are positive real numbers.
Shape determines how the hazard changes over time. With Shape below 1, the hazard decreases over time. With Shape equal to 1, the hazard is constant and the distribution coincides with the exponential distribution. With Shape above 1, the hazard increases. See Survival Analysis Fundamentals for the definition of the hazard.
The density function is:
The mean is and the variance is .
Use it for lifetimes and times to failure.
Also available as a Markdown file.