Next Article in Journal
Reservoir Computing with Delayed Input for Fast and Easy Optimisation
Previous Article in Journal
Classical and Bayesian Inference of an Exponentiated Half-Logistic Distribution under Adaptive Type II Progressive Censoring
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Numerical Algorithms for Estimating Probability Density Function Based on the Maximum Entropy Principle and Fup Basis Functions

Faculty of Civil Engineering, University of Split, Architecture and Geodesy, 21000 Split, Croatia
*
Author to whom correspondence should be addressed.
Entropy 2021, 23(12), 1559; https://doi.org/10.3390/e23121559
Submission received: 15 October 2021 / Revised: 5 November 2021 / Accepted: 18 November 2021 / Published: 23 November 2021

Abstract

:
Estimation of the probability density function from the statistical power moments presents a challenging nonlinear numerical problem posed by unbalanced nonlinearities, numerical instability and a lack of convergence, especially for larger numbers of moments. Despite many numerical improvements over the past two decades, the classical moment problem of maximum entropy (MaxEnt) is still a very demanding numerical and statistical task. Among others, it was presented how Fup basis functions with compact support can significantly improve the convergence properties of the mentioned nonlinear algorithm, but still, there is a lot of obstacles to an efficient pdf solution in different applied examples. Therefore, besides the mentioned classical nonlinear Algorithm 1, in this paper, we present a linear approximation of the MaxEnt moment problem as Algorithm 2 using exponential Fup basis functions. Algorithm 2 solves the linear problem, satisfying only the proposed moments, using an optimal exponential tension parameter that maximizes Shannon entropy. Algorithm 2 is very efficient for larger numbers of moments and especially for skewed pdfs. Since both Algorithms have pros and cons, a hybrid strategy is proposed to combine their best approximation properties.

1. Introduction

Many physical processes cannot be characterized deterministically owing to the presence of intrinsic or parametric uncertainty due to their physical nature, interpretation or measurements. Therefore, results are usually given in the form of a certain number of the first few statistical power moments or, rarely, as a probability density function (pdf) [1,2,3].
The maximum entropy principle, defined by Jaynes [4], is a versatile tool for statistical inference of the probability density function from its moments by maximizing Shannon entropy [5]. The principle states that among all possible pdfs that satisfy our incomplete information about the system, the one that maximizes entropy is the least biased estimate that can be made. It agrees with everything that is known but carefully avoids anything that is unknown [6,7].
In the past few decades, a great number of maximum entropy algorithms (MEAs) have been developed and applied in various fields of science, such as continuum mechanics [8], signal processing [9,10], chemical engineering [11,12,13] and heat transfer [14]. In coastal engineering, a MEAs are used as a powerful tool for the prediction of extreme significant wave heights [15,16,17] and for the distribution of streamwise velocity in open channels [18]. MEAs are especially popular in structural reliability analysis [19,20,21,22,23,24,25]. Their application goes much further, though; for example, MEAs used for the evaluation of the reliability of semiconductor devices [26]. MEAs have even been extended to multidimensional problems [27,28,29,30] and models in 2D domains and on surfaces [31].
MaxEnt algorithms for a higher number of moments are subjected to highly unbalanced nonlinearities, ill-conditioned Jacobian and Hessian matrices in Newton algorithms and many other numerical problems, such as insufficient arithmetic precision [3]. To overcome these difficulties, the MaxEnt algorithm uses orthogonal polynomials [2] and splines [32,33] instead of classic monomials.
Gotovac and Gotovac (2009) [34] employed a different and original idea using finite and localized basis functions with compact support closely related to algebraic polynomials, which made an efficient MaxEnt algorithm possible with more balanced nonlinearities and the ability to solve a higher number of moments. They used Fup basis functions of the second order with compact support, which are similar to wavelets and splines and belong to the class of atomic basis functions (ABF).
The history of the ABFs originates from V. L. and V. A. Rvachevs, [35]. The first monographs on the results of research were published in [36,37], while in [38,39] a detailed analysis of the current publications on ABF is provided, from the first publications until now. Furthermore, based on ABF theory, many different classes of weight functions have arisen, which are often used, especially in digital signal processing [40,41,42,43,44,45,46,47] and groundwater flow modeling [48,49,50,51]. A very interesting theory of atomic solitons is based on ABF theory that is used in new areas, like matter quantization, quantum gravity, Higgs fields, unified theory of nature, as well as in non-traditional areas, like medicine and life sciences, geology and financial markets [52,53,54,55].
In this paper, we will use two types of Fup basis functions that belong to the class of atomic basis functions (ABFs) [56]: the algebraic-type, Fup n ( x ) , and the exponential type, EFup n ( ω , x ) , containing an additional tension parameter, ω. While atomic basis functions of the algebraic type have been used for many years, ABFs of the exponential type are still not widely used [57]. This work uses Fup and EFup basis functions of the fourth order by, which monomials up to the fourth degree can be represented accurately. This approximation property of the basis functions affects the numerical precision of the requested pdf since it is the first few moments that give the greatest impact on the solution function of the MaxEnt problem.
Based on the algebraic Fup 4 ( x ) and exponential EFup 4 ( x , ω ) basis functions, two Algorithms for solving the maximum entropy problem from known statistical moments are derived and presented. Algorithm 1 is a classical nonlinear algorithm [34], while Algorithm 2 is a fast linear algorithm. Exponential basis functions, EFup 4 ( x , ω ) , use an unknown parameter, ω , that is selected considering the maximization of the Shannon entropy functional. Both Algorithms have their advantages and disadvantages, which will be demonstrated in various examples of the probability density functions.

2. Maximum Entropy Principle

Let f ( x ) be an unknown probability density function (pdf) defined in a finite real interval that satisfies a basic normalized zero statistical moment, which says that all pdf outcomes present a certain event:
a b f ( x ) dx = 1 ,   f ( x ) 0     x [ a , b ]
Suppose that the additional moment constraints on f are given in the form of classical statistical moments of the higher order:
a b x i f ( x ) dx = μ i ,   i = 1 , , m
where μ i represents given and known statistical moments. Without losing generality, the interval [ a , b ] can be transformed into the interval [ 0 , 1 ] , as we will write later in this article.
The estimation of the function, f ( x ) , by the maximum entropy principle is obtained by maximizing the Shannon entropy, H ( f ) , associated with the function, f , with constraints given by Equation (2), where the Shannon entropy is given in the form:
H ( f ) = 0 1 f ( x )   ln [ f ( x ) ] dx
Jaynes [4] showed that maximizing H ( f ) with respect to f , under constraints (2), leads to the following analytical solution:
f ( x ) = e λ 0 λ 1 x λ m x m
where Lagrange multipliers λ 0 , , λ m satisfy the following relations:
0 1 exp ( j   = 1 m λ j x j ) dx = exp ( λ 0 )
0 1 x i exp ( j = 1 m λ j x j ) dx 0 1 exp ( j = 1 m λ j x j ) dx = μ i ,   i = 1 , , m
From a practical point of view, determining the maximum entropy of a pdf from given moments comes down to solving a nonlinear system of m Equation (6), creating a challenging nonlinear numerical problem faced by unbalanced nonlinearities, numerical instability and lack of convergence, especially for larger numbers of moments.

3. Numerical Algorithms Using Fup Basis Functions

