# Error analysis

Error analysis

Error analysis is the study of kind and quantity of error that occurs, particularly in the fields of applied mathematics (particularly numerical analysis), applied linguistics and statistics.

Error analysis in numerical modelling

In numerical simulation or modelling of real systems, error analysis is concerned with the changes in the output of the model as the parameters to the model vary about a mean.

For instance, in a system modelled as a function of two variables $z = f\left(x,y\right)$. Error analysis deals with the propagation of the numerical errors in $x$ and $y$ (around mean values and ) to error in $z$ (around a mean ). [cite book|title=Modeling Biological Systems: Principles and Applications|author=James W. Haefner|pages=186&ndash;189|date=1996|publisher=Springer|id=ISBN 0412042010]

In numerical analysis, error analysis comprises both forward error analysis and backward error analysis. Forward error analysis involves the analysis of a function $z\text{'} = f\text{'}\left(a_0,a_1,dots,a_n\right)$ which is an approximation (usually a finite polynomial) to a function $z = f\left(a_0,a_1,dots,a_n\right)$ to determine the bounds on the error in the approximation, i.e. to find $epsilon$ such that $0 le |z - z\text{'}| le epsilon$. Backward error analysis involves the analysis of the approximation function $z\text{'} = f\text{'}\left(a_0,a_1,dots,a_n\right)$, to determine the bounds on the parameters such that the result $z\text{'} = z$. [cite book|title=Schaum's Outline of Theory and Problems of Numerical Analysis|author=Francis J. Scheid|pages=11|date=1988|publisher=McGraw-Hill Professional|id=ISBN 0070552215]

Error analysis in language teaching

In language teaching, error analysis studies the types and causes of language errors. Errors are classified [Cf. Bussmann, Hadumod (1996), "Routledge Dictionary of Language and Linguistics", London: Routledge, s.v. error analysis. A comprehensive bibligraphy was published by Bernd Spillner (1991), "Error Analysis", Amsterdam/Philadelphia: Benjamins.] according to:
* modality (i.e. level of proficiency in speaking, writing, reading, listening)
* linguistic levels (i.e. pronunciation, grammar, vocabulary, style)
* form (e.g. omission, insertion, substitution)
* type (systematic errors/errors in competence vs. occasional errors/errors in performance)
* cause (e.g. interference, interlanguage)
* norm vs. system

Error analysis in molecular dynamics simulation

In molecular dynamics (MD) simulations, there are errors due to inadequate sampling of the phase space or infrequently occurring events, these lead to the statistical error due to random fluctuation in the measurements.

For a series of "M" measurements of a fluctuating property "A", the mean value is:

:$langle A angle = frac\left\{1\right\}\left\{M\right\} sum_\left\{mu=1\right\}^M A_\left\{mu\right\}.$

When these "M" measurements are independent, the variance of the mean <"A"> is:

:$sigma\left( langle A angle \right) = frac\left\{1\right\}\left\{M\right\} sigma^\left\{2\right\}\left( langle A angle \right),$

but in most MD simulations, there is correlation between quantity "A" at different time, so the variance of the mean <"A"> will be underestimated as the effective number of independent measurements is actually less than "M". In such situations we rewrite the variance as :

:$sigma^\left\{2\right\}\left( langle A angle \right) = frac\left\{1\right\}\left\{M\right\} sigma^\left\{2\right\}\left(A\right) left \left[ 1 + 2 sum_mu left\left( 1 - frac\left\{mu\right\}\left\{M\right\} ight\right) phi_\left\{mu\right\} ight\right] ,$

where $phi_\left\{mu\right\}$ is the autocorrelation function defined by

:$phi_\left\{mu\right\} = frac\left\{ langle A_\left\{mu\right\}A_\left\{0\right\} angle - langle A angle^\left\{2\right\} \right\}\left\{ langle A^\left\{2\right\} angle - langle A angle^\left\{2.$

We can then use the autocorrelation function to estimate the error bar. Luckily, we have a much simpler method based on block averaging. [D. C. Rapaport, "The Art of Molecular Dynamics Simulation", Cambridge University Press.]

Error Analysis in Undergraduate Science Laboratory

References

* Errors and residuals in statistics
* For Error Analysis in Applied Linguistics see Contrastive analysis