How to plot the distribution function of a random variable. Continuous random variable, distribution function and probability density. Functions of one random variable

3. The distribution function is non-decreasing: if , then

4. Distribution function left continuous: for anyone .

Note. The last property indicates what values ​​the distribution function takes at the breakpoints. Sometimes the definition of the distribution function is formulated using a non-strict inequality: . In this case, continuity on the left is replaced by continuity on the right: for . No substantive properties of the distribution function change in this case, so this question is only a terminological one.

Properties 1-4 are characteristic, i.e. any function that satisfies these properties is the distribution function of some random variable.

The distribution function defines the probability distribution of a random variable uniquely. In fact, it is the most universal and most illustrative way to describe this distribution.

The stronger the distribution function grows on a given interval of the numerical axis, the higher the probability of a random variable falling into this interval. If the probability of falling into an interval is zero, then the distribution function on it is constant.

In particular, the likelihood that random value takes a given value equal to the jump of the distribution function at a given point:

.

If the distribution function is continuous at the point , then the probability of taking this value for a random variable is zero. In particular, if the distribution function is continuous on the entire real axis (in this case, the corresponding distribution is also called continuous), then the probability of accepting any given value is zero.

It follows from the definition of the distribution function that the probability of a random variable falling into an interval closed on the left and open on the right is equal to:

Using this formula and the above method for finding the probability of hitting any given point, the probabilities of hitting a random variable in intervals of other types are easily determined: , and . Further, by the measure extension theorem, one can uniquely extend the measure to all Borel sets of the real line. In order to apply this theorem, it is required to show that the measure thus defined on intervals is sigma-additive on intervals; properties 1-4 are used exactly in the proof of this (in particular, the continuity property on the left is 4, so it cannot be dropped).

Generation of a random variable having a given distribution

Consider a random variable with a distribution function . Let's pretend that continuous. Consider a random variable

.

It is easy to show that then it will have a uniform distribution on the interval .

The distribution function is the most general form of setting the distribution law. It is used to specify both discrete and continuous random variables. It is usually referred to as . distribution function determines the probability that a random variable takes values ​​less than a fixed real number, i.e. . The distribution function completely characterizes a random variable from a probabilistic point of view. It is also called the integral distribution function.

The geometric interpretation of the distribution function is very simple. If a random variable is considered as a random point of the axis (Fig. 6), which, as a result of the test, can take one or another position on this axis, then the distribution function is the probability that the random point, as a result of the test, will fall to the left of the point.

For a discrete random variable , which can take the values,, … ,, the distribution function has the form

,

where the inequality under the sum sign means that the summation extends to all those values ​​that are smaller in magnitude. It follows from this formula that the distribution function of a discrete random variable is discontinuous and increases in jumps when passing through the points,, …,, and the jump is equal to the probability of the corresponding value (Fig. 7). The sum of all jumps in the distribution function is equal to one.

A continuous random variable has a continuous distribution function, the graph of this function has the form of a smooth curve (Fig. 8).

Rice. 7. Fig. 8.

Consider the general properties of distribution functions.

Property 1. The distribution function is a non-negative function enclosed between zero and one:

The validity of this property follows from the fact that the distribution function is defined as the probability of a random event consisting in that.

Property 2. The probability of a random variable falling into an interval is equal to the difference between the values ​​of the distribution function at the ends of this interval, i.e.

It follows that the probability of any single value of a continuous random variable is zero.

Property 3. The distribution function of a random variable is a non-decreasing function, i.e., for .

Property 4. At minus infinity, the distribution function is zero, and at plus infinity, the distribution function is equal to unity, i.e.,.

Example 1 The distribution function of a continuous random variable is given by the expression

Find the coefficient and build a graph. Determine the probability that a random variable as a result of the experiment will take a value on the interval.

Solution. Since the distribution function of a continuous random variable is continuous, we get: . From here. The graph of the function is shown in Fig. 9.

Based on the second property of the distribution function, we have:

.

4. Probability distribution density and its properties.

The distribution function of a continuous random variable is its probabilistic characteristic. But it has a drawback, which consists in the fact that it is difficult to judge the nature of the distribution of a random variable in a small neighborhood of one or another point of the numerical axis. A more visual representation of the nature of the distribution of a continuous random variable is given by a function called the probability distribution density or differential distribution function of a random variable.

Distribution density is equal to the derivative of the distribution function, i.e.

.

The meaning of the distribution density is that it indicates how often a random variable appears in a certain neighborhood of a point when experiments are repeated. The curve representing the distribution density of a random variable is called distribution curve.

Consider the properties of the distribution density.

Property 1. The distribution density is non-negative, i.e.

Property 2. The distribution function of a random variable is equal to the integral of the density in the interval from to, i.e.

.

Property 3. The probability of a continuous random variable hitting a segment is equal to the integral of the distribution density taken over this segment, i.e.

.

Property 4. The integral in infinite limits of the distribution density is equal to unity:

.

Example 2 The random variable is subject to the distribution law with density

Determine coefficient ; build a graph of the distribution density; find the probability of hitting a random variable on the segment from to; determine the distribution function and plot its graph.

Solution. The area bounded by the distribution curve is numerically equal to

.

Taking into account property 4 of the distribution density, we find: . Therefore, the distribution density can be expressed as follows:

The graph of the distribution density is shown in fig. 10. By property 3 we have

.

To determine the distribution function, we use property 2:

.

Thus, we have

The distribution function graph is shown in fig. eleven.

1.2.4. Random variables and their distributions

Distributions of random variables and distribution functions. The distribution of a numerical random variable is a function that uniquely determines the probability that a random variable takes a given value or belongs to some given interval.

The first is if the random variable takes on a finite number of values. Then the distribution is given by the function P(X = x), giving each possible value X random variable X the likelihood that X = x.