This chapter describes two basic numerical algorithms for estimating the probability density function from a finite number of known moments. Both algorithms for solving the classical moment problem were developed using atomic basis functions, one of the algebraic type, Fup 4 ( x ) , and one of the exponential type, EFup 4 ( x , ω ) .
The function Fup 4 ( x ) is shown in Figure 1.
The function support contains six characteristic intervals. By a linear combination of these functions, shifted from each other by the length of the characteristic interval, algebraic polynomials up to the fourth degree can be accurately represented (see Appendix A, Appendix A.1). To approximate the pdf using the maximum entropy principle in the range [ 0 , 1 ] , a base of at least six basis functions, Fup 4 ( x ) , is required, as shown in Figure 2.
Therefore, the MaxEnt optimization procedure for estimating the probability density function starts from the sixth moment (with the zeroth moment engaged, i.e., m = 5 ). For numerical operations in the domain to be performed efficiently, it is necessary to modify basis functions that have non-zero values within the domain and the vertices of which are outside the domain by expressing them in the form of a linear combination of the original basis functions [50]. Figure 3 shows the basis functions in the observed domain for the estimation with six moments ( m = 5 ).
Fup basis functions of the exponential type are much less well-investigated than those of the algebraic type [56]. The linear combination of the functions EFup n ( x , ω ) can accurately represent the exponential function E ( x ) = e 2 n ω x (Appendix A, Appendix A.2). The EFup 4 ( x , ω ) function retains all the properties of the Fup 4 ( x ) function, such as smoothness, finiteness, polynomial development, etc. The special feature of these functions is that they contain the parameter ω , which allows them to change the slope depending on the parameter value, as shown in Figure 4.
Figure 4 shows function EFup 4 ( x , ω ) for different values of parameter ω . It can be seen that the function EFup 4 ( x , ω ) for ω > 0 is tilted to the right, and if ω < 0 , the function is tilted to the left. In the boundary case when ω = 0 , the function is symmetric and identical to the algebraic function Fup 4 ( x ) . Thus, a vector function space of the functions EFup n ( x , ω ) also contains functions Fup n ( x ) .
This property of EFup functions of the exponential type gives them an advantage over other finite functions (such as algebraic Fups, splines, wavelets), and it is their flexibility that allows them to “adapt” more to the solution. On a similar track, exponential splines that also contain a tension parameter are used in the literature; these are often applied to solve the singularly perturbed boundary problem [58,59]. When using the exponential type of atomic basis functions, the basic task is to determine the value of the parameter ω . Since the optimization problem of maximum entropy is the search for a pdf that maximizes the Shannon integral (3), the above will be taken as the criterion for choosing the parameter ω . Thus, of all possible solutions obtained for different values of the parameter ω , the one that gives the maximum value of the Shannon entropy functional (3) is adopted.

3.1. Classic MaxEnt Algorithm (Algorithm 1)

Here, we describe the procedure for solving the problem of pdf estimation from known moments using the principle of maximum entropy and Fup 4 ( x ) basis functions [34]. The procedure is simplified in relation to [34] and consists of the following steps:
  • Let the set of m algebraic moments, μ i , be given on the general interval [ a , b ] . Its values on the unit interval [ 0 , 1 ] are calculated using a simple linear transformation.
  • In expression (4), we express the monomials x i ,   i = 0 , , m as a linear combination of basis functions Fup 4 j ( x ) ,   j = 0 , , m , as shown in Appendix A, Appendix A.1.
    Since the Fup n basis functions exactly describe algebraic monomials up to and including the n th order in the algorithm from [34], the residual function ε i ( x ) is introduced, i.e.,:
    x i = j   = 0 m d ij Fup n j ( x ) + ε i ( x ) , i = 0 , , m
    where
    ε i ( x ) 0 for   i n ε i ( x ) 0 for   i > n
    are residual functions that describe the difference between monomials of the mth order and their Fupn approximation, and d ij presents the connection matrix, which depends on the Fupn approximation and on the location and number of basis functions and, consequently, moments. For instance, the collocation procedure [48] calculates exact monomials in the collocation points, and residual functions ε i ( x ) fluctuate around zero, with significantly smaller values than Fup basis functions. For increasing numbers of moments and basis functions, the residual functions ε i ( x ) converge to zero, i.e., in the limit, for m , ε i ( x ) is zero. Given the fact that the influence of lower moments in the process of determining the pdf is the largest, in this paper, we choose the Fup basis function of the higher order, i.e., n = 4 , which allows us to simplify the algorithm from [34] (leaving in mind that monomials above the fourth degree are now expressed approximately):
    x i j   = 0 m d ij Fup 4 j ( x ) , i = 0 , , m
    Next, we calculate the connection matrix d ij . Unlike [34], where the connection matrix d ij is obtained by the collocation method, here, it is obtained by the Galerkin method:
    j   = 0 m d ij 0 1 Fup 4 j ( x )   Fup 4 k ( x ) dx = 0 1 x i   Fup 4 k ( x ) , i = 0 , , m ,   k = 0 , , m
    Multiplying expression (9) with the optimal pdf in the form
    f * ( x ) = e j   = 0 m γ j Fup 4 j ( x )
    and integrating over the domain [ 0 , 1 ] , we can relate the classical algebraic and Fup 4 moments
    μ i = j   = 0 m d ij · μ j Fup 4   ; i = 0 , , m
    where μ i represents the given moments of the requested pdf, while
    μ i Fup 4 = 0 1 Fup 4 i ( x ) · e j   = 0 m γ j Fup 4 j ( x ) dx
    represents the moments of the Fup 4 basis functions. Since the Lagrange multipliers, γ j , are unknown, the system of Equation (13) must be solved iteratively.
  • The algorithm starts with the initial pdf assumption, i.e., for the step k = 0 , the initial values of the Lagrange multipliers γ j ( k   = 0 ) ,   j = 0 , , m are selected, from which the initial pdf is calculated according to (11).
    For simplicity, for initial values, γ j ( k   = 0 ) , we take zero values, as the numerical procedure is not sensitive to the selection of the initial pdf. Then, the Fup moments μ j Fup 4   ; j = 0 , , m are determined in the k th iterative step by solving system (12).
  • From the known Fup moments, the problem of pdf estimation using the principle of maximum entropy is now solved:
    0 1 Fup 4 i ( x ) · e j = 0 m γ j Fup 4 j ( x ) dx = μ i Fup 4   ;   i = 0 , , m
    To determine the Lagrange multipliers, γ j , the nonlinear system of Equation (14) is not solved at once but is solved iteratively by the classical Newton-Raphson method, equation by equation, using Romberg’s numerical integration.
  • The index of the current equation, i , is set. The correction of the ith Lagrange coefficient is performed using the classical Newton iterative procedure. If we demand that the residual function of the Lagrange coefficient, Ψ ( γ i k )   , weighs zero, then for the k + 1 iterative step, the relation holds:
    γ i k + 1 = γ i k Ψ ( γ i k )   Ψ ( γ i k )
    In the current iterative step, k , the correction of the value γ i k is required in a way so that first the residual of the Lagrange coefficient belonging to a particular moment is determined:
    Ψ ( γ i k ) = 0 1 Fup 4 i ( x ) · e j   = 0 m γ j Fup 4 j ( x ) dx μ i Fup 4
    and then the first derivation of that residual:
      Ψ ( γ i k ) = 0 1 Fup 4 i ( x ) · e j   = 0 m γ j Fup 4 j ( x ) · Fup 4 i ( x )   dx
    and the correction of the Lagrange multiplier in the k th iterative step:
    Δ γ i k = Ψ ( γ i k )   Ψ ( γ i k ) ,   γ i k + 1 = γ i k + Δ γ i k
If all values of Δ γ i k ,   i = 0 , , m are less than the given tolerance, the iterative procedure is stopped; otherwise, step k + 1 is taken and point five is repeated until the convergence condition is satisfied or until the maximum number of given iterative steps is reached.

3.2. Fast Linear Algorithm (Algorithm 2)

