Full text
symmetry S S Article On Taylor Series Expansion for Statistical Moments of Functions of Correlated Random Variables † Lukáš Novák * and Drahomír Novák Faculty of Civil Engineering, Brno University of Technology, 60200 Brno , Czech Republic; [email protected].cz *Correspondence: [email protected].cz † This paper is an extended version of our paper published in The 17th international Conference of Numerical Analysis and Applied Mathematics (ICNAAM 2019). Received: 29 July 2020; Accepted: 17 August 2020; Published: 18 August 2020 Abstract: The paper is focused on Taylor series expansion for statistical analysis of functions of random variables with special attention to correlated input random variables. It is shown that the standard approach leads to significant deviations in estimated variance of non-linear functions. Moreover, input random variables are often correlated in industrial applications; thus, it is crucial to obtain accurate estimations of partial derivatives by a numerical differencing scheme. Therefore, a novel methodology for construction of Taylor series expansion of increasing complexity of differencing schemes is proposed and applied on several analytical examples. The methodology is adapted for engineering applications by proposed asymmetric difference quotients in combination with a specific step-size parameter. It is shown that proposed differencing schemes are suitable for functions of correlated random variables. Finally, the accuracy, efficiency, and limitations of the proposed methodology are discussed. Keywords: Taylor series expansion; estimation of coefficient of variation; semi-probabilistic approach; structural reliability 1. Introduction Mathematical modeling in civil engineering is often represented by the finite element method (FEM). Although FEM is an accurate and efficient technique, it is still highly time-consuming, particularly in the case of non-linear FEM including geometrical and material non-linearity. Therefore, from a practical point of view, it is necessary to decrease the number of FEM calculations as much as possible while satisfying the given safety requirements of the analyzed structure. A solution can be represented by a semi-probabilistic approach widely accepted in the engineering field [ 1 ] and implemented into the national codes such as Eurocode [ 2 ]. Such approach is able to greatly reduce the number of necessary calculations for the design and an assessment of structures. The basic reliability concept is given as Z=R−E , where Z is a safety margin, which is defined as the difference between the structural resistance R and the load effect E . The task of reliability analysis is the estimation of failure probability pf=P(Z<0) , which might be highly computationally demanding. According to the semi-probabilistic approach, the resistance of a structure R is separated, and the design value Rd satisfying given safety requirements is evaluated instead of calculating the failure probability. Such approach directly leads to the design value of resistance, which is obtained by the traditional Partial Safety Factor (PSF) approach, and thus can be easily used for a design and an assessment of structures. The PSF method is based on a simple assumption, that a calculation with design values of input random variables leads to the design value of resistance Rd=r(xd) , where design values of input random variables xd are derived under several simplifications, such as a linearization of a limit state function. In consequence, PSF works well for standard linear calculations, but there may Symmetry 2020,12, 1379; doi:10.3390/sym12081379 www.mdpi.com/journal/symmetry
Symmetry 2020,12, 1379 2 of 14 be a significant error for a non-linear analysis, which is far more popular nowadays. Therefore, it is necessary to develop new methods in compliance with the semi-probabilistic approach applicable for non-linear analysis. The semi-probabilistic approach is briefly presented in the following paragraph. It is assumed that R and E are independent, and separated R is lognormally distributed; thus, the design value of resistance Rdis defined as Rd=µR·exp(−αRβvR), (1) where vR is the coefficient of variation (CoV) of resistance, and αR represents the sensitivity factor associated with R derived from the First Order Reliability Method (FORM) [ 1 , 3 ]. FORM is commonly applied to linearization of limit state function at the most probable failure point by Taylor series expansion. FORM assumes the uncorrelated standardized Gaussian space ξ ; thus, all variables must be transformed by Rosenblatt transformation [ 4 ] from the original space. The coordinates of the most probable failure point, also called the design point, are thereafter described by the shortest distance β to the origin of the ξ space, direction cosines αR associated with resistance and αE associated with load. The shortest distance β is defined as the Hasofer–Lind reliability index, and its minimal value is given for various conditions in normative documents, in order to achieve the target safety of structures. For industrial applications, FORM is simplified by the statistical estimation of fixed value αR= 0.8. Therefore, to determine the design value by a semi-probabilistic approach, it is crucial to correctly estimate the mean value and variance of structural resistance R , which can be seen as a function of multiple random variables. This task may be challenging due to the fact that input random variables can generally be non-Gaussian and correlated. There have been several methods proposed in last two decades to estimate the variation coefficient of R (ECoV methods) [ 5 – 10 ]; however, mathematical background and limitations of these methods are often missing, and there is no solution for correlated random variables, which is common for material characteristics. The only general approach to estimate statistical moments is pseudo-random sampling by a Monte Carlo type algorithm such as Crude Monte Carlo or Latin Hypercube Sampling [ 11 , 12 ] employed in numerical examples as a reference solution. However, it is necessary to perform a high number of simulations of the original mathematical model, which is not feasible in industrial applications due to the enormous computational burden. On the other hand, it is possible to assume several simplifications and create an approximation of the original mathematical model of R. The approximating function is called a surrogate model, or a metamodel, and it is a topic of great interest among researchers from various research fields. The Polynomial Chaos Expansion (PCE) is often used for uncertainty quantification [ 13 , 14 ]. The Gaussian process or Krigging has recently received significant attention in reliability analysis of systems with very low failure probabilities [ 15 ], and artificial neural networks are often utilized for reliability-based optimization [ 16 ]. Although PCE, Krigging, and ANN represent very powerful and efficient approaches with many advantages, these advanced techniques require deep knowledge of theoretical background, and it is necessary to use developed algorithms with great caution. Another well-known approximation of functions is Taylor series expansion (TSE), which was also used for derivation of PSF and FORM as described, for example, in [ 17 ]. Although TSE is often used to estimate statistical moments of functions of random variables by mathematicians, it has not yet been well investigated in the context of non-linear FEM in civil engineering in order to adapt and directly use TSE for structural reliability and semi-probabilistic approaches. For industrial applications, it is crucial that the proposed methods are easy to implement and easy to use with the same level of knowledge about the mathematical model as in the case of PSF. Therefore, it makes perfect sense to generalize TSE, which is already utilized for the derivation of PSF implemented in codes, to directly use in combination with FEM and semi-probabilistic ECoV approach. Therefore, the ECoV method based on TSE adapted for civil engineers is discussed, and several modifications of this approach are proposed in the next section. Moreover, the whole methodology of increasing complexity and accuracy of TSE suitable for industrial applications is proposed in this paper.
Symmetry 2020,12, 1379 3 of 14 2. Taylor Series Expansion An original mathematical model is often highly time-consuming, and it is necessary to create an approximation—a simplified function in explicit form. Although there are several advanced types of surrogate models, it is still common to use the traditional approach, called Taylor series expansion, which can be truncated to arbitrary order and used with various differencing schemes. Although such adaptivity makes TSE a powerful technique, there are severe problems for practical computations in the case of non-linear functions with complex stochastic models containing a dependence structure. In the following paragraphs, let us assume an original mathematical model in form of software algorithm (e.g., FEM); thus, the derivatives must be calculated numerically. Let ( Ω , F , P ) be a probability space, where Ω is an event space, F is Borel σ -algebra on Ω , and P is a probability measure P:F → [0, 1] . Let us assume a random vector X=(X1,X2, ...Xn)T consisting of random variables X(ω) , ω∈Ω with existing mean values µX1 , µX2 , ..., µXn and a mathematical model of this input random vector r(X) . The response of the mathematical model is thereafter a random variable R described by a specific probability distribution and statistical moments. Further, let us assume the mathematical model r(X) to be infinitely differentiable in some open interval around the vector of mean values µX=µX1 , µX2 , ..., µXn . Under this assumption, it is possible to expand the original model to the infinite Taylor series according to Taylor’s theorem: r(X) = r(µX) + ∇r(µX)·(X−µX) + 1 2(X−µX)·∇∇r(µX)·(X−µX) + ···= =rµX1,µX2, ..., µXn+ n ∑ i=1 ∂r(X) ∂XiXi−µXi+1 2 n ∑ i=1 n ∑ j=1 ∂2r(X) ∂XiXjXi−µXiXj−µXj+... (2) where the derivatives are evaluated at µX1 , µX2 , ..., µXn . Note that TSE consists of a constant term, linear term, quadratic term, etc. For a practical computation, it is crucial to reduce Taylor series to a finite number of terms and to obtain derivatives by numerical differentiation. There are many possible differencing schemes, which are more or less suitable for specific applications. One of the possible formulas for numerical derivation was proposed by Schlune et al. [ 9 ], especially for civil engineers, where derivatives are approximated by the asymmetric difference quotient as follows: ∂r(X) ∂Xi =RXm−RXi∆ ∆Xi . (3) where the response of mathematical model RXm is a calculation with mean values of X , and RXi∆ is the result of the model using reduced mean values of the i -th input random variables by ∆Xi . This differencing scheme is adapted for a structural design and an assessment by the step-size parameter c= (αRβ)/√2 , and Xi∆ corresponds to quantile F−1 i(Φ(−c)) , where F−1 i is an inverse cumulative distribution function of the i -th variable, and Φ is the cumulative distribution function of standardized Gaussian distribution. For the sake of clarity, the difference is calculated as ∆Xi=Xim −Xi∆ . Note that the step-size parameter is a function of the reliability index; thus, it is in compliance with the philosophy of a semi-probabilistic approach implemented in civil engineering codes [ 1 ]. Following this idea, additional asymmetric differencing schemes adapted for civil engineering used in combination with TSE of the first and the second order are proposed in the following subsections. 2.1. Linear Terms of Taylor Series Expansion In engineering applications, it is common to assume only linear terms of TSE and independent input random variables. Since a semi-probabilistic approach is focused on practical applications, the significant advantage of TSE reduced to linear terms is the possibility of analyzing expressions for an expected value and a variance, see e.g., [17].
Symmetry 2020,12, 1379 4 of 14 Theorem 1. If an original mathematical function r:Rn→R of n independent random variables described by mean value µXi and variance σ2 Xi is approximated by Taylor series expansion reduced to linear terms, the first two statistical moments of the response RTof linear Taylor approximation are analytically obtained as follows: ERT≈r(µX)(4) VarRT≈ n ∑ i=1∂r(X) ∂Xi2 σ2 Xi(5) Proof of Theorem 1. For the sake of clarity, the estimations of expected value ERT and variance VarRT for the function of nindependent random variables are as follows: ERT≈ErµX1,µX2, ..., µXn+ n ∑ i=1 E∂r(X) ∂XiXi−µXi≈rµX1,µX2, ..., µXn(6) and VarRT≈Var "rµX1,µX2, ..., µXn+ n ∑ i=1 ∂r(X) ∂XiXi−µXi#= n ∑ i=1 Var ∂r(X) ∂XiXi−µXi+ +∑ i,j=1,...,N i6=j Cov "∂r(X) ∂XiXi−µXi,∂r(X) ∂XjXj−µXj#= n ∑ i=1∂r(X) ∂Xi2 σ2 Xi(7) where the final equation arises from the definition of variance Var(X) = σ2 X=Eh(X−µ)2i and property of variance Var(cXi+dXj) = c2Var(Xi) + d2Var(Xj) + 2 cd Cov(Xi , Xj) . Moreover, for independent variables, the covariance between variables is equal to zero, and thus the formula is reduced. As can be seen from the proof above, there is a strict assumption of uncorrelated random variables for Equation (5). However, it is necessary to assume correlated random variables in some practical examples solved by FEM to represent realistic behaviors of structures. An extension of the method for dependent random variables can be obtained from the proof above using first-order Taylor series expansion assuming correlation among random variables represented by the correlation coefficient ρ in analytical form as VarRT≈ n ∑ i=1∂r(X) ∂Xi2 σ2 Xi+∑ i,j=1,...,n i6=j ρi,jσXiσXj ∂r(X) ∂Xi ∂r(X) ∂Xj . (8) However, higher terms of TSE or more accurate approximation of derivatives should be considered for the correct estimation of variance in the case of dependent input random variables and non-linear functions. Otherwise, the correlation term may lead to significant inaccuracy of the resulting variance. We propose the second-order backward asymmetric differencing according to Equation (9), which is adapted for structural design utilizing the parameter c= (αRβ)/√2 analogously to Equation (3) proposed by Schlune et al. The middle additional term RXi ∆ 2 is obtained by an evaluation of the original mathematical model with reduced i -th variable Xi∆ 2=Xim −∆Xi/ 2. Note that the proposed approach needs 2 n+ 1 evaluations of the original model, while the scheme proposed by Schlune needs n+ 1 simulations. In practice, an analyst could use the derivative scheme according to Schlune and further compute additional n simulations in order to obtain RXi ∆ 2 and more accurate results.
Symmetry 2020,12, 1379 5 of 14 ∂r(X) ∂Xi =3RXm−4RXi ∆ 2+RXi∆ ∆Xi . (9) 2.2. Higher-Order Taylor Series Expansion If higher terms of TSE are considered, it is inefficient to derive analytical formulas for statistical moments [ 18 ], and thus mean and variance should be calculated numerically by simulation techniques directly from Equation (2) truncated to quadratic terms. Moreover, additional higher-order derivatives must be evaluated, which might not be feasible in computationally demanding practical examples. Therefore, linear TSE is preferred for practical computations. However, for specific cases with significant interaction of input variables, one may use second-order TSE for the estimation of coefficient of variation. In this case, it is necessary to compute all second-order partial derivatives. For numerical calculations of ∂2r(X) ∂X2 i , it is possible to use the already defined simulations RXm , RXi∆ , RXi ∆ 2 in a standard asymmetric backward differencing scheme: ∂2r(X) ∂Xi∂Xi =RXm−2RXi ∆ 2+RXi∆ ∆2 Xi (10) The only additional computations of the original mathematical model needed are for mixed partial derivatives ∂2r(X) ∂Xi∂Xj . Note that it is necessary to perform additional (n 2) simulations in order to obtain all the mixed partial derivatives. In total, it is necessary to calculate 2 n+(n 2)+ 1 simulations for second-order TSE using the proposed asymmetric differencing schemes. Theorem 2. Mixed partial derivatives can be approximated by the simple backward finite differencing as ∂2r(X) ∂Xi∂Xj =RXm−RXi∆−RXj∆+RXi∆Xj∆ ∆Xi∆Xj , (11) where RXi∆Xj∆ represents the response of a mathematical model with reduced mean values of both i -th and j -th input random variables. All other variables were defined in the previous differencing schemes. Proof of Theorem 2. Using the simple one-sided backward differencing defined by Equation (3), one can derive mixed partial derivatives as follows: ∂2r ∂Xi∂Xj≈ ∂r(X) ∂XjµXi,µXj−∂r(X) ∂XjXi∆,µXj ∆Xi (12) where ∂r(X) ∂Xjis computed for specific coordinates µXi,µXjand Xi∆,µXjas ∂r(X) ∂XjµXi,µXj≈RXm−RXj∆ ∆Xj (13) and ∂r(X) ∂XjXi∆,µXj≈RXi∆−RXi∆Xj∆ ∆Xj (14) Therefore, the final derivative scheme for mixed second partial derivatives based on the simple backward differencing adapted for a semi-probabilistic approach is ∂2r(X) ∂Xi∂Xj =RXm−RXi∆−RXj∆+RXi∆Xj∆ ∆Xi∆Xj (15)
Symmetry 2020,12, 1379 6 of 14 3. Numerical Computation 3.1. Methodology of ECoV by TSE Since TSE can be constructed in various forms, it is beneficial to create ECoV methodology using TSE, composed of the three levels of an approximation using asymmetric differencing schemes already described in the previous section in combination with linear and quadratic TSE as follows: 1. linear TSE with a simple differencing scheme using Equation (3)—nsim =n+1, 2. linear TSE with an advanced differencing scheme using Equation (9)—nsim =2n+1, 3. TSE truncated to quadratic terms with a differencing scheme using Equation (9) for the first-order derivatives, Equation (10) for the second-order partial derivatives, and Equation (11) for the mixed derivatives—number of calculation is nsim =2n+(n 2)+1 in total. The first level was proposed by Schlune et al. [ 9 ] for uncorrelated random variables, and it was used in several practical studies [ 19 – 21 ]. However, its behavior for functions of correlated input random variables has not been investigated yet, though it is often necessary to assume correlated random material characteristics in industrial applications. It can be expected that the accuracy of the first level is not sufficient for dependent variables, which will be investigated in numerical examples. The second level with the advanced differencing scheme still uses only linear terms of the TSE, and thus it is possible to calculate variance by the simple Equation (8), which might be important for easy applications in industry. The accuracy of the second level is significantly improved by additional simulations; however, interaction terms are missing due to a linear truncation of TSE. The third level of approximation is especially suitable for mathematical models with strong interaction among random variables. However, it is also the most expensive approach, and statistical moments of the model response should be obtained numerically since an analytical calculation is inefficient. Therefore, it can be seen as a simple surrogate model that might be used in combination with Monte Carlo techniques. Note that the calculations of the original mathematical model from one level are also always used in the following level of approximation. It represents the significant characteristic of the proposed approach, which is beneficial for industrial applications, where it is crucial to decrease the number of calculations as much as possible due to computational demands. Therefore, an analyst can start with the first level of an approximation and eventually increase the number of simulations only if it is necessary. The asymmetric differencing schemes for each level of approximation are depicted in Figure 1together with iso-lines of bivariate standard Gaussian probability distribution in σ , 2 σ , and 3σdistance, represented by dotted circles. Advanced Linear TSE Quadratic TSE Simple Linear TSE 1. 2. 3. Figure 1. Proposed methodology composed of the three levels of Taylor series expansion (TSE) approximation using asymmetric differencing schemes adapted for civil engineering. Iso-lines of bivariate standard Gaussian probability distribution are represented by dotted circles.
Symmetry 2020,12, 1379 7 of 14 3.2. Reference Solution In industrial applications, only marginal distributions and a correlation matrix are usually known, which does not represent complete information about the joint probability distribution. Therefore, it is necessary to assume a specific copula [ 22 ]. A special case of Rosenblatt transformation assuming the Gaussian copula is also known as the Nataf transformation [ 23 ], which is usually utilized in reliability applications. The Nataf transformation is composed of three steps: ξ=TNata f (ξ) = T3◦T2◦T1(ξ)(16) The first step represents a transformation from uncorrelated standard Gaussian space ξ to correlated standard normal space Zusing linear transformation. T1:ξ7→ Z=Lξ(17) For this procedure, Cholesky decomposition of the fictive correlation matrix RZ must be performed: RZ=LLT(18) The following two steps are commonly known as an iso-probabilistic transformation by an inverse cumulative distribution function F−1 xand the standard Gaussian cumulative distribution function Φ: T2:Z7→ W=Φ(Z)(19) T3:W7→ X=F−1 x(W)(20) It is clear that the critical task of the Nataf transformation is to determine RZ . The relationship between the fictive correlation coefficients ρzij and ρij between i -th and j -th variable is defined by the following integral equation: ρij =1 σiσjZZR2F−1 i[Φ(zi)−µi]F−1 jΦzj−µj×φ2zi,zj,ρzijdzidzj, (21) where µ is the mean value, σ is the standard deviation, and φ2 is the bivariate standard normal probability density function parametrized by fictive correlation coefficients ρzij: φ2(zi,zj,ρzij) = 1 2πq1−ρ2 zij exp −z2 i−2ρzijzizj+z2 j 2(1−ρ2 zij)!. (22) Numerical examples are constructed in order to show the behavior of the presented differencing schemes and identify their limitations. For each example, the reference solution is obtained by numerical simulation with nsim = 10 5 realizations of a given random vector generated by Latin Hypercube Sampling (LHS) in uncorrelated space ξ and transformed into the correlated space X by the Nataf transformation. The reference solution by LHS is compared with the results obtained by TSE of increasing complexity using the proposed methodology. Since this paper is focused on the potential of the presented differencing schemes for industrial applications, the input variables are assumed to be lognormally distributed with coefficient of variation CoV = 0.1 – 0.2 , which is common for material characteristics. Specifically, all examples work with the following stochastic model of two input variables: vector of mean values µ=[40, 300] and the corresponding vector of coefficients of variation CoV =[0.1, 0.2] . Moreover, Pearson’s correlation coefficients (parameterizing Gaussian copula) are assumed to be positive in the range h 0, 0.9 i . The results of the numerical simulations are statistically processed in order to obtain the mean value, variance, and coefficient of variation of the model response.
Symmetry 2020,12, 1379 8 of 14 3.3. Example 1: Simple Linear Model The very first example represents the entire methodology. It is a simple linear model R=r(X) = X1+X2 . The selected realizations generated by Latin Hypercube Sampling, which illustrate the uniform cover of the design domain, together with iso-lines of joint probability density of random vector in uncorrelated and correlated space (Gaussian copula parametrized by the correlation coefficient ρ= 0.8) are depicted in Figure 2. A reference solution based on a sample with nsim = 10 5 is calculated for all examples. X2 [-] X1 [-] Figure 2. Realizations (red dots) generated by Latin Hypercube Sampling (LHS) and iso-lines of joint probability density of input random vector in uncorrelated (left) and correlated (right) space. In this case, all the presented differencing schemes led to the exact solution, as can be seen in Figure 3, since a linear approximation fits the original model. For the sake of clarity, the figures in this section show estimation of CoV (top) and variance (bottom) as well, since CoV takes the estimation of mean value into account. The graphs in the right column represent CoV or variance for correlated variables with subtracted uncorrelated values, which represent pure influence of correlation estimated by the presented methods. 0.0 0.2 0.4 0.6 0.8 0.1775 0.1800 0.1825 0.1850 0.1875 0.0 0.2 0.4 0.6 0.8 0.0000 0.0025 0.0050 0.0075 0.0100 0.0 0.2 0.4 0.6 0.8 3.6 3.7 3.8 3.9 4.0 1e3 0.0 0.2 0.4 0.6 0.8 0 1 2 3 4 1e2 Correlation coefficient [-] Variance Coefficient of Variation [-] LHS Simple Linear TSE Advanced Linear TSE Quadratic TSE [-] Figure 3. Estimation of coefficient of variance (CoV) ( top ) and variance ( bottom ) of the first example by the presented methods.
Symmetry 2020,12, 1379 9 of 14 3.4. Example 2: Linear Model with Interactions The second example is focused on the comparison of the first-order and the second-order Taylor series expansion. The first and the second level of approximation use the first-order Taylor expansion; thus, they are not recommended for mathematical models with significant interaction terms, since there are no mixed derivatives in the approximation, and the influence of the interaction is therefore underestimated. The quadratic TSE is the most computationally demanding and the only one reflecting the interaction terms. For the demonstration of this characteristic, the following adaptation of the previous simple mathematical model is assumed: R=r(X) = X1+X2+5(X1X2)(23) The obtained results are depicted in Figure 4in the same manner as in the previous example. The estimated mean value for the uncorrelated input random variable was accurate ( µR= 260). However, using only linear terms of Taylor expansion led to an identical mean value independent of the correlation among input variables. Therefore, the results of CoV are affected by this characteristic, and all methods seem comparable. The accuracy of the used approximations can be clearly seen on the estimation of variance, where the first two levels of an approximation led to identical results, with the error increasing together with the correlation between input random variables. Of course, the obtained results are exact only if the third-level approximation (quadratic Taylor expansion) is used for the estimation of variance, since Hessian of this function is not equal to the zero matrix 0 . As can be seen, neglecting an interaction among random variables by the first-order Taylor expansion may lead to a significant error in the estimation of statistical moments even for simple linear functions; thus, an analyst should carefully choose the level of approximation in industrial applications considering the nature of the studied physical system. 0.0 0.2 0.4 0.6 0.8 0.35 0.40 0.0 0.2 0.4 0.6 0.8 0.00 0.05 0.10 0.0 0.2 0.4 0.6 0.8 0.8 1.0 1.2 1.4 1e4 0.0 0.2 0.4 0.6 0.8 0 2 4 6 1e3 Correlation coefficient [-] Variance Coefficient of Variation [-] LHS Simple Linear TSE Advanced Linear TSE Quadratic TSE [-] Figure 4. Estimation of CoV ( top ) and variance ( bottom ) of the second example by the presented methods.