The second is if the random variable takes on infinitely many values. This is possible only when the probability space on which the random variable is defined consists of an infinite number of elementary events. Then the distribution is given by the set of probabilities P(a < X for all pairs of numbers a, b such that a . The distribution can be specified using the so-called. distribution function F(x) = P(X defining for all real X the probability that the random variable X takes values ​​less than X. It's clear that

P(a < X

This relationship shows that just as the distribution can be calculated from the distribution function, so, conversely, the distribution function can be calculated from the distribution.

Used in probabilistic statistical methods decision making and other applied research distribution functions are either discrete or continuous, or combinations thereof.

Discrete distribution functions correspond to discrete random variables that take on a finite number of values ​​or values ​​from a set whose elements can be renumbered by natural numbers (such sets are called countable in mathematics). Their graph looks like a step ladder (Fig. 1).

Example 1 Number X of defective items in the batch takes the value 0 with a probability of 0.3, the value 1 with a probability of 0.4, the value 2 with a probability of 0.2 and the value 3 with a probability of 0.1. Graph of the distribution function of a random variable X shown in Fig.1.

Fig.1. Graph of the distribution function of the number of defective products.

Continuous distribution functions do not have jumps. They increase monotonically as the argument increases, from 0 for to 1 for . Random variables with continuous distribution functions are called continuous.

Continuous distribution functions used in probabilistic-statistical methods decision making, have derivatives. First derivative f(x) distribution functions F(x) is called the probability density,

The distribution function can be determined from the probability density:

For any distribution function

The listed properties of distribution functions are constantly used in probabilistic-statistical decision-making methods. In particular, the last equality implies a specific form of the constants in the formulas for the probability densities considered below.

Example 2 The following distribution function is often used:

(1)

Where a And b- some numbers a . Let's find the probability density of this distribution function:

(at points x = a And x = b function derivative F(x) does not exist).

A random variable with distribution function (1) is called "uniformly distributed on the interval [ a; b]».

Mixed distribution functions occur, in particular, when observations stop at some point. For example, when analyzing statistical data obtained using reliability test plans that provide for the termination of tests after a certain period of time. Or when analyzing data on technical products that required warranty repairs.

Example 3 Let, for example, the service life of an electric light bulb be a random variable with a distribution function F(t), and the test is carried out until the light bulb fails, if this occurs less than 100 hours from the start of the test, or until the moment t0= 100 hours. Let G(t)- distribution function of the operating time of the lamp in good condition in this test. Then

Function G(t) has a jump at a point t0, since the corresponding random variable takes the value t0 with probability 1- F(t0)> 0.

Characteristics of random variables. In probabilistic-statistical decision-making methods, a number of characteristics of random variables are used, expressed through distribution functions and probability density.

When describing income differentiation, when finding confidence limits for the parameters of distributions of random variables, and in many other cases, such a concept as “order quantile” is used. R", where 0< p < 1 (обозначается x p). Order quantile R is the value of a random variable for which the distribution function takes the value R or there is a "jump" from a value less than R up to a value greater R(Fig. 2). It may happen that this condition is satisfied for all values ​​of x belonging to this interval (i.e., the distribution function is constant on this interval and is equal to R). Then each such value is called a "quantile of the order R". For continuous distribution functions, as a rule, there is a single quantile x p order R(Fig. 2), and

F(x p) = p. (2)

Fig.2. Definition of a quantile x p order R.

Example 4 Let's find the quantile x p order R for the distribution function F(x) from (1).

At 0< p < 1 квантиль x p is found from the equation

those. x p = a + p(b – a) = a( 1- p)+bp. At p= 0 any x < a is the order quantile p= 0. Order quantile p= 1 is any number x > b.

For discrete distributions usually does not exist x p satisfying equation (2). More precisely, if the distribution of a random variable is given in Table 1, where x 1< x 2 < … < x k , then equality (2), considered as an equation with respect to x p, has solutions only for k values p, namely,

p \u003d p 1,

p \u003d p 1 + p 2,

p \u003d p 1 + p 2 + p 3,

p \u003d p 1 + p 2 + ...+ pm, 3 < m < k,

p = p 1 + p 2 + … + p k.

Table 1.

Distribution of a discrete random variable

For the listed k probability values p solution x p equation (2) is not unique, namely,

F(x) = p 1 + p 2 + ... + p m

for all X such that x m< x < xm+1 . Those. x p - any number from the range (x m ; x m+1 ]. For everyone else R from the interval (0;1) not included in the list (3), there is a “jump” from a value less than R up to a value greater R. Namely, if

p 1 + p 2 + … + p m

That x p \u003d x m + 1.

The considered property of discrete distributions creates significant difficulties in tabulating and using such distributions, since it is impossible to accurately maintain the typical numerical values ​​of the distribution characteristics. In particular, this is true for the critical values ​​and significance levels of nonparametric statistical tests (see below), since the distributions of the statistics of these tests are discrete.

The order quantile is of great importance in statistics. R= ½. It is called the median (random variable X or its distribution function F(x)) and denoted Me(X). In geometry, there is the concept of "median" - a straight line passing through the vertex of a triangle and dividing its opposite side in half. In mathematical statistics, the median bisects not the side of the triangle, but the distribution of a random variable: equality F(x0.5)= 0.5 means that the probability of getting to the left x0.5 and the probability of getting right x0.5(or directly to x0.5) are equal to each other and equal to ½, i.e.

P(X < x 0,5) = P(X > x 0.5) = ½.

The median indicates the "center" of the distribution. From the point of view of one of the modern concepts - the theory of stable statistical procedures - the median is a better characteristic of a random variable than the mathematical expectation. When processing measurement results in an ordinal scale (see the chapter on measurement theory), the median can be used, but the mathematical expectation cannot.

Such a characteristic of a random variable as a mode has a clear meaning - the value (or values) of a random variable corresponding to a local maximum of the probability density for a continuous random variable or a local maximum of the probability for a discrete random variable.

If x0 is the mode of a random variable with density f(x), then, as is known from differential calculus, .

A random variable can have many modes. So, for uniform distribution (1) each point X such that a< x < b , is fashion. However, this is an exception. Most of the random variables used in probabilistic-statistical decision-making methods and other applied research have one mode. Random variables, densities, distributions that have one mode are called unimodal.

The mathematical expectation for discrete random variables with a finite number of values ​​is considered in the chapter "Events and Probabilities". For a continuous random variable X expected value M(X) satisfies the equality

which is an analogue of formula (5) from statement 2 of the chapter "Events and probabilities".

Example 5 Mathematical expectation for a uniformly distributed random variable X equals

For the random variables considered in this chapter, all those properties of mathematical expectations and variances that were considered earlier for discrete random variables with a finite number of values ​​are true. However, we do not provide proofs of these properties, since they require deepening into mathematical subtleties, which is not necessary for understanding and qualified application of probabilistic-statistical decision-making methods.

Comment. In this textbook, mathematical subtleties are deliberately avoided, connected, in particular, with the concepts of measurable sets and measurable functions, the -algebra of events, and so on. Those wishing to master these concepts should refer to special literature, in particular, to the encyclopedia.

Each of the three characteristics - mathematical expectation, median, mode - describes the "center" of the probability distribution. The concept of "center" can be defined in different ways - hence the three different characteristics. However, for an important class of distributions - symmetric unimodal - all three characteristics coincide.

Distribution density f(x) is the density of the symmetric distribution, if there is a number x 0 such that

. (3)

Equality (3) means that the graph of the function y = f(x) symmetrical about a vertical line passing through the center of symmetry X = X 0 . From (3) it follows that the symmetric distribution function satisfies the relation

(4)

For a symmetrical distribution with one mode, the mean, median, and mode are the same and equal x 0.

The most important case is symmetry with respect to 0, i.e. x 0= 0. Then (3) and (4) become equalities

(6)

respectively. The above relations show that there is no need to tabulate symmetric distributions for all X, it suffices to have tables for x > x0.

We note one more property of symmetric distributions, which is constantly used in probabilistic-statistical decision-making methods and other applied research. For a continuous distribution function

P(|X| < a) = P(-a < X < a) = F(a) – F(-a),

Where F is the distribution function of the random variable X. If the distribution function F is symmetric with respect to 0, i.e. formula (6) is valid for it, then

P(|X| < a) = 2F(a) – 1.

Another formulation of the statement under consideration is often used: if

.

If and are quantiles of the order and, respectively (see (2)) of a distribution function symmetric with respect to 0, then it follows from (6) that

From the characteristics of the position - mathematical expectation, medians, modes - let's move on to the characteristics of the spread of a random variable X: variance , standard deviation and coefficient of variation v. The definition and properties of the variance for discrete random variables were considered in the previous chapter. For continuous random variables

The standard deviation is the non-negative value of the square root of the variance:

The coefficient of variation is the ratio of the standard deviation to the mathematical expectation:

The coefficient of variation is applied when M(X)> 0. It measures the spread in relative units, while the standard deviation is in absolute units.

Example 6 For a uniformly distributed random variable X find the variance, standard deviation and coefficient of variation. The dispersion is:

Variable substitution makes it possible to write:

Where c = (ba)/ 2. Therefore, the standard deviation is equal to and the coefficient of variation is:

For every random variable X determine three more quantities - centered Y, normalized V and given U. Centered random variable Y is the difference between the given random variable X and its mathematical expectation M(X), those. Y = X - M(X). Mathematical expectation of a centered random variable Y is equal to 0, and the variance is the variance of the given random variable: M(Y) = 0, D(Y) = D(X). distribution function FY(x) centered random variable Y related to the distribution function F(x) initial random variable X ratio:

FY(x) = F(x + M(X)).

For the densities of these random variables, the equality

f Y(x) = f(x + M(X)).

Normalized random variable V is the ratio of this random variable X to its standard deviation , i.e. . Mathematical expectation and variance of a normalized random variable V expressed through characteristics X So:

,

Where v is the coefficient of variation of the original random variable X. For the distribution function F V(x) and density f V(x) normalized random variable V we have:

Where F(x) is the distribution function of the original random variable X, A f(x) is its probability density.

Reduced random variable U is a centered and normalized random variable:

.

For a reduced random variable

Normalized, centered and reduced random variables are constantly used both in theoretical research and in algorithms, software products, regulatory and technical and instructive and methodological documentation. In particular, because the equalities make it possible to simplify the substantiation of methods, formulations of theorems, and calculation formulas.

Transformations of random variables and more general plan are used. So if Y = aX + b, Where a And b are some numbers, then

Example 7 If then Y is the reduced random variable, and formulas (8) are transformed into formulas (7).

With every random variable X you can connect a lot of random variables Y given by the formula Y = aX + b at various a> 0 and b. This set is called scale-shift family, generated by a random variable X. Distribution functions FY(x) constitute a scale-shift family of distributions generated by the distribution function F(x). Instead of Y = aX + b frequently used notation

Number With is called the shift parameter, and the number d- scale parameter. Formula (9) shows that X- the result of measuring a certain quantity - goes into At- the result of the measurement of the same value, if the beginning of the measurement is moved to the point With, and then use the new unit of measure, in d times greater than the old one.

For the scale-shift family (9), the distribution X is called standard. In probabilistic-statistical decision-making methods and other applied research, the standard normal distribution, the standard Weibull-Gnedenko distribution, the standard gamma distribution, etc. are used (see below).

Other transformations of random variables are also used. For example, for a positive random variable X consider Y= log X, where lg Xdecimal logarithm numbers X. Chain of equalities

F Y (x) = P( lg X< x) = P(X < 10x) = F( 10x)

relates distribution functions X And Y.

When processing data, such characteristics of a random variable are used X like moments of order q, i.e. mathematical expectations of a random variable X q, q= 1, 2, … Thus, the mathematical expectation itself is a moment of order 1. For a discrete random variable, the moment of order q can be calculated as

For a continuous random variable

Moments of order q also called initial moments order q, in contrast to related characteristics - the central moments of the order q, given by the formula

Thus, dispersion is a central moment of order 2.

Normal distribution and the central limit theorem. In probabilistic-statistical decision-making methods, we often talk about a normal distribution. Sometimes they try to use it to model the distribution of the initial data (these attempts are not always justified - see below). More importantly, many data processing methods are based on the fact that the calculated values ​​have distributions that are close to normal.

Let X 1 , X 2 ,…, X n M(X i) = m and dispersions D(X i) = , i = 1, 2,…, n,… As follows from the results of the previous chapter,

Consider the reduced random variable U n for the amount , namely,

As follows from formulas (7), M(U n) = 0, D(U n) = 1.

(for identically distributed terms). Let X 1 , X 2 ,…, X n, … are independent identically distributed random variables with mathematical expectations M(X i) = m and dispersions D(X i) = , i = 1, 2,…, n,… Then for any x there is a limit

Where F(x)– function of the standard normal distribution.

More about the function F(x) - below (it reads “fi from x”, because F- Greek capital letter "phi").

The Central Limit Theorem (CLT) takes its name from the fact that it is the central, most frequently used mathematical result of the theory of probability and mathematical statistics. The history of the CLT takes about 200 years - from 1730, when the English mathematician A. De Moivre (1667-1754) published the first result related to the CLT (see below about the Moivre-Laplace theorem), until the twenties - thirties of the twentieth century, when Finn J.W. Lindeberg, Frenchman Paul Levy (1886-1971), Yugoslav V. Feller (1906-1970), Russian A.Ya. Khinchin (1894-1959) and other scientists received the necessary and sufficient conditions validity of the classical central limit theorem.

The development of the subject under consideration did not stop there at all - they studied random variables that do not have dispersion, i.e. those for whom

(academician B.V. Gnedenko and others), the situation when random variables (more precisely, random elements) of a more complex nature than numbers are summed up (academicians Yu.V. Prokhorov, A.A. Borovkov and their associates), etc. .d.

distribution function F(x) is given by the equality

,

where is the density of the standard normal distribution, which has quite complex expression:

.

Here \u003d 3.1415925 ... is a number known in geometry, equal to the ratio circumference to diameter, e \u003d 2.718281828 ... - the base of natural logarithms (to remember this number, note that 1828 is the year of birth of the writer Leo Tolstoy). As known from mathematical analysis,

When processing the results of observations, the normal distribution function is not calculated according to the above formulas, but is found using special tables or computer programs. The best in Russian “Tables of Mathematical Statistics” were compiled by Corresponding Members of the USSR Academy of Sciences L.N. Bolshev and N.V. Smirnov.

The form of the density of the standard normal distribution follows from the mathematical theory, which we cannot consider here, as well as the proof of the CLT.

For illustration, we present small tables of the distribution function F(x)(Table 2) and its quantiles (Table 3). Function F(x) is symmetrical with respect to 0, which is reflected in Tables 2-3.

Table 2.

Function of the standard normal distribution.

If the random variable X has a distribution function F(x), That M(X) = 0, D(X) = 1. This statement is proved in probability theory based on the form of the probability density . It agrees with a similar statement for the characteristics of the reduced random variable U n, which is quite natural, since the CLT states that with an infinite increase in the number of terms, the distribution function U n tends to the standard normal distribution function F(x), and for any X.

Table 3

Quantiles of the standard normal distribution.

Order quantile R

Order quantile R

Let us introduce the concept of a family of normal distributions. By definition, a normal distribution is the distribution of a random variable X, for which the distribution of the reduced random variable is F(x). As follows from common properties scale-shift families of distributions (see above), the normal distribution is the distribution of a random variable

Where X is a random variable with distribution F(X), and m = M(Y), = D(Y). Normal distribution with shift parameters m and scale is usually denoted N(m, ) (sometimes the notation N(m, ) ).

As follows from (8), the probability density of the normal distribution N(m, ) There is

Normal distributions form a scale-shift family. In this case, the scale parameter is d= 1/ , and the shift parameter c = - m/ .

For the central moments of the third and fourth order of the normal distribution, the equalities are true

These equalities underlie the classical methods of checking that the results of observations follow a normal distribution. At present, normality is usually recommended to be checked by the criterion W Shapiro - Wilka. The normality check problem is discussed below.

If random variables X 1 And X 2 have distribution functions N(m 1 , 1) And N(m 2 , 2) respectively, then X 1+ X 2 has a distribution Therefore, if the random variables X 1 , X 2 ,…, X n N(m, ) , then their arithmetic mean

has a distribution N(m, ) . These properties of the normal distribution are constantly used in various probabilistic-statistical decision-making methods, in particular, in the statistical control of technological processes and in statistical acceptance control by a quantitative attribute.

The normal distribution defines three distributions that are now commonly used in statistical data processing.

Distribution (chi - square) - distribution of a random variable

where random variables X 1 , X 2 ,…, X n are independent and have the same distribution N(0.1). In this case, the number of terms, i.e. n, is called the "number of degrees of freedom" of the chi-squared distribution.

Distribution t Student is the distribution of a random variable

where random variables U And X independent, U has a standard normal distribution N(0,1) and X– distribution chi – square with n degrees of freedom. Wherein n is called the "number of degrees of freedom" of the Student's distribution. This distribution was introduced in 1908 by the English statistician W. Gosset, who worked at a beer factory. Probabilistic-statistical methods were used to make economic and technical decisions at this factory, so its management forbade V. Gosset to publish scientific articles under his own name. In this way, a trade secret was protected, "know-how" in the form of probabilistic-statistical methods developed by W. Gosset. However, he was able to publish under the pseudonym "Student". The history of Gosset - Student shows that for another hundred years the great economic efficiency of probabilistic-statistical decision-making methods was obvious to British managers.

The Fisher distribution is the distribution of a random variable

where random variables X 1 And X 2 are independent and have chi distributions - the square with the number of degrees of freedom k 1 And k 2 respectively. At the same time, a couple (k 1 , k 2 ) is a pair of "numbers of degrees of freedom" of the Fisher distribution, namely, k 1 is the number of degrees of freedom of the numerator, and k 2 is the number of degrees of freedom of the denominator. The distribution of the random variable F is named after the great English statistician R. Fisher (1890-1962), who actively used it in his work.

Expressions for the distribution functions of chi - square, Student and Fisher, their densities and characteristics, as well as tables can be found in the special literature (see, for example,).

As already noted, normal distributions are currently often used in probabilistic models in various applied fields. Why is this two-parameter family of distributions so widespread? It is clarified by the following theorem.

Central limit theorem(for differently distributed terms). Let X 1 , X 2 ,…, X n,… are independent random variables with mathematical expectations M(X 1 ), M(X 2 ),…, M(X n), … and dispersions D(X 1 ), D(X 2 ),…, D(X n), … respectively. Let

Then, under the validity of certain conditions that ensure the smallness of the contribution of any of the terms to U n,

for anyone X.

The conditions in question will not be formulated here. They can be found in the specialized literature (see, for example,). "Clarifying the conditions under which the CPT operates is the merit of the outstanding Russian scientists A.A. Markov (1857-1922) and, in particular, A.M. Lyapunov (1857-1918)" .

The central limit theorem shows that in the case when the result of measurement (observation) is formed under the influence of many reasons, each of them making only a small contribution, and the cumulative result is determined by additively, i.e. by addition, then the distribution of the measurement (observation) result is close to normal.

It is sometimes believed that for the distribution to be normal it is sufficient that the result of the measurement (observation) X formed under the influence of many causes, each of which has a small effect. This is wrong. What matters is how these causes work. If additive, then X has an approximately normal distribution. If multiplicatively(that is, the actions of individual causes are multiplied, not added), then the distribution X not close to normal, but to the so-called. logarithmically normal, i.e. Not X, and lg X has an approximately normal distribution. If there are no grounds to believe that one of these two mechanisms for the formation of the final result (or some other well-defined mechanism) is operating, then about the distribution X nothing definite can be said.

From what has been said, it follows that in a specific applied problem, the normality of the results of measurements (observations), as a rule, cannot be established from general considerations, it should be checked using statistical criteria. Or use non-parametric statistical methods that are not based on assumptions about the distribution functions of measurement results (observations) belonging to one or another parametric family.

Continuous distributions used in probabilistic-statistical decision-making methods. In addition to the scale-shift family of normal distributions, a number of other distribution families are widely used - logarithmically normal, exponential, Weibull-Gnedenko, gamma distributions. Let's take a look at these families.

Random value X has a log-normal distribution if the random variable Y= log X has a normal distribution. Then Z=ln X = 2,3026…Y also has a normal distribution N(a 1 ,σ 1), where ln X- natural logarithm X. The density of the log-normal distribution is:

It follows from the central limit theorem that the product X = X 1 X 2 X n independent positive random variables X i, i = 1, 2,…, n, at large n can be approximated by a log-normal distribution. In particular, the multiplicative model of the formation wages or income leads to a recommendation to approximate the distributions of wages and incomes by log-normal laws. For Russia, this recommendation turned out to be justified - the statistics confirm it.

There are other probabilistic models that lead to the log-normal law. A classical example of such a model is given by A.N. ball mills have a log-normal distribution.

Let's move on to another family of distributions, widely used in various probabilistic-statistical decision-making methods and other applied research, the family of exponential distributions. Let's start with a probabilistic model that leads to such distributions. To do this, consider the "stream of events", i.e. a sequence of events occurring one after the other at some point in time. Examples are: call flow at the telephone exchange; the flow of equipment failures in the technological chain; flow of product failures during product testing; the flow of customer requests to the bank branch; the flow of buyers applying for goods and services, etc. In the theory of event flows, a theorem similar to the central limit theorem is valid, but it does not deal with the summation of random variables, but with the summation of event flows. We consider the total flow composed of a large number independent flows, none of which has a predominant effect on the total flow. For example, the flow of calls arriving at the telephone exchange is made up of a large number of independent call flows originating from individual subscribers. It is proved that in the case when the characteristics of the flows do not depend on time, the total flow is completely described by one number - the intensity of the flow. For the total flow, consider a random variable X- the length of the time interval between successive events. Its distribution function has the form

(10)

This distribution is called the exponential distribution because formula (10) involves the exponential function ex. The value 1/λ is a scale parameter. Sometimes a shift parameter is also introduced With, exponential is the distribution of a random variable X + c, where the distribution X is given by formula (10).

Exponential distributions are a special case of the so-called. Weibull - Gnedenko distributions. They are named after the engineer W. Weibull, who introduced these distributions into the practice of analyzing the results of fatigue tests, and the mathematician B.V. Gnedenko (1912-1995), who received such distributions as limiting ones when studying the maximum of the test results. Let X- a random variable that characterizes the duration of the operation of the product, complex system, element (i.e. resource, operating time to the limit state, etc.), the duration of the operation of an enterprise or the life of a living being, etc. Important role plays failure intensity

(11)

Where F(x) And f(x) - distribution function and density of a random variable X.

Let us describe the typical behavior of the failure rate. The entire time interval can be divided into three periods. On the first of them, the function λ(x) has high values ​​and a clear tendency to decrease (most often it decreases monotonically). This can be explained by the presence in the batch under consideration of product units with obvious and latent defects, which lead to a relatively quick failure of these product units. The first period is called the "break-in" (or "break-in") period. This is usually covered by the warranty period.

Then comes the period of normal operation, characterized by an approximately constant and relatively low failure rate. The nature of failures during this period is of a sudden nature (accidents, errors of operating personnel, etc.) and does not depend on the duration of operation of a product unit.

Finally, the last period of operation is the period of aging and wear. The nature of failures during this period is in irreversible physical, mechanical and chemical changes materials, leading to a progressive deterioration in the quality of a unit of production and its final failure.

Each period has its own type of function λ(x). Consider the class of power dependencies

λ(х) = λ0bxb -1 , (12)

Where λ 0 > 0 and b> 0 - some numeric parameters. Values b < 1, b= 0 and b> 1 correspond to the type of failure rate during the periods of running-in, normal operation and aging, respectively.

Relation (11) for a given failure rate λ(x)- differential equation with respect to the function F(x). From theory differential equations follows that

(13)

Substituting (12) into (13), we get that

(14)

The distribution given by formula (14) is called the Weibull - Gnedenko distribution. Because the

then it follows from formula (14) that the quantity A, given by formula (15), is a scaling parameter. Sometimes a shift parameter is also introduced, i.e. Weibull - Gnedenko distribution functions are called F(x - c), Where F(x) is given by formula (14) for some λ 0 and b.

The density of the Weibull - Gnedenko distribution has the form

(16)

Where a> 0 - scale parameter, b> 0 - form parameter, With- shift parameter. In this case, the parameter A from formula (16) is related to the parameter λ 0 from formula (14) by the ratio indicated in formula (15).

The exponential distribution is a very special case of the Weibull - Gnedenko distribution, corresponding to the value of the shape parameter b = 1.

The Weibull - Gnedenko distribution is also used in the construction of probabilistic models of situations in which the behavior of an object is determined by the "weakest link". An analogy with a chain is implied, the safety of which is determined by that link that has the lowest strength. In other words, let X 1 , X 2 ,…, X n are independent identically distributed random variables,

X(1)=min( X 1 , X 2 ,…, X n), X(n)=max( X 1 , X 2 ,…, X n).

In a number of applied problems, an important role is played by X(1) And X(n) , in particular, when studying the maximum possible values ​​("records") of certain values, for example, insurance payments or losses due to commercial risks, when studying the limits of elasticity and endurance of steel, a number of reliability characteristics, etc. It is shown that for large n the distributions X(1) And X(n) , as a rule, are well described by Weibull - Gnedenko distributions. Foundational contributions to the study of distributions X(1) And X(n) was introduced by the Soviet mathematician B.V. Gnedenko. The works of V. Weibull, E. Gumbel, V.B. Nevzorova, E.M. Kudlaev and many other specialists.

Let's move on to the family of gamma distributions. They are widely used in economics and management, theory and practice of reliability and testing, in various areas technology, meteorology, etc. In particular, in many situations, the gamma distribution is subject to such quantities as the total service life of the product, the length of the chain of conductive dust particles, the time it takes the product to reach the limit state during corrosion, the operating time up to k th refusal, k= 1, 2, …, etc. The life expectancy of patients with chronic diseases, the time to achieve a certain effect in the treatment in some cases have a gamma distribution. This distribution is the most adequate for describing demand in economic and mathematical models of inventory management (logistics).

The density of the gamma distribution has the form

(17)

The probability density in formula (17) is determined by three parameters a, b, c, Where a>0, b>0. Wherein a is a form parameter, b- scale parameter and With- shift parameter. Factor 1/Γ(a) is a normalization, it is introduced in order to

Here Γ(а)- one of the special functions used in mathematics, the so-called "gamma function", by which the distribution given by formula (17) is also named,

At a fixed A formula (17) defines a scale-shift family of distributions generated by a distribution with density

(18)

The distribution of the form (18) is called the standard gamma distribution. It is obtained from formula (17) with b= 1 and With= 0.

A special case of gamma distributions at A= 1 are exponential distributions (with λ = 1/b). With natural A And With=0 gamma distributions are called Erlang distributions. From the works of the Danish scientist K.A. Erlang (1878-1929), an employee of the Copenhagen telephone company, who studied in 1908-1922. the functioning of telephone networks, the development of the theory of queuing began. This theory is engaged in probabilistic-statistical modeling of systems in which the flow of requests is serviced in order to make optimal decisions. Erlang distributions are used in the same application areas as exponential distributions. This is based on the following mathematical fact: the sum of k independent random variables exponentially distributed with the same parameters λ and With, has a gamma distribution with shape parameter a =k, scale parameter b= 1/λ and the shift parameter kc. At With= 0 we get the Erlang distribution.

If the random variable X has a gamma distribution with shape parameter A such that d = 2 a- an integer, b= 1 and With= 0, then 2 X has a chi-squared distribution with d degrees of freedom.

Random value X with gvmma-distribution has the following characteristics:

Expected value M(X) =ab + c,

dispersion D(X) = σ 2 = ab 2 ,

The coefficient of variation

asymmetry

Excess

The normal distribution is an extreme case of the gamma distribution. More precisely, let Z be a random variable with a standard gamma distribution given by formula (18). Then

for any real number X, Where F(x)- standard normal distribution function N(0,1).

In applied research, other parametric families of distributions are also used, of which the Pearson curve system, Edgeworth and Charlier series are the most well-known. They are not considered here.

Discrete distributions used in probabilistic-statistical decision-making methods. Most often, three families of discrete distributions are used - binomial, hypergeometric and Poisson, as well as some other families - geometric, negative binomial, multinomial, negative hypergeometric, etc.

As already mentioned, the binomial distribution takes place in independent trials, in each of which with a probability R event appears A. If total number tests n given, then the number of trials Y, in which the event appeared A, has a binomial distribution. For binomial distribution probability of being accepted as a random variable Y values y is determined by the formula

Number of combinations from n elements by y known from combinatorics. For all y, except for 0, 1, 2, …, n, we have P(Y= y)= 0. Binomial distribution with a fixed sample size n is set by the parameter p, i.e. binomial distributions form a one-parameter family. They are used in the analysis of sample research data, in particular, in the study of consumer preferences, selective control of product quality according to single-stage control plans, when testing populations of individuals in demography, sociology, medicine, biology, etc.

If Y 1 And Y 2 - independent binomial random variables with the same parameter p 0 determined by samples with volumes n 1 And n 2 respectively, then Y 1 + Y 2 - binomial random variable with distribution (19) with R = p 0 And n = n 1 + n 2 . This remark expands the applicability of the binomial distribution, allowing you to combine the results of several groups of tests, when there is reason to believe that the same parameter corresponds to all these groups.

The characteristics of the binomial distribution were calculated earlier:

M(Y) = np, D(Y) = np( 1- p).

In the section "Events and probabilities" for a binomial random variable, the law of large numbers is proved:

for anyone . With the help of the central limit theorem, the law of large numbers can be refined by indicating how Y/ n differs from R.

De Moivre-Laplace theorem. For any numbers a and b, a< b, we have

Where F(X) is a standard normal distribution function with mean 0 and variance 1.

To prove it, it suffices to use the representation Y as a sum of independent random variables corresponding to the outcomes of individual trials, formulas for M(Y) And D(Y) and the central limit theorem.

This theorem is for the case R= ½ was proved by the English mathematician A. Moivre (1667-1754) in 1730. In the above formulation, it was proved in 1810 by the French mathematician Pierre Simon Laplace (1749-1827).

Hypergeometric distribution takes place during selective control of a finite set of objects of volume N according to an alternative feature. Each controlled object is classified either as having the attribute A, or as not possessing this feature. The hypergeometric distribution has a random variable Y, equal to the number objects that have an attribute A in a random sample of volume n, Where n< N. For example, number Y defective units of products in a random sample of volume n from batch volume N has a hypergeometric distribution if n< N. Another example is the lottery. Let the sign A a ticket is a sign of “being winning”. Let all the tickets N, and some person has acquired n of them. Then the number of winning tickets for this person has a hypergeometric distribution.

For a hypergeometric distribution, the probability that a random variable Y takes the value y has the form

(20)

Where D is the number of objects that have the attribute A, in the considered set of volume N. Wherein y takes values ​​from max(0, n - (N - D)) to min( n, D), with other y the probability in formula (20) is equal to 0. Thus, the hypergeometric distribution is determined by three parameters - the volume of the general population N, number of objects D in it, possessing the considered feature A, and sample size n.

Simple random sampling n from the total volume N is called a sample obtained as a result of random selection, in which any of the sets from n objects has the same probability of being selected. Methods for random selection of samples of respondents (interviewees) or units of piece products are considered in the instructive-methodical and normative-technical documents. One of the selection methods is as follows: objects are selected one from the other, and at each step each of the remaining objects in the set has the same chance of being selected. In the literature, for the type of samples under consideration, the terms “random sample”, “random sample without replacement” are also used.

Since the volumes of the general population (lots) N and samples n are commonly known, then the hypergeometric distribution parameter to be estimated is D. In statistical methods of product quality management D- usually the number of defective units in the batch. Of interest is also the characteristic of the distribution D/ N- defect level.

For hypergeometric distribution

The last factor in the variance expression is close to 1 if N>10 n. If, at the same time, we make the substitution p = D/ N, then the expressions for the mathematical expectation and variance of the hypergeometric distribution will turn into expressions for the mathematical expectation and variance of the binomial distribution. This is no coincidence. It can be shown that

at N>10 n, Where p = D/ N. The limiting ratio is valid

and this limiting relation can be used for N>10 n.

The third widely used discrete distribution is the Poisson distribution. A random variable Y has a Poisson distribution if

,

where λ is the Poisson distribution parameter, and P(Y= y)= 0 for all others y(for y=0, 0!=1 is denoted). For the Poisson distribution

M(Y) = λ, D(Y) = λ.

This distribution is named after the French mathematician C.D. Poisson (1781-1840), who first derived it in 1837. The Poisson distribution is an extreme case of the binomial distribution, where the probability R implementation of the event is small, but the number of trials n great, and np= λ. More precisely, the limit relation

Therefore, the Poisson distribution (in the old terminology "distribution law") is often also called the "law of rare events".

The Poisson distribution arises in the theory of event flows (see above). It is proved that for the simplest flow with constant intensity Λ, the number of events (calls) that occurred during the time t, has a Poisson distribution with parameter λ = Λ t. Therefore, the probability that in time t no event will occur e - Λ t, i.e. the distribution function of the length of the interval between events is exponential.

The Poisson distribution is used in the analysis of the results of selective marketing surveys of consumers, the calculation of the operational characteristics of statistical acceptance control plans in the case of small values ​​of the acceptance level of defectiveness, to describe the number of breakdowns of a statistically controlled technological process per unit of time, the number of "requirements for service" arriving per unit of time in queuing system, statistical patterns of accidents and rare diseases, etc.

The description of other parametric families of discrete distributions and the possibility of their practical use are considered in the literature.


In some cases, for example, when studying prices, output volumes or total time between failures in reliability problems, the distribution functions are constant on certain intervals in which the values ​​of the random variables under study cannot fall.

Previous

The result of any random experiment can be characterized qualitatively and quantitatively. Qualitative the result of a random experiment - random event. Any quantitative characteristic, which as a result of a random experiment can take one of a certain set of values, - random value. Random value is one of the central concepts of probability theory.

Let be an arbitrary probability space. Random variable is a real numerical function x \u003d x (w), w W , such that for any real x .

Event usually written as x< x. In the following, random variables will be denoted by lowercase Greek letters x, h, z, …

A random variable is the number of points that fell when throwing a dice, or the height of a student randomly selected from the study group. In the first case, we are dealing with discrete random variable(it takes values ​​from a discrete number set M=(1, 2, 3, 4, 5, 6) ; in the second case, with continuous random variable(it takes values ​​from a continuous number set - from the interval of the number line I=).

Each random variable is completely determined by its distribution function.

If x . is a random variable, then the function F(x) = F x(x) = P(x< x) is called distribution function random variable x . Here P(x<x) - the probability that the random variable x takes a value less than x.

It is important to understand that the distribution function is a "passport" of a random variable: it contains all the information about the random variable and therefore the study of a random variable consists in the study of its distribution functions, often referred to simply distribution.

The distribution function of any random variable has the following properties:

If x is a discrete random variable taking the values x 1 <x 2 < … <x i < … с вероятностями p 1 <p 2 < … <pi < …, то таблица вида

x 1 x 2 x i
p 1 p 2 pi

called distribution of a discrete random variable.

The distribution function of a random variable with such a distribution has the form

A discrete random variable has a stepwise distribution function. For example, for a random number of points that fell out in one throw of a dice, the distribution, distribution function and distribution function graph look like:

1 2 3 4 5 6
1/6 1/6 1/6 1/6 1/6 1/6

If the distribution function F x(x) is continuous, then the random variable x is called continuous random variable.

If the distribution function of a continuous random variable differentiable, then a more visual representation of the random variable gives probability density of random variable p x(x), which is related to the distribution function F x(x) formulas

And .

From this, in particular, it follows that for any random variable .

When solving practical problems, it is often necessary to find the value x, at which the distribution function F x(x) random variable x takes a given value p, i.e. you need to solve the equation F x(x) = p. Solutions to such an equation (the corresponding values x) in probability theory are called quantiles.

Quantile x p ( p-quantile, level quantile p) a random variable having a distribution function F x(x), is called the solution xp equations F x(x) = p, p(0, 1). For some p the equation F x(x) = p may have several solutions, for some - none. This means that for the corresponding random variable, some quantiles are not uniquely defined, and some quantiles do not exist.

Definitions of the Distribution Function of a random variable and the Probability Density of a continuous random variable are given. These concepts are actively used in articles about site statistics. Examples of calculating the Distribution Function and Probability Density using MS EXCEL functions are considered..

Let us introduce the basic concepts of statistics, without which it is impossible to explain more complex concepts.

General population and random variable

Let us have population(population) of N objects, each of which has a certain value of some numerical characteristic X.

An example of a general population (GS) is a set of weights of the same type of parts that are produced by a machine.

Since in mathematical statistics, any conclusion is made only on the basis of the characteristic X (abstracting from the objects themselves), then from this point of view population represents N numbers, among which, in the general case, there may be the same.

In our example, the WB is simply a numeric array of part weight values. X is the weight of one of the parts.

If from a given GS we randomly select one object with characteristic X, then the value of X is random variable. By definition, any random value It has distribution function, which is usually denoted by F(x).

distribution function

distribution function probabilities random variable X is the function F(x), the value of which at the point x is equal to the probability of the event X

F(x) = P(X

Let's explain on the example of our machine. Although it is assumed that our machine produces only one type of part, it is obvious that the weight of the parts produced will vary slightly from each other. This is possible due to the fact that different materials could be used in the manufacture, and the processing conditions could also vary slightly, etc. Let the heaviest part produced by the machine weigh 200 g, and the lightest - 190 g. The probability that by chance the selected part X will weigh less than 200 g is 1. The probability that it will weigh less than 190 g is 0. Intermediate values ​​are determined by the form of the Distribution Function. For example, if the process is set to produce parts weighing 195 g, then it is reasonable to assume that the probability of choosing a part lighter than 195 g is 0.5.

Typical Graph Distribution functions for a continuous random variable is shown in the picture below (purple curve, see example file):

MS EXCEL Help distribution function called integral distribution function (Cumulativedistributionfunction, CDF).

Here are some properties Distribution functions:

  • distribution function F(x) changes in the interval , because its values ​​are equal to the probabilities of the corresponding events (by definition, the probability can be in the range from 0 to 1);
  • distribution function is a non-decreasing function;
  • The probability that a random variable takes a value from a certain range probability density equals 1/(0.5-0)=2. And for with parameter lambda=5, value probability density at the point x=0.05 is equal to 3.894. But, at the same time, you can make sure that the probability on any interval will be, as usual, from 0 to 1.

    Recall that distribution density is a derivative of distribution functions, i.e. "speed" of its change: p(x)=(F(x2)-F(x1))/Dx with Dx tending to 0, where Dx=x2-x1. Those. the fact that distribution density>1 means only that the distribution function grows fast enough (this is obvious in the example ).

    Note: The area entirely contained under the entire curve representing distribution density, is equal to 1.

    Note: Recall that the distribution function F(x) is called in MS EXCEL functions cumulative distribution function. This term appears in function parameters, such as NORM.DIST(x; mean; standard deviation; integral). If the MS EXCEL function should return distribution function, then the parameter integral, d.b. set to TRUE. If you need to calculate probability density, then the parameter integral, d.b. LIE.

    Note: For discrete distribution the probability of a random variable taking on a certain value is also often called a probability mass function (pmf). MS EXCEL Help probability density can even call it a "probability measure function" (see the BINOM.DIST() function).

    Probability density calculation using MS EXCEL functions

    It is clear that in order to calculate probability density for a certain value of a random variable, you need to know its distribution.

    Let's find probability density for N(0;1) at x=2. To do this, you need to write the formula =NORM.ST.DIST(2,FALSE)=0.054 or =NORM.DIST(2,0,1,FALSE).

    Recall that probability that continuous random variable will take a specific value of x equal to 0. For continuous random variable X can only calculate the probability of the event that X will take the value contained in the interval (a; b).

    Calculation of probabilities using MS EXCEL functions

    1) Find the probability that the random variable distributed over (see the picture above) took a positive value. According to property Distribution functions the probability is F(+∞)-F(0)=1-0.5=0.5.

    NORM.ST.DIST(9,999E+307;TRUE) - NORM.ST.DIST(0,TRUE) =1-0,5.
    Instead of +∞, the value 9.999E+307= 9.999*10^307 is entered into the formula, which is the maximum number that can be entered in a MS EXCEL cell (so to speak, the closest to +∞).

    2) Find the probability that a random variable distributed over , took a negative value. According to the definition distribution functions, the probability is F(0)=0.5.

    In MS EXCEL, to find this probability, use the formula =NORM.ST.DIST(0,TRUE) =0,5.

    3) Find the probability that a random variable distributed over standard normal distribution, will take the value contained in the interval (0; 1). The probability is F(1)-F(0), i.e. from the probability of choosing X from the interval (-∞;1) you need to subtract the probability of choosing X from the interval (-∞;0). In MS EXCEL use the formula =NORM.ST.DIST(1,TRUE) - NORM.ST.DIST(0,TRUE).

    All calculations above refer to a random variable distributed over standard normal law N(0;1). It is clear that the probability values ​​depend on the particular distribution. In the distribution function article, find the point for which F(x)=0.5, and then find the abscissa of that point. Point abscissa =0, ​​i.e. the probability that the random variable X takes the value<0, равна 0,5.

    In MS EXCEL, use the formula =NORM.ST.INV(0.5) =0.

    Unambiguously calculate the value random variable allows the monotonicity property distribution functions.

    Inverse distribution function calculates , which are used, for example, when . Those. in our case, the number 0 is the 0.5-quantile normal distribution. In the example file, you can calculate another quantile this distribution. For example, the 0.8 quantile is 0.84.

    In English literature inverse distribution function often referred to as Percent Point Function (PPF).

    Note: When calculating quantiles in MS EXCEL, the following functions are used: NORM.ST.OBR() , LOGNORM.OBR() , XI2.OBR(), GAMMA.OBR(), etc. You can read more about the distributions presented in MS EXCEL in the article.