Instead of solving a nonlinear system of Equation (13) in the classical MaxEnt problem, which, in some cases, can cause greater numerical instabilities and slow the solution convergence, the process of pdf estimation from known moments using the maximum entropy principle can be simplified by reducing the problem to solving the linear system of equations. The procedure is described using EFup 4 ( x , ω ) basis functions and consists of the following steps:
  • The probability density function is assumed in the form of a linear combination of EFup 4 basis functions:
    f ( x ) j   = 0 m c j · EFup 4 j ( x , ω )
    The procedure of pdf determination from the given moments, μ i , comes down to directly solving a linear system of equations:
    c j 0 1 x i · EFup 4 j ( x , ω ) dx = μ i   ;   i , j = 0 , , m
    from which follow the coefficients of the linear combination, c j .
  • By including the calculated coefficients, c j , in expression (19), a pdf estimation is obtained, which can also have negative values. Since the probability density function must be positive by definition, i.e., non-negative in the range [ 0 , 1 ] , the corresponding R-function [60] is used to remove the negative part of the function (or to control the lower limit of the pdf):
    f * ( x ) = 1 1 + α ( f 1 ( x ) + f 2 ( x ) + f 1 ( x ) 2 + f 2 ( x ) 2 2 α · f 1 ( x ) · f 2 ( x ) )
    where α = α ( f 1 ( x ) , f 2 ( x ) ) is an arbitrary function that satisfies the condition:
    1 < α ( f 1 ( x ) , f 2 ( x ) ) 1
    For α = 1 follows:
    f * ( x ) = 1 2 { f 1 ( x ) + f 2 ( x ) + | f 1 ( x ) f 2 ( x ) | }
    In the case of maximum entropy, f 1 ( x ) represents the probability density function, and the function f 2 ( x ) is the lower limit that has a value of zero, so (21) becomes:
    f * ( x ) = 1 2 { f 1 ( x ) + | f 1 ( x ) | }
    If f ( x ) obtained from (19) i (20) is already a non-negative function, then (21) has no effect on the solution of the pdf.
  • The function obtained according to expression (21) is normalized for the pdf to fulfill the basic probability condition (1). The moments of the pdf obtained in this way are calculated, compared with the given moments and the error of the calculated moments is estimated. The value of Shannon entropy is also calculated according to expression (3).
  • The procedure is repeated for a number of real parameters, ω , within the selected interval. The interval can be arbitrary and contain positive and negative values of parameters. When ω = 0 , the EFup 4 basis functions are identical to the Fup 4 basis functions.
  • A pdf with the parameter ω that gives the highest value of Shannon entropy according to expression (3) is selected.
In the limit, when m , the obtained function f ( x ) approaches the exact pdf function because it satisfies all moments. For a finite number of moments, the procedure is approximate, but the possibility of choosing the parameter, ω, which gives the maximum possible value of the functional (3) and also adapts to the shape of the pdf, often allows for a very good approximation of the pdf. On the other hand, the pdf vector space of the maximum entropy (4) shows that it belongs to a function of the exponential type; thus, the EFup 4 basis functions make very good candidates for the linear approximation (19). The procedure is particularly suitable for greater numbers of moments when Algorithm 1 can fail.

4. Examples

In this section, the approximation possibilities of the proposed algorithms and their computational efficiency are explored through various examples of pdfs in order to show the advantages and disadvantages of nonlinear classical Algorithm 1 and linear Algorithm 2.

4.1. Example 1–Impulse Function

The efficiency of Algorithm 1 is demonstrated in the example of a numerically demanding probability density function, which, for the MaxEnt moment problem (1–2), represents a challenging numerical problem. It is an impulse function that is very similar to Dirac’s function in the form:
δ ( x ) = 256 π · ERF ( 128 ) e 4096 ( 4 x 2 ) 2
The peak of this function is in the coordinate x = 0.5 with a value of 144.4325 . Since this function is symmetric, the parameter ω is zero, which means that Algorithm 1 and basis functions of the algebraic type Fup 4 ( x ) are used. It is interesting to show the convergence of the solution (Figure 5) that is obtained with only six basis functions, i.e., using the minimum number of moments for this algorithm, with an increase in the number of iterative nonlinear steps.
For 3 · 10 6 iterations, the achieved pdf shape practically coincides with the shape of the analytical function. Table 1 shows how the moment error calculated using Algorithm 1 decreases with the total number of iterations and how the value of the pdf increases at the point x = 0.5 of the observed area.
This example shows the accuracy and stability of numerical Algorithm 1 but also the deficiency of a nonlinear algorithm that requires a large number of iterations. With only six moments, an excellent solution is achieved. With a fast linear Algorithm 2 for this example of a symmetric impulse pdf function, it is not possible to achieve a satisfactory solution, nor can one be achieved with a larger number of moments due to, among other things, the oscillations that occur around the point x = 0.5 . For example, the maximum pdf value obtained with 20 moments is 16.097, which is very far from the exact value.

4.2. Example 2—Bimodal Function

In the second example, we consider a bimodal function composed of two Gaussian distributions normalized to the domain [ 0 , 1 ] . Figure 6a–c show approximations of the bimodal pdf obtained by Algorithm 1, and Figure 6d–f show approximations obtained using Algorithm 2 for m = 5 ,   13 and 20 . Since this function is approximately symmetric, a value close to zero is obtained for the parameter ω so that the numerical calculation is done using Fup 4 ( x ) basis functions.
Improving the pdf estimation by increasing the number of moments taken into account, besides its shape, is monitored through the achieved accuracy of the moments and through the values of the Shannon entropy functional using expression (3). The exact value of the Shannon integral for a bimodal function is H ( f ) = 0.42420 .
Table 2 and Table 3 show that as the number of constraints of the required pdf function increases, the absolute moment error decreases, while the approximation of the Shannon entropy functional (3) improves for calculations using Algorithm 1 and Algorithm 2, respectively. Algorithm 1 approximately satisfies the moments due to solving a nonlinear system of equations and the selected accuracy criterion (“threshold”), as well as approximation of monomials with Fup4 basis functions. On the other hand, functional (3) is also approximately calculated, and with an increasing number of moments, converges relatively slowly to the exact value of H ( f ) = 0.42420 . Algorithm 2 only solves a linear system that satisfies the given moments. With a small number of moments ( m = 5 ) in the symmetric type of pdf, the solution is significantly worse than that of Algorithm 1, which is reflected not only in the visual effect but also in the accuracy of the moments and the value of the functional (3). Yet, when the number of moments reaches m = 13 , very accurate results are obtained with a much simpler procedure.
The calculation time (“CPU time”) depending on the number of moments taken for both algorithms is graphically shown in Figure 7. The computer time is given in seconds and is obtained using the classic programming language Fortran on a computer with an Intel i7 2.80 GHz processor. As the number of moments increases, both algorithms require a nonlinear increase in computation time. When the number of moments exceeds the limit of m = 10 12 a significant saving of computation time is obtained with Algorithm 2. As seen in Figure 7, in the log-log scale, an approximately linear dependence of the number of moments and CPU time is obtained.
From the presented results, it can be concluded that the classical nonlinear MaxEnt Algorithm 1 gives an approximate pdf shape with only six moments. By increasing the number of moments or the number of basis functions, the calculated pdf shape approaches the exact form of the bimodal function, the accuracy of the moments increases and the value of the Shannon entropy functional also approaches the exact value. It can be said that a satisfactory solution is achieved with 21 moments.
However, due to the large number of iterative steps required to solve a nonlinear system of equations, this procedure is a computationally expensive and also very numerically sensitive. Algorithm 2 is a fast algorithm, is not numerically demanding and the procedure is stable. The system of linear equations is solved directly, and, as can be seen in Figure 7, the required computational time is significantly less than that of Algorithm 1. Note that the pdf estimation for a small number of moments is not sufficient; with nine moments, the obtained pdf shape has the characteristics of the required solution that Algorithm 1 provides with only six moments.
However, for a larger number of moments ( m 13 ), the accuracy of the solution increases significantly (see Table 3) both in terms of pdf approximation approaching the exact function shape and in terms of the moment accuracy and the Shannon integral value (3). Using 21 moments, a pdf solution was achieved in which the absolute error of the moments was practically equal to zero and the value of H ( f ) coincided with the exact value. The advantages of both numerical algorithms for estimating the pdf from known moments can be combined in a way by first obtaining the shape of the required function with six moments using the Fup MaxEnt Algorithm 1, from which one can conclude the basic characteristics of the function, and then with the fast Algorithm 2 to get a more accurate pdf estimation using a greater number of moments.

