# Probability distribution fitting

(Redirected from Distribution fitting)

Probability distribution fitting or simply distribution fitting is the fitting of a probability distribution to a series of data concerning the repeated measurement of a variable phenomenon.

The aim of distribution fitting is to predict the probability or to forecast the frequency of occurrence of the magnitude of the phenomenon in a certain interval.

There are many probability distributions (see list of probability distributions) of which some can be fitted more closely to the observed frequency of the data than others, depending on the characteristics of the phenomenon and of the distribution. The distribution giving a close fit is supposed to lead to good predictions.

In distribution fitting, therefore, one needs to select a distribution that suits the data well.

## Selection of distribution

The selection of the appropriate distribution depends on the presence or absence of symmetry of the data set with respect to the mean value.

Symmetrical distributions

When the data are symmetrically distributed around the mean while the frequency of occurrence of data farther away from the mean diminishes, one may for example select the normal distribution, the logistic distribution, or the Student's t-distribution. The first two are very similar, while the last, with one degree of freedom, has "heavier tails" meaning that the values farther away from the mean occur relatively more often (i.e. the kurtosis is higher). The Cauchy distribution is also symmetric.

Skew distributions to the right

When the larger values tend to be farther away from the mean than the smaller values, one has a skew distribution to the right (i.e. there is positive skewness), one may for example select the log-normal distribution (i.e. the log values of the data are normally distributed), the log-logistic distribution (i.e. the log values of the data follow a logistic distribution), the Gumbel distribution, the exponential distribution, the Pareto distribution, the Weibull distribution, the Burr distribution, or the Fréchet distribution. The last four distributions are bounded to the left.

Skew distributions to the left

When the smaller values tend to be farther away from the mean than the larger values, one has a skew distribution to the left (i.e. there is negative skewness), one may for example select the square-normal distribution (i.e. the normal distribution applied to the square of the data values), the inverted (mirrored) Gumbel distribution, the Dagum distribution (mirrored Burr distribution), or the Gompertz distribution, which is bounded to the left.

## Techniques of fitting

The following techniques of distribution fitting exist:

• Parametric methods, by which the parameters of the distribution are calculated from the data series. The parametric methods are:
 For example, the parameter $\mu$ (the expectation) can be estimated by the mean of the data and the parameter $\sigma ^{2}$ (the variance) can be estimated from the standard deviation of the data. The mean is found as $m=\sum {X}/n$ , where $X$ is the data value and $n$ the number of data, while the standard deviation is calculated as $s={\sqrt {{\frac {1}{n-1}}\sum {(X-m)^{2}}}}$ . With these parameters many distributions, e.g. the normal distribution, are completely defined.

Cumulative Gumbel distribution fitted to maximum one-day October rainfalls in Surinam by the regression method with added confidence band using cumfreq
 For example, the cumulative Gumbel distribution can be linearized to $Y=aX+b$ , where $X$ is the data variable and $Y=-\ln(-\ln P)$ , with $P$ being the cumulative probability, i.e. the probability that the data value is less than $X$ . Thus, using the plotting position for $P$ , one finds the parameters $a$ and $b$ from a linear regression of $Y$ on $X$ , and the Gumbel distribution is fully defined.

## Generalization of distributions

It is customary to transform data logarithmically to fit symmetrical distributions (like the normal and logistic) to data obeying a distribution that is positively skewed (i.e. skew to the right, with mean > mode, and with a right hand tail that is longer than the left hand tail), see lognormal distribution and the loglogistic distribution. A similar effect can be achieved by taking the square root of the data.

To fit a symmetrical distribution to data obeying a negatively skewed distribution (i.e. skewed to the left, with mean < mode, and with a right hand tail this is shorter than the left hand tail) one could use the squared values of the data to accomplish the fit.

More generally one can raise the data to a power p in order to fit symmetrical distributions to data obeying a distribution of any skewness, whereby p < 1 when the skewness is positive and p > 1 when the skewness is negative. The optimal value of p is to be found by a numerical method. The numerical method may consist of assuming a range of p values, then applying the distribution fitting procedure repeatedly for all the assumed p values, and finally selecting the value of p for which the sum of squares of deviations of calculated probabilities from measured frequencies (chi squared) is minimum, as is done in CumFreq.

The generalization enhances the flexibility of probability distributions and increases their applicability in distribution fitting.

## Inversion of skewness

