ArticleslgStudy

computer science

First-order second-moment method

First-order second-moment method is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand First-order second-moment method rather than just read about it. In short: In probability theory, the first-order second-moment (FOSM) method, also referenced as mean value first-order second-moment (MVFOSM) method, is a probabilistic method to determine the stochastic moments of a function with random input variables. The name is based on the derivation, which uses a first-order Taylor series and the first and second moments of the input variables.

Key takeaways

  • First-order second-moment method belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect First-order second-moment method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of First-order second-moment method from memory before moving on to harder problems.

Reference excerpt

In probability theory, the first-order second-moment (FOSM) method, also referenced as mean value first-order second-moment (MVFOSM) method, is a probabilistic method to determine the stochastic moments of a function with random input variables. The name is based on the derivation, which uses a first-order Taylor series and the first and second moments of the input variables.

Approximation Consider the objective function g(x), where the input vector x is a realization of the random vector X with probability density function fX(x). Because X is randomly distributed, g is also randomly distributed. Following the FOSM method, the mean value of g is approximated by

μg≈g(μ) The variance of g is approximated by

σg2≈∑i=1n∑j=1n∂g(μ)∂xi∂g(μ)∂xjcov⁡(Xi,Xj) where n is the length/dimension of x and ∂g(μ)∂xi is the partial derivative of g at the mean vector μ with respect to the i-th entry of x. More accurate, second-order second-moment approximations are also available

Derivation The objective function is approximated by a Taylor series at the mean vector μ.

g(x)=g(μ)+∑i=1n∂g(μ)∂xi(xi−μi)+12∑i=1n∑j=1n∂2g(μ)∂xi∂xj(xi−μi)(xj−μj)+⋯ The mean value of g is given by the integral

μg=E[g(x)]=∫−∞∞g(x)fX(x)dx Inserting the first-order Taylor series yields

μg≈∫−∞∞[g(μ)+∑i=1n∂g(μ)∂xi(xi−μi)]fX(x)dx=∫−∞∞g(μ)fX(x)dx+∫−∞∞∑i=1n∂g(μ)∂xi(xi−μi)fX(x)dx=g(μ)∫−∞∞fX(x)dx⏟1+∑i=1n∂g(μ)∂xi∫−∞∞(xi−μi)fX(x)dx⏟0=g(μ). The variance of g is given by the integral

σg2=E([g(x)−μg]2)=∫−∞∞[g(x)−μg]2fX(x)dx. According to the computational formula for the variance, this can be written as

σg2=E([g(x)−μg]2)=E(g(x)2)−μg2=∫−∞∞g(x)2fX(x)dx−μg2 Inserting the Taylor series yields

σg2≈∫−∞∞[g(μ)+∑i=1n∂g(μ)∂xi(xi−μi)]2fX(x)dx−μg2=∫−∞∞{g(μ)2+2gμ∑i=1n∂g(μ)∂xi(xi−μi)+[∑i=1n∂g(μ)∂xi(xi−μi)]2}fX(x)dx−μg2=∫−∞∞g(μ)2fX(x)dx+∫−∞∞2gμ∑i=1n∂g(μ)∂xi(xi−μi)fX(x)dx+∫−∞∞[∑i=1n∂g(μ)∂xi(xi−μi)]2fX(x)dx−μg2=gμ2∫−∞∞fX(x)dx⏟1+2gμ∑i=1n∂g(μ)∂xi∫−∞∞(xi−μi)fX(x)dx⏟0+∫−∞∞[∑i=1n∑j=1n∂g(μ)∂xi∂g(μ)∂xj(xi−μi)(xj−μj)]fX(x)dx−μg2=g(μ)2⏟μg2+∑i=1n∑j=1n∂g(μ)∂xi∂g(μ)∂xj∫−∞∞(xi−μi)(xj−μj)fX(x)dx⏟cov⁡(Xi,Xj)−μg2=∑i=1n∑j=1n∂g(μ)∂xi∂g(μ)∂xjcov⁡(Xi,Xj).

Higher-order approaches The following abbreviations are introduced.

gμ=g(μ),g,i=∂g(μ)∂xi,g,ij=∂2g(μ)∂xi∂xj,μi,j=E[(xi−μi)j] In the following, the entries of the random vector X are assumed to be independent. Considering also the second-order terms of the Taylor expansion, the approximation of the mean value is given by

μg≈gμ+12∑i=1ng,iiμi,2 The incomplete second-order approximation (ISOA) of the variance is given by

σg2≈gμ2+∑i=1ng,i2μi,2+14∑i=1ng,ii2μi,4+gμ∑i=1ng,iiμi,2+∑i=1ng,ig,iiμi,3+12∑i=1n∑j=i+1ng,iig,jjμi,2μj,2+∑i=1n∑j=i+1ng,ij2μi,2μj,2−μg2 The skewness of g can be determined from the third central moment μg,3. When considering only linear terms of the Taylor series, but higher-order moments, the third central moment is approximated by

μg,3≈∑i=1ng,i3μi,3 For the second-order approximations of the third central moment as well as for the derivation of all higher-order approximations see Appendix D of Ref. Taking into account the quadratic terms of the Taylor series and the third moments of the input variables is referred to as second-order third-moment method. However, the full second-order approach of the variance (given above) also includes fourth-order moments of input parameters, the full second-order approach of the skewness 6th-order moments, and the full second-order approach of the kurtosis up to 8th-order moments.

Practical application There are several examples in the literature where the FOSM method is employed to estimate the stochastic distribution of the buckling load of axially compressed structures (see e.g. Ref.). For structures which are very sensitive to deviations from the ideal structure (like cylindrical shells) it has been proposed to use the FOSM method as a design approach. Often the applicability is checked by comparison with a Monte Carlo simulation. Two comprehensive application examples of the full second-order method specifically oriented towards the fatigue crack growth in a metal railway axle are discussed and checked by comparison with a Monte Carlo simulation in Ref. In engineering practice, the objective function often is not given as analytic expression, but for instance as a result of a finite-element simulation. Then the derivatives of the objective function need to be estimated by the central differences method. The number of evaluations of the objective function equals 2n+1. Depending on the number of random variables this still can mean a significantly smaller number of evaluations than performing a Monte Carlo simulation. However, when using the FOSM method as a design procedure, a lower bound shall be estimated, which is actually not given by the FOSM approach. Therefore, a type of distribution needs to be assumed for the distribution of the objective function, taking into account the approximated mean value and standard deviation.

References

Worked examples

Example 1 — a first encounter with First-order second-moment method

Start with the simplest possible case. Write down what First-order second-moment method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to First-order second-moment method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about First-order second-moment method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of First-order second-moment method

In research
First-order second-moment method appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses First-order second-moment method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
First-order second-moment method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Probabilistic models, Randomized algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for First-order second-moment method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “First-order second-moment method” →

How to study First-order second-moment method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what First-order second-moment method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain First-order second-moment method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is First-order second-moment method in simple terms?

In probability theory, the first-order second-moment (FOSM) method, also referenced as mean value first-order second-moment (MVFOSM) method, is a probabilistic method to determine the stochastic moments of a function with random input variables. The name is based on the derivation, which uses a fir…

Why does First-order second-moment method matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study First-order second-moment method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on First-order second-moment method.

Tags

  • Probabilistic models
  • Randomized algorithms

Keep exploring