4.3. Example 3—Beta Function

The third example of the beta distribution is given in the form:
f ( x ) = 3990 x 18 ( 1 x ) 2
When applying atomic basis functions of exponential type EFup 4 ( x , ω ) , the basic task is to determine the value of the parameter ω . Function (26) is asymmetric and inclined to the right, which means that the parameter ω > 0 (see Figure 4). Since the principle of maximum entropy requires a pdf that maximizes the Shannon integral (3), this condition will be used as a criterion for selecting the parameter ω . The procedure is reduced to the simultaneous direct solution of the linear system (20) for different values of the parameter ω . Of all the numerical solutions thus obtained, the one that gives the maximum value of Shannon entropy (3) is adopted.
The procedure for determining the parameter ω for pdf estimation by the principle of maximum entropy with 12 moments using basis functions EFup 4 ( x , ω ) is illustrated in Figure 8. The exact value of the integral (3) for the beta function of pdf (26) is H ( f ) = 1.29632 , and the closest value is obtained with ω = 22.5 .
Figure 9 compares the numerical solutions obtained by applying basis functions Fup 4 ( x ) and EFup 4 ( x , ω ) with Algorithms 1 and 2, respectively, for m = 5 . The value of the parameter ω for Algorithm 2, determined by the previously described procedure for pdf estimation with six moments, is ω = 23.0 .
From Figure 9, we can see the advantage that exponential finite basis functions have in relation to basis functions of the algebraic type when it comes to pdf approximation, which is quite an asymmetric function. The greater accuracy of numerical solutions obtained using basis functions EFup 4 ( x , ω ) can also be seen in Table 4, where the absolute errors are given of approximate moments for calculations with both algorithms using algebraic and exponential Fup basis functions.
Table 4 shows the convergence of the values of the Shannon entropy functionals (3) obtained by increasing the number of moments starting from m = 5 using Algorithms 1 and 2 and using the atomic basis functions Fup 4 ( x ) and EFup 4 ( x , ω ) . In this example of the probability density function, the advantage that exponential finite functions have over basis functions of the algebraic type comes down to expression. It can be seen that the functions EFup 4 ( x , ω ) achieve a significantly better convergence of the numerical values of the Shannon integral to the exact value of H ( f ) = 1.29632 . Since exponential functions adapt better to the shape of the MaxEnt problem solution thanks to the parameter ω , they ensure the stability of the numerical procedure, which is especially important for the classical MaxEnt algorithm. In this example, this indicated an extreme numerical sensitivity when using Fup 4 ( x ) basis functions.
For practical application, i.e., for estimating the pdf from known moments when the form of the function is unknown, the advantages of both described numerical algorithms can be used. First, using the nonlinear MaxEnt Algorithm 1 with basis functions Fup 4 ( x ) , which are easier to apply than FEup 4 ( x , ω ) , we get the appearance of the required function with six moments ( m = 5 ), from which can be drawn certain conclusions about the basic characteristics of the pdf, such as its shape, position peaks, number of peaks and inclination, while the number of statistical moments required to accurately describe all the properties of the pdf can be assumed. If an approximately symmetric function is obtained, such a first approximation, the calculation can be continued with the basis functions Fup 4 ( x ) .
If the first approximation gives an asymmetric function or a larger number of moments is required, then using the fast linear Algorithm 2, the parameter ω is determined with the criterion for finding the maximum of the Shannon entropy functional (3), and the calculation continues with exponential functions FEup 4 ( x , ω ) . If it is a simple pdf for which less than six moments are enough, Algorithm 1 with Fup 2 [34] or Fup 1 basis functions can be used. In this way, using the accuracy and robustness of the classic nonlinear MaxEnt Algorithm 1 up to 10–12 moments, we can solve a large number of problems and diagnose the condition if more moments are needed, especially with pdf asymmetry, when linear Algorithm 2 becomes much simpler and more efficient. With this hybrid technique, a large number of challenging problems can be solved in a much easier way than could be solved individually with the two presented algorithms.

5. Conclusions

In this paper, the application has been shown of numerical algorithms based on the maximum entropy principle using Fup basis functions that belong to the class of atomic basis functions with a compact support. The pdf examples selected in this paper demonstrate the efficiency of two algorithms for probability-density-function estimation from a finite number of known moments. These algorithms use Fup basis functions of the algebraic and exponential types. The simulation results show the convergence properties of the proposed algorithms by increasing the number of moments taken into account. The example of a pdf in the form of a pulse function shows the accuracy and stability of the numerical procedure of Algorithm 1, where with only six moments, a satisfactory solution can be achieved by increasing the number of iterations in the calculation.
With such demanding pdfs, the number of iterative steps in the nonlinear procedure becomes very large. The characteristics of numerical solutions obtained with Algorithms 1 and 2 using algebraic finite basis functions are shown in the example of a demanding bimodal function. The classic nonlinear MaxEnt Algorithm 1 gives a good pdf shape approximation with only six moments. By increasing the number of moments or the number of basis functions, the approximate solution converges to the exact function. However, the numerical procedure is computationally expensive and sensitive to the computer’s precision, so the optimization problem becomes poorly conditioned. Fast linear Algorithm 2 ensures complete stability of the procedure, but a higher number of moments is required to satisfy the accuracy of the pdf estimation.
The third example of a pdf is a beta function that represents a polynomial of the 20th degree, which is why it is numerically demanding to approximate. Nonlinear Algorithm 1 showed special sensitivity in this pdf when applying algebraic finite basis functions. In the example of quite an asymmetric pdf function, the advantage of exponential finite basis functions over functions of the algebraic type can be noted both in the stability of the nonlinear classical MaxEnt algorithm and in the achieved accuracy of calculated pdf moments and calculated Shannon integral values as a basic criterion for pdf estimation by the principle of maximum entropy.
For practical applications, i.e., for pdf estimation from known moments when the shape of the function is unknown, we can use the advantages of both numerical algorithms described here, which we defined as a hybrid strategy in this article.

Author Contributions

Conceptualization, V.K. and H.G; methodology, B.G.; software, N.B.K., B.G. and V.K.; validation, N.B.K., B.G. and V.K.; investigation, B.G. and H.G.; writing—original draft preparation, V.K.; writing—review and editing, N.B.K. and V.K.; visualization, N.B.K. and V.K.; supervision, V.K. and H.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Acknowledgments

This research is partially supported through project KK.01.1.1.02.0027, a project co-financed by the Croatian Government and the European Union through the European Regional Development Fund-the Competitiveness and Cohesion Operational Programme.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Fupn and EFupn Basis Functions

Appendix A.1. Calculation and Approximation Properties of the Fupn Basis Functions