Skewed distributions can be inverted (or mirrored) by replacing in the mathematical expression of the cumulative distribution function (F) by its complement: F'=1-F, obtaining the complementary distribution function (also called survival function) that gives a mirror image. In this manner, a distribution that is skewed to the right is transformed into a distribution that is skewed to the left and vice versa.

 Example. The F-expression of the positively skewed Gumbel distribution is: F=exp[-exp{-(X-u)/0.78s}], where u is the mode (i.e. the value occurring most frequently) and s is the standard deviation. The Gumbel distribution can be transformed using F'=1-exp[-exp{-(x-u)/0.78s}] . This transformation yields the inverse, mirrored, or complementary Gumbel distribution that may fit a data series obeying a negatively skewed distribution.

The technique of skewness inversion increases the number of probability distributions available for distribution fitting and enlarges the distribution fitting opportunities.

## Shifting of distributions

Some probability distributions, like the exponential, do not support data values (X) equal to or less than zero. Yet, when negative data are present, such distributions can still be used replacing X by Y=X-Xm, where Xm is the minimum value of X. This replacement represents a shift of the probability distribution in positive direction, i.e. to the right, because Xm is negative. After completing the distribution fitting of Y, the corresponding X-values are found from X=Y+Xm, which represents a back-shift of the distribution in negative direction, i.e. to the left.
The technique of distribution shifting augments the chance to find a properly fitting probability distribution.

## Composite distributions

The option exists to use two different probability distributions, one for the lower data range, and one for the higher like for example the Laplace distribution. The ranges are separated by a break-point. The use of such composite (discontinuous) probability distributions can be opportune when the data of the phenomenon studied were obtained under two sets different conditions.

## Uncertainty of prediction

Predictions of occurrence based on fitted probability distributions are subject to uncertainty, which arises from the following conditions:

• The true probability distribution of events may deviate from the fitted distribution, as the observed data series may not be totally representative of the real probability of occurrence of the phenomenon due to random error
• The occurrence of events in another situation or in the future may deviate from the fitted distribution as this occurrence can also be subject to random error
• A change of environmental conditions may cause a change in the probability of occurrence of the phenomenon

An estimate of the uncertainty in the first and second case can be obtained with the binomial probability distribution using for example the probability of exceedance Pe (i.e. the chance that the event X is larger than a reference value Xr of X) and the probability of non-exceedance Pn (i.e. the chance that the event X is smaller than or equal to the reference value Xr, this is also called cumulative probability). In this case there are only two possibilities: either there is exceedance or there is non-exceedance. This duality is the reason that the binomial distribution is applicable.

With the binomial distribution one can obtain a prediction interval. Such an interval also estimates the risk of failure, i.e. the chance that the predicted event still remains outside the confidence interval. The confidence or risk analysis may include the return period T=1/Pe as is done in hydrology.

## Goodness of fit

By ranking the goodness of fit of various distributions one can get an impression of which distribution is acceptable and which is not.

## Histogram and density function

From the cumulative distribution function (CDF) one can derive a histogram and the probability density function (PDF).
{"ft_lang_label":"__label__en","ft_lang_prob":0.8666858,"math_prob":0.980972,"size":11230,"snap":"2020-45-2020-50","text_gpt3_token_len":2303,"char_repetition_ratio":0.20897916,"word_repetition_ratio":0.04431487,"special_character_ratio":0.2028495,"punctuation_ratio":0.11971831,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.999084,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"im_url_duplicate_count":[null,null,null,null,null,5,null,null,null,null,null,5,null,null,null,null,null,6,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-29T20:02:38Z\",\"WARC-Record-ID\":\"<urn:uuid:4061cfef-e9f1-4b2a-ba0a-64f06444008c>\",\"Content-Length\":\"78902\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:871b0f03-77e0-449a-ba9c-dd472d67d072>\",\"WARC-Concurrent-To\":\"<urn:uuid:82baa513-5442-42a3-b53d-8c39848f2353>\",\"WARC-IP-Address\":\"23.20.46.70\",\"WARC-Target-URI\":\"http://conceptmap.cfapps.io/wikipage?lang=en&name=Distribution_fitting\",\"WARC-Payload-Digest\":\"sha1:J36RK3JZOKLJA25WNFX557QH2K2YCPNH\",\"WARC-Block-Digest\":\"sha1:OPG6OAHSFN2CMTIC56O6EN2AXW6ANWDL\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107905777.48_warc_CC-MAIN-20201029184716-20201029214716-00001.warc.gz\"}"}