Atomic basis functions are infinitely-differentiable functions with compact support [35,56]. Atomic functions are defined as solutions of differential functional equations of the following type:
Ly ( x ) = λ k = 1 M C k   y ( ax b k )
where L is a linear differential operator with constant coefficients, λ is a nonzero scalar, C k are coefficients of the linear combination, a > 1 is a parameter that defines the length of the compact support, and b k are coefficients that determine displacements of the basis functions. Rvačev and Rvačev, in their pioneering work [35], called these basis functions ‘‘atomic” because they span the vector spaces of all three fundamental functions in mathematics: algebraic, exponential and trigonometric polynomials.
The simplest function, which is the most studied of the atomic basis functions, is the up ( x ) function. The function up ( x ) is a smooth function with compact support over [ 1 , 1 ] , which is obtained as a solution of a differential functional equation
up ( x ) = 2 · up ( 2 x + 1 ) 2 · up ( 2 x 1 )
with the normalized condition + up ( x ) dx = 1 1 up ( x ) dx = 1 . The function up ( x ) can be expressed as an inverse Fourier transform:
up ( x ) = 1 2 π + e itx · j   = 1 sin ( t / 2 j ) t / 2 j dt
Since (A3) represents an exact but mathematically intractable expression, in [36,56], a more numerically adequate expression for calculating the function up ( x ) is provided:
up ( x ) = 1 k = 1 ( 1 ) 1 + p 1 + + p k   p k j   = 0 k C jk · ( x 0 , p 1   p k ) j
where coefficients C jk are rational numbers determined according to the following expression:
C jk = 1 j ! 2 j ( j + 1 ) / 2 up ( 1 + 2 ( k j ) )   ;   j = 0   ,   1   ,     ,   k   ;   k = 1   ,   2   ,     ,  
Calculation of up ( 1 + 2 r )   r [ 0 , ] in binary-rational points (A5), as well as all details regarding the calculation of the function up ( x ) values, is provided in [56,61]. The argument ( x 0 , p 1   p k ) in (A1.4) is the difference between the real value of coordinate x and its binary form in k bits, where p 1   p k are digits, 0 or 1 , of the binary representation of the x coordinate. Therefore, the accuracy of the x coordinate computation, and thus the accuracy of the up ( x ) function at an arbitrary point, depends on machine accuracy.
The Fup n ( x ) function satisfies the following differential-functional equation:
Fup n ( x ) = 2 k = 0 n + 2 ( C n + 1 k C n + 1 k 1 ) · Fup n ( 2 x k 2 n + 1 + n + 2 2 n + 2 )
where C n + 1 k and C n + 1 k 1 are binomial coefficients and n is the Fup order. Index n also denotes the highest degree of the polynomial that can be expressed exactly as a linear combination of n + 2   Fup n ( x ) basis functions, uniformly displaced by a characteristic interval 2 n .
For n = 0 , Fup 0 ( x ) = up ( x ) since Fup n ( x ) and its derivatives can be calculated using a linear combination of displaced up ( x ) functions:
Fup n ( x ) = k = 0 C k ( n ) · up ( x 1 k 2 n + n + 2 2 n + 1 )
where C 0 = 2 C n + 1 2 = 2 n ( n + 1 ) / 2 . In turn, C k ( n ) = C 0 ( n ) · C k ( n ) , where a recursive formula is used for calculating auxiliary coefficients C k ( n ) :
C 0 ( n ) = 1   ,   when   k = 0   ;   i . e . ,   when   k > 0 C k ( n ) = ( 1 ) k C n + 1 k j   = 1 min   {   k   ;   2 n + 1 1 }   C k j ( n ) δ j + 1
Fup n ( x ) is defined over the compact support [ ( n + 2 ) · 2 n 1 ,   ( n + 2 ) · 2 n 1 ] . Figure 1 in the manuscript shows the Fup 4 ( x ) function.
Linear combination of displaced Fup n ( x ) functions in the form:
φ ( x ) = k = D k · Fup n ( x k 2 n )
is a polynomial of nth degree if coefficients D k are the polynomials of degree n of index k . Coefficients D k are determined using collocation procedure [36].
Therefore, a polynomial of nth degree can be exactly expressed on a 2 n long interval as a linear combination of basis functions obtained by function Fup n ( x ) displacement over a characteristic interval Δ x n = 2 n .
A linear combination of displaced Fup 4 ( x ) basis functions at the interval [0, 1] describes exactly the monomials:
x 0 = 1 2 4 k = 2 3 Fup 4 ( x k / 16 ) x 1 = Δ x 2 8 k = 2 3 k · Fup 4 ( x k / 16 ) x 2 = ( Δ x ) 2 2 12 k = 2 3 ( k 2 4 9 ) · Fup 4 ( x k / 16 ) x 3 = ( Δ x ) 3 2 16 k = 2 3 ( k 3 4 3 k ) ·   Fup 4   ( x k / 16 ) x 4 = ( Δ x ) 4 2 20 k = 2 3 ( k 4 8 3 k 2 + 857 1350 ) ·   Fup 4   ( x k / 16 )
Other higher-order monomials are expressed approximately. Differences between monomials and their Fup 4 ( x ) approximations are defined by residual functions ε i ( x ) (see article, Point 3.1).

Appendix A.2. Calculation and Approximation Properties of the EFupn Basis Functions

The EFup n ( x , ω ) functions are atomic finite functions of class C with compact support [35] and are the elements of the linear vector space EUP n . The simplest function from the class EFup n ( x , ω ) is the function Eup ( x , ω ) for n = 0 [57], which, analogous to the algebraic ABF [56], is called the maternal function. The functions EFup n ( x , ω ) retain all the properties of ‘their’ maternal basis function, Eup ( x , ω ) [57]. The index n denotes the largest degree of an exponential polynomial that can be represented exactly in the form of a linear combination of shifted EFup n ( x , ω ) functions on a segment of length Δ x n = 2 n . The parameter ω gives them an additional property of ‘adaptability’ with respect to the ABF of the algebraic type (see Figure 4).
The Fourier transform (FT) of atomic basis functions EFup n ( x , ω ) is of the form:
F n ( t ) = j = 1 n + 1 ω 2 j sh ( ω / 2 j ) sh ( ω / 2 j + i t / 2 n + 1 ) ω / 2 j + i t / 2 n + 1 k = n + 2 ω 2 sh ( ω / 2 ) sh ( ω / 2 + i t / 2 k ) ω / 2 + i t / 2 k
and, according to expression (A11), is equal to the multiplication of ( n + 1 ) FT of exponential splines of zero degree φ 0 j ( x , ω ) , normalized to the interval h 0 = 2 n :
φ 0 j ( x , ω ) = 2 j 1 ω sh ( ω / 2 n j + 1 ) e 2 j ω x   , j = 0 , , n supp   φ 0 j ( x , ω ) = [ 2 ( n + 1 ) , 2 ( n + 1 ) ]
and the FT of maternal function Eup ( x , ω ) also compressed to the support supp   Eup ( x , ω ) = [ 2 ( n + 1 ) , 2 ( n + 1 ) ] . Thus, the function EFup n ( x , ω ) can be written using convolution theorem in the following form:
EFup n ( x , ω ) = φ 0 0 ( x , ω )   φ 0 n ( x , ω )     2 n + 1 Eup ( 2 n + 1 x , ω )
The support of the function EFup n ( x , ω ) is an interval composed of ( n + 2 ) subintervals of length 2 n :
supp   EFup n ( x , ω ) = [ ( n + 2 ) · 2 n 1 ,   ( n + 2 ) · 2 n 1 ]
The characteristic points are the boundary points of the subintervals.
Entropy 23 01559 i001
The inverse Fourier transform, i.e., the function EFup n ( x , ω ) , with the satisfaction of the Paley-Wiener normalization condition, can be expressed in the form:
EFup n ( x , ω ) = 1 2 π   e itx   F n ( t )   dt
By developing expression (A13) in the Fourier series, the ˝original˝ of the function EFup n ( x , ω ) can be determined at arbitrary points. However, practically, the most optimal possibility of constructing functions EFup n ( x , ω ) is in the form of a linear combination of mutually shifted Eup ( x , ω ) basis functions.
EFup n ( x , ω ) = k = 0 C k ( n ) Eup ( x 1 k 2 n + n + 2 2 n + 1 , ω )
where C k ( n ) are the coefficients of the linear combination
C k ( n ) = EFup n ( n + 2 2 n + 1 + k + 1 2 n , ω ) i   = 1 k C i 1 ( n ) Eup ( 1 + k + 2 i 2 n , ω ) Eup ( 1 + 2 n , ω )
and the coefficients C 0 ( n ) are determined by
C 0 ( n ) = i   = 1 n ( e ω / 2 n i + 1 + 1 ) i
The derivatives and integrals of the functions EFup n ( x , ω ) are also obtained by a linear combination of the derivatives/integrals of the shifted functions Eup ( x , ω ) using the coefficients (A15) and (A16).
The exponential function e 2 m ω x ,   m = 0 , 1 , , n ,   n N on an interval 2 n can be accurately represented by a linear combination ( n + 2 ) · 2 n of the basis function EFup n ( x , ω ) , offset from one another by 2 n in the form
e 2 m ω x = k = e 2 m · ω · k · Δ x n A n , x ( m ) · EFup n ( x k · Δ x n , 2 n · ω · Δ x n ) ;   m = 0 , 1 , , n
where the coefficients A n , x ( m ) are
A n , x ( m ) = i = ( n + 2 ) · 2 n 1 ( n + 2 ) · 2 n 1 e 2 m · ω · i · Δ x n

References

  1. Balestrino, A.; Caiti, A.; Noe, A.; Parenti, F. Maximum entropy based numerical algorithms for approximation of probability density functions. In Proceedings of the European Control Conference (ECC), Zurich, Switzerland, 17–19 July 2013; ISBN 978-3-9524173-7-9. [Google Scholar] [CrossRef]
  2. Bandyopadhyay, K.; Bhattacharya, A.K.; Biswas, P.P.; Drabold, D.A. Maximum entropy and the problem of moments: A stable algorithm. Phys. Rev. E 2005, 71, 057701. [Google Scholar] [CrossRef] [Green Version]
  3. Mead, L.R.; Papanicolau, N. Maximum entropy in the problem of moments. J. Math. Phys. 1984, 25, 2404–2417. [Google Scholar] [CrossRef] [Green Version]
  4. Jaynes, E.T. Information theory and statistical mechanics. Phy. Rev. Part I 1957, 106, 620–630. [Google Scholar] [CrossRef]
  5. Shannon, C.E. The Mathematical Theory of Communication. BellSyst. Tech. J. 1948, 27, 379–423, Reprinted in 2001, 5, 3–55. [Google Scholar] [CrossRef] [Green Version]
  6. Berger, A.L.; Della Pietra, S.A.; Della Pietra, V.J. A maximum entropy approach to natural language processing. Comp. Linguist. 1996, 22, 39–71. [Google Scholar]
  7. Tung, Y.K.; Yen, B.K.; Melching, C.S. Hydrosystems Engineering Reliability Assessment and Risk Analysis; McGraw-Hill: New York, NY, USA, 2006; p. 495. [Google Scholar]
  8. Xuan, Z.; Papadopoulos, P.; Li, J.; Zhang, L. An entropy-based evaluation of contact forces in continuum mechanics of elastic structures. Finite Elem. Anal. Des. 2016, 114, 78–84. [Google Scholar] [CrossRef]
  9. He, W.; Li, G.; Hao, P.; Zeng, Y. Maximum Entropy Method-Based Reliability Analysis With Correlated Input Variables via Hybrid Dimension-Reduction Method. J. Mech. Des. 2019, 141, 101405. [Google Scholar] [CrossRef]
  10. Xu, J.; Dang, C.; Kong, F. Efficient reliability analysis of structures with the rotational quasi-symmetric point- and the maximum entropy methods. Mech. Syst. Signal Process. 2017, 95, 58–76. [Google Scholar] [CrossRef]
  11. Andreychenko, A.; Mikeev, L.; Wolf, V. Model Reconstruction for Moment-Based Stochastic Chemical Kinetics. ACM Trans. Model. Comput. Simul. 2015, 25, 1–19. [Google Scholar] [CrossRef] [Green Version]
  12. Andreychenko, A.; Mikeev, L.; Wolf, V. Reconstruction of multimodal distributions for hybrid moment-based chemical kinetics. J. Coupled Syst. Multiscale Dyn. 2015, 3, 156–163. [Google Scholar] [CrossRef] [Green Version]
  13. Attarakih, M.; Hasseine, A.; Bart, H.J.A. Meshfree Maximum Entropy Method for the Solution of the Population Balance Equation. Comput. Aided Chem. Eng. 2015, 37, 197–202. [Google Scholar] [CrossRef]
  14. Sarr, J.A.; Groth, C.P. A second-order maximum-entropy inspired interpolative closure for radiative heat transfer in gray participating media. J. Quant. Spectrosc. Radiat. Transf. 2020, 255, 107238. [Google Scholar] [CrossRef]
  15. Petrov, V.; Soares, C.G.; Gotovac, H. Prediction of extreme significant wave heights using maximum entropy. Coast. Eng. 2013, 74, 1–10. [Google Scholar] [CrossRef]
  16. Petrov, V.; Lucas, C.; Soares, C.G. Maximum entropy estimates of extreme significant wave heights from satellite altimeter data. Ocean. Eng. 2019, 187, 106205. [Google Scholar] [CrossRef]
  17. Pringle, J.; Stretch, D.D.; Bárdossy, A. On linking atmospheric circulation patterns to extreme wave events for coastal vulnerability assessments. Nat. Hazards 2015, 79, 45–59. [Google Scholar] [CrossRef]
  18. Kumbhakar, M.; Ghoshal, K.; Singh, V.P. Two-dimensional distribution of streamwise velocity in open channel flow using maximum entropy principle: Incorporation of additional constraints based on conservation laws. Comput. Methods Appl. Mech. Eng. 2020, 361, 112738. [Google Scholar] [CrossRef]
  19. Guo, J.; Zhao, J.; Zeng, S. Structural reliability analysis based on analytical maximum entropy method using polynomial chaos expansion. Struct. Multidiscip. Optim. 2018, 58, 1187–1203. [Google Scholar] [CrossRef]
  20. He, W.; Zeng, Y.; Li, G. A novel structural reliability analysis method via improved maximum entropy method based on nonlinear mapping and sparse grid numerical integration. Mech. Syst. Signal Process. 2019, 133, 106247. [Google Scholar] [CrossRef]
  21. Rajan, A.; Kuang, Y.C.; Ooi, M.P.-L.; Demidenko, S.N.; Carstens, H. Moment-constrained maximum entropy method for expanded uncertainty evaluation. Trans. Power Syst. IEEE 2018, 6, 4072–4082. [Google Scholar] [CrossRef]
  22. Shi, X.; Teixeira, A.P.; Zhang, J.; Soares, C.G. Structural reliability analysis based on probabilistic response modelling using the Maximum Entropy Method. Eng. Struct. 2014, 70, 106–116. [Google Scholar] [CrossRef]
  23. Xu, J.; Kong, F. Adaptive scaled unscented transformation for highly efficient structural reliability analysis by maximum entropy method. Struct. Saf. 2019, 76, 123–134. [Google Scholar] [CrossRef]
  24. Zhang, X.; Low, Y.M.; Koh, C.G. Maximum entropy distribution with fractional moments for reliability analysis. Struct. Saf. 2020, 83, 101904. [Google Scholar] [CrossRef]
  25. Zhang, Y. Principle of maximum entropy for reliability analysis in the design of machine components. Front. Mech. Eng. 2019, 14, 21–32. [Google Scholar] [CrossRef]
  26. Wan, B.; Wang, Y.; Su, Y.; Fu, G. Reliability Evaluation of Multi-Mechanism Failure for Semiconductor Devices Using Physics-of-Failure Technique and Maximum Entropy Principle. IEEE 2020, 8, 188154–188170. [Google Scholar] [CrossRef]
  27. Abramov, R. A practical computational framework for the multidimensional moment-constrained maximum entropy principle. J. Comp. Phys. 2006, 211, 198–209. [Google Scholar] [CrossRef]
  28. Abramov, R. An improved algorithm for the multidimensional moment-constrained maximum entropy problem. J. Comp. Phys. 2007, 226, 621–644. [Google Scholar] [CrossRef]
  29. Abramov, R.V. The multidimensional maximum entropy moment problem: A review of numerical methods. Commun. Math. Sci. 2010, 8, 377–392. [Google Scholar] [CrossRef] [Green Version]
  30. Hao, W.; Harlim, J. An equation-by-equation method for solving the multidimensional moment constrained maximum entropy problem. Commun. Appl. Math. Comput. Sci. 2018, 13, 189–214. [Google Scholar] [CrossRef]
  31. Amiri, F.; Ziaei-Rad, S.; Valizadeh, N.; Rabczuk, T. On the use of local maximum entropy approximants for Cahn–Hilliard phase-field models in 2D domains and on surfaces. Comput. Methods Appl. Mech. Eng. 2019, 346, 1–24. [Google Scholar] [CrossRef]
  32. Ding, J.; Rhee, N.H. A unified maximum entropy method via spline functions for Frobenius-Perron operators. Numer. Algebra Control. Optim. 2013, 3, 235–245. [Google Scholar] [CrossRef]
  33. Islam, M.S.; Smith, A. Approximating Solutions of Fredholm Integral Equations via a General Spline Maximum Entropy Method. Int. J. Appl. Comput. Math 2020, 6, 64. [Google Scholar] [CrossRef]
  34. Gotovac, H.; Gotovac, B. Maximum entropy algorithm with inexact upper entropy bound based on Fup basis functions with compact support. J. Comput. Phys. 2009, 228, 9079–9091. [Google Scholar] [CrossRef]
  35. Rvachev, V.L.; Rvachev, V.A. Pro odnu finitnu funkciju. DAN URSR. Ser. A 1971, 6, 705–707. (In Russian) [Google Scholar]
  36. Rvachev, V.L.; Rvachev, V.A. Non-Classical Methods of Approximation Theory in Boundary Value Problems; Naukova Dumka: Kiev, Ukraine, 1979. (In Russian) [Google Scholar]
  37. Kravchenko, V.F. Lectures on the Theory of Atomic Functions and Their Some Applications; Radiotechnika: Moscow, Russia, 2003. [Google Scholar]
  38. Kravchenko, V.F.; Kravchenko, O.V.; Pustovoit, V.I.; Churikov, D.V.; Volosyuk, V.K.; Pavlikov, V.V. Atomic functions theory: 45 years behind. In Proceedings of the 9th International Kharkiv Symposium on Physics and Engineering of Microwaves (MSMW) 2016, Kharkiv, Ukraine, 20–24 June 2016; pp. 1–4. [Google Scholar] [CrossRef]
  39. Kravchenko, V.F.; Kravchenko, O.V.; Konovalov, Y.Y.; Budunova, K.A. Atomic Functions Theory: History and Modern Results: Dedicated to the Pioneer of Atomic Functions Theory V.L. Rvachev Invited Paper. In Proceedings of the IEEE (UkrMW) 2020, Kharkiv, Ukraine, 22–27 June 2020; pp. 619–623. [Google Scholar] [CrossRef]
  40. Kravchenko, V.F.; Kravchenko, O.V. Constructive Methods of Algebra of Logic, Atomic Functions, Wavelets, Fractals in Problems of Physics and Engineering; Kravchenko, V.F., Ed.; Technosphera: Moscow, Russia, 2018. (In Russian) [Google Scholar]
  41. Kravchenko, V.F.; Churikov, D.V. Digital Signal Processing by Atomic Functions and Wavelets; Technosphera: Moscow, Russia, 2019. (In Russian) [Google Scholar]
  42. Kravchenko, V.F.; Pustovoit, V.I.; Yurin, A.V. Features of Constructing an Orthonormal Basis Based on Atomic Functions as Applied to Solving Boundary Value Electrodynamics Problems for Regions of Complex Shape. J. Commun. Technol. Electron. 2019, 64, 1218–1223. [Google Scholar] [CrossRef]
  43. Budunova, K.A.; Kravchenko, V.F.; Churikov, D.V. Application of the Family of Kravchenko-Rvachev Atomic Weight Functions (Windows) in Welch Method EEG Power Spectral Density Estimation. In Proceedings of the PhotonIcs & Electromagnetics Research Symposium-Spring (PIERS-Spring) 2019, Rome, Italy, 17–20 June 2019; pp. 500–506. [Google Scholar] [CrossRef]
  44. Budunova, K.A.; Kravchenko, V.F.; Pustovoit, V.I. Digital Frequency-Selective Filters Based on Spectra of Atomic Functions. J. Commun. Technol. Electron. 2019, 64, 1095–1100. [Google Scholar] [CrossRef]
  45. Kravchenko, V.F.; Nazarov, L.E.; Pustovoit, V.I. Noise-Immune Communication with Orthogonal Frequency Division Multiplexing Using Kravchenko Weight Function Processing. Dokl. Math. 2020, 102, 528–531. [Google Scholar] [CrossRef]
  46. Pelcastre, F.; Miyatake, M.N.; Toscano, K.; Sanchez, G.; Perez, H. An Inverse Halftoning Algorithms Based on Neural Networks and Atomic Functions. IEEE Lat. Am. Trans. 2017, 15, 488–495. [Google Scholar] [CrossRef]
  47. Hernandez-Matamoros, A.; Fujita, H.; Escamilla-Hernandez, E.; Perez-Meana, H.; Nakano-Miyatake, M. Recognition of ECG signals using wavelet based on atomic functions. Biocybern. Biomed. Eng. 2020, 40, 803–814. [Google Scholar] [CrossRef]
  48. Gotovac, H.; Andricevic, R.; Gotovac, B. Multi-resolution adaptive modeling of groundwater flow and transport problems. Adv. Water Res. 2007, 30, 1105–1126. [Google Scholar] [CrossRef]
  49. Gotovac, H.; Cvetkovic, V.; Andricevic, R. Significance of higher moments for complete characterization of the travel time probability density function in heterogeneous porous media using the maximum entropy principle. Water Resour. Res. 2010, 46, W05502. [Google Scholar] [CrossRef]
  50. Kamber, G.; Gotovac, H.; Kozulić, V.; Malenica, L.; Gotovac, B. Adaptive numerical modeling using the hierarchical Fup basis functions and control volume isogeometric analysis. Int. J. Numer. Methods Fluids 2020, 92, 1437–1461. [Google Scholar] [CrossRef]
  51. Gotovac, H.; Malenica, L.; Gotovac, B. Control Volume Isogeometric Analysis for groundwater flow modeling in heterogeneous porous media. Adv. Water Resour. 2021, 148, 103838. [Google Scholar] [CrossRef]
  52. Eremenko, S. Soliton Nature; Australia Science Press Releases: Sydney, Australia, 2019. [Google Scholar]
  53. Eremenko, S.Y. Atomic solitons as a new class of solitons. Nonlinear World 2020, 16, 39–63. [Google Scholar] [CrossRef]
  54. Eremenko, S.Y. Atomic Strings and Fabric of Spacetime, Publishing House Radiotekhnika. Achievements of Modern Radioelectronics. 2018. Available online: www.radiotec.ru (accessed on 17 March 2020).
  55. Eremenko, S.Y. Atomic Machine Learning. J. Neurocomputers 2018, 3, 1–21. [Google Scholar]
  56. Gotovac, B.; Kozulic, V. On a selection of basis functions in numerical analyses of engineering problems. Int. J. Eng. Model. 1999, 12, 25–41. [Google Scholar]
  57. Brajcic Kurbasa, N.; Gotovac, B.; Kozulić, V. Atomic Exponential Basis Function Eup(x,ω)—Development and Application. Comput. Model. Eng. Sci. 2016, 111, 493–530. [Google Scholar]
  58. Alinia, N.; Zarebnia, M. A new tension B-spline method for third-order self-adjoint singularly perturbed boundary value problems. J. Comput. Appl. Math. 2018, 342, 521–533. [Google Scholar] [CrossRef]
  59. Cao, D. An Exponential Spline Difference Scheme for Solving a Class of Boundary Value Problems of Second-Order Ordinary Differential Equations. Discret. Dyn. Nat. Soc. 2020, 2020, 7056254. [Google Scholar] [CrossRef]
  60. Rvachev, V.L. Teorija R-funkcij I Nekotorija Jeje Priloženija; Naukova dumka: Kiev, Ukraine, 1982; p. 551. (In Russian) [Google Scholar]
  61. Gotovac, B.; Kozulic, V. Numerical solving the initial value problems by Rbf basis functions. Struct. Eng. Mech. 2002, 14, 263–285. [Google Scholar] [CrossRef]
Figure 1. Function Fup 4 ( x ) .
Figure 1. Function Fup 4 ( x ) .
Entropy 23 01559 g001
Figure 2. Linear combination of the Fup 4 ( x ) functions over the [ 0 , 1 ] interval.
Figure 2. Linear combination of the Fup 4 ( x ) functions over the [ 0 , 1 ] interval.
Entropy 23 01559 g002
Figure 3. Linear combination of the modified Fup 4 ( x ) functions over the [ 0 , 1 ] interval.
Figure 3. Linear combination of the modified Fup 4 ( x ) functions over the [ 0 , 1 ] interval.
Entropy 23 01559 g003
Figure 4. Function EFup 4 ( x , ω ) for 10 ω 10 .
Figure 4. Function EFup 4 ( x , ω ) for 10 ω 10 .
Entropy 23 01559 g004
Figure 5. Approximation of the impulse pdf function for m = 5 in the nonlinear procedure of Algorithm 1 with different numbers of iterations: (a) No.Iter. = 5000, (b) No.Iter. = 50,000, (c) No.Iter. = 100,000, (d) No.Iter. = 1,000,000.
Figure 5. Approximation of the impulse pdf function for m = 5 in the nonlinear procedure of Algorithm 1 with different numbers of iterations: (a) No.Iter. = 5000, (b) No.Iter. = 50,000, (c) No.Iter. = 100,000, (d) No.Iter. = 1,000,000.
Entropy 23 01559 g005
Figure 6. Approximation of the bimodal pdf function using Algorithm 1 with given (a) 6, (b) 14 and (c) 21 moments and approximation of the same using Algorithm 2 with given (d) 6, (e) 14, (f) and 21 moments.
Figure 6. Approximation of the bimodal pdf function using Algorithm 1 with given (a) 6, (b) 14 and (c) 21 moments and approximation of the same using Algorithm 2 with given (d) 6, (e) 14, (f) and 21 moments.
Entropy 23 01559 g006aEntropy 23 01559 g006b
Figure 7. Required calculation time (“CPU time”) as a function of the number of moments for: (a) Algorithm 1, (b) Algorithm 2.
Figure 7. Required calculation time (“CPU time”) as a function of the number of moments for: (a) Algorithm 1, (b) Algorithm 2.
Entropy 23 01559 g007
Figure 8. Shannon integral values (3) for beta pdf (26) and m = 11 obtained with different values of the parameter ω .
Figure 8. Shannon integral values (3) for beta pdf (26) and m = 11 obtained with different values of the parameter ω .
Entropy 23 01559 g008
Figure 9. Estimates of pdf for beta distribution obtained for given six moments with (a) Algorithm 1 and (b) Algorithm 2.
Figure 9. Estimates of pdf for beta distribution obtained for given six moments with (a) Algorithm 1 and (b) Algorithm 2.
Entropy 23 01559 g009
Table 1. Absolute moment errors and pdf values in relation to the total number of iterations for m = 5 .
Table 1. Absolute moment errors and pdf values in relation to the total number of iterations for m = 5 .
Total Number of Iterations5 × 1035 × 1041051063 × 106
Absolute moment error0.26 × 10−20.68 × 10−30.42 × 10−30.12 × 10−40.29 × 10−7
Maximum pdf value50.15485.73899.018138.902144.279
Table 2. Absolute moment error and values of functional (3) for Algorithm 1.
Table 2. Absolute moment error and values of functional (3) for Algorithm 1.
Number of Moments6 (m = 5)14 (m = 13)21 (m = 20)
Absolute moment error0.33 × 10−60.36 × 10−70.47 × 10−9
Value of the Shannon functional−0.39841−0.42283−0.42419
Table 3. Absolute error of moments and values of functional (3) for Algorithm 2.
Table 3. Absolute error of moments and values of functional (3) for Algorithm 2.
Number of Moments6 (m = 5)14 (m = 13)21 (m = 20)
Absolute moment error0.14 × 10−10.18 × 10−40.25 × 10−33
Value of Shannon functional−0.24727−0.42416−0.42420
Table 4. Absolute moment errors and Shannon integral values obtained for m = 5 ,   11 and 20 for Algorithms 1 and 2 with Fup 4 ( x ) basis functions and EFup 4 ( x , ω ) , respectively.
Table 4. Absolute moment errors and Shannon integral values obtained for m = 5 ,   11 and 20 for Algorithms 1 and 2 with Fup 4 ( x ) basis functions and EFup 4 ( x , ω ) , respectively.
No. of Moments6 (m = 5)12 (m = 11)21 (m = 20)
Abs. Moment ErrorAlgorithm 10.69 × 10−50.120 × 10−40.743 × 10−4
Algorithm 20.337 × 10−20.144 × 10−40.194 × 10−6
Shannon IntegralAlgorithm 1−1.29590−1.29571−1.29686
Algorithm 2−1.29223−1.29591−1.29631
ω Algorithm 223.022.517.2
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Brajčić Kurbaša, N.; Gotovac, B.; Kozulić, V.; Gotovac, H. Numerical Algorithms for Estimating Probability Density Function Based on the Maximum Entropy Principle and Fup Basis Functions. Entropy 2021, 23, 1559. https://doi.org/10.3390/e23121559

AMA Style

Brajčić Kurbaša N, Gotovac B, Kozulić V, Gotovac H. Numerical Algorithms for Estimating Probability Density Function Based on the Maximum Entropy Principle and Fup Basis Functions. Entropy. 2021; 23(12):1559. https://doi.org/10.3390/e23121559

Chicago/Turabian Style

Brajčić Kurbaša, Nives, Blaž Gotovac, Vedrana Kozulić, and Hrvoje Gotovac. 2021. "Numerical Algorithms for Estimating Probability Density Function Based on the Maximum Entropy Principle and Fup Basis Functions" Entropy 23, no. 12: 1559. https://doi.org/10.3390/e23121559

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop