Browse Definitions :
Definition

truncation error

What is a truncation error?

A truncation error is the difference between an actual and a truncated, or cut-off, value. A truncated quantity is represented by a numeral with a fixed number of allowed digits, with any excess digits chopped off -- hence, the expression truncated.

Truncation error explained with Taylor series

In mathematical and computing applications, the true or analytical derivative or value of a function may be different from the value obtained by numerical approximation. The truncation error is the difference between these two values. It refers to the discrepancy that arises from executing a finite number of steps to approximate an infinite process -- a process known as discretization -- usually for ease of calculation.

Consider an infinite exponential function, ex. It may be expressed as the sum of the infinite Taylor series polynomial:

ex = 1 + (x / 1!) + (x2 / 2!) + (x3 / 3!) + ⋯ + (xn / n!) + ⋯ ∞

ex = 1 + x + (x2 / 2) + (x3 / 6) + ⋯ + (xn / n!) + ⋯ ∞

Thus, ex has an infinitely long series that can be expressed in a truncated (approximated) format:

ex = p2x +∑(xn / n!)

n = 3

Here, p2x = 1 + (x / 1!) + (x2 / 2!)

In this case, the infinite Taylor series ex is approximated by a quadratic polynomial where n = 3. This approximation gives an approximate or inaccurate answer, resulting in a truncation error.

The Taylor series is useful to represent a continuously differentiable function as a polynomial function of infinite order. Adding each of these values generates the exact answer. However, if the calculation is stopped after any finite value of n, the final value will only be an approximation of the value of ex. The difference between the exact answer and the approximate answer is the truncation error.

Reducing a truncation error

A truncation error is always present as long as a finite number of steps is used to approximate an infinite mathematical calculation process. However, it is possible to make this error as small as possible by making n as large as possible, that is, by doing repeated iterations and including as many numbers of terms in the approximation as possible. However, this may result in additional time or cost, so many numerical applications accept approximations of the exact analytical answer and the resultant truncation error.

Truncation error examples

Example 1

Consider the infinite series 1/2 + 1/4 + 1/8 + 1/16 + 1/32 and so on adds up to exactly 1. But this final value is only derived when all the values in the series are added together. If this infinite series is truncated to a finite series containing only the first four terms, the series now becomes 1/2 + 1/4 + 1/8 + 1/16. Adding these four terms does not produce 1. Rather, the value will be 15/16, or 0.94. In this case, the truncation error = 1 - 15/16 = 1/16 = 0.06.

Example 2

Consider the speed of light in a vacuum. The official value is 299,792,458 meters per second (m/s). In scientific (power-of-10) notation, it is expressed as 2.99792458 x 108 m/s. But truncating it to only two decimal places yields 2.99 x 108 m/s.

Since the truncation error is the difference between the actual value and the truncated value, in this case, it comes to the following:

2.99792458 x 108 - 2.99 x 108 = 0.00792458 x 108 m/s

Truncation error in practice

Truncation errors commonly appear in these practical applications:

  • discretizing equations
  • finite-difference approximations

1. Discretizing equations

Discretization is the conversion of a continuous function (differentiation) to a discrete approximation for numerical evaluation.

A derivative is expressed as the following:

f'(xi) = lim (f(xi+1) - f(xi)) / h

h → 0

This equation can be approximated by removing the limit and expressing it as the following:

f'(xi) ~ (f(xi+1) - f(xi)) / h

This is a type of forward difference approximation where the derivative at xi is approximated by using the value at xi and forwarding one step at xi+1. The Taylor series approximation is a type of discretized equation.

2. Finite-difference approximations

Three types of finite-difference approximations are possible: forward difference, backward difference and central difference.

In forward difference, the argument x is increased by a small amount, and each of a set of finite differences is calculated by subtracting the present value of a function f(x) from a new value. Thus, the value of the function f(x) at xi and forward one step at f(xi+1) is used to approximate the derivative at xi.

Forward difference is expressed as ∆i = f(x + i) - f(xi).

In backward difference, the argument x is changed by a small negative amount, and each of a set of finite differences is calculated by subtracting a previous value of the function f(x) from the present value. Thus, it uses the value of the function f(x) at xi and backward one step at f(xi-1) to approximate the value of the derivative at xi.

Backward difference is expressed as ∇i = f(i) - f(x - i).

Central difference uses the value of f(x) one step backward at f(xi-1) and one step forward f(xi+1) to approximate the derivative at xi. The finite difference is calculated by subtracting the value of a function when x is decreased by a given amount from its value and also increased by the same amount.

Central difference is expressed as δ = f(x + ½h) - f(x - ½h).

Although the central difference method also creates a truncation error, the magnitude of this error is smaller than the forward or backward difference methods. That's why central difference is a more accurate approximation method than forward or backward difference.

Truncation error and rounding error

In mathematics and computing, a truncation error is not the only source of error. When numerically solving initial-value problems using difference formats, a rounding error can also occur. This refers to the difference between a rounded-off numerical value and its actual value.

If a numerical problem consists of multiple steps and values are rounded off at each step, the rounding error in each may be small. However, as the number of steps increases, the sum of the rounding error accumulates with each step, and the final error may be quite large, resulting in unstable numerical results.

Truncation errors and rounding errors may be the same, or they may be two different types of errors in numerical and computing calculations. The sum of the truncation error and roundoff error is known as the total numerical error. Reducing the step size can reduce the truncation error and thus the total error. However, doing so can also increase the rounding error. That's why it's best to reduce the step size just enough so that the truncation error is reduced to an acceptable level without increasing the rounding error by a large amount.

See also: mathematical symbols.

This was last updated in August 2022

Continue Reading About truncation error

Networking
  • local area network (LAN)

    A local area network (LAN) is a group of computers and peripheral devices that are connected together within a distinct ...

  • TCP/IP

    TCP/IP stands for Transmission Control Protocol/Internet Protocol and is a suite of communication protocols used to interconnect ...

  • firewall as a service (FWaaS)

    Firewall as a service (FWaaS), also known as a cloud firewall, is a service that provides cloud-based network traffic analysis ...

Security
  • identity management (ID management)

    Identity management (ID management) is the organizational process for ensuring individuals have the appropriate access to ...

  • single sign-on (SSO)

    Single sign-on (SSO) is a session and user authentication service that permits a user to use one set of login credentials -- for ...

  • fraud detection

    Fraud detection is a set of activities undertaken to prevent money or property from being obtained through false pretenses.

CIO
  • IT budget

    IT budget is the amount of money spent on an organization's information technology systems and services. It includes compensation...

  • project scope

    Project scope is the part of project planning that involves determining and documenting a list of specific project goals, ...

  • core competencies

    For any organization, its core competencies refer to the capabilities, knowledge, skills and resources that constitute its '...

HRSoftware
  • recruitment management system (RMS)

    A recruitment management system (RMS) is a set of tools designed to manage the employee recruiting and hiring process. It might ...

  • core HR (core human resources)

    Core HR (core human resources) is an umbrella term that refers to the basic tasks and functions of an HR department as it manages...

  • HR service delivery

    HR service delivery is a term used to explain how an organization's human resources department offers services to and interacts ...

Customer Experience
  • martech (marketing technology)

    Martech (marketing technology) refers to the integration of software tools, platforms, and applications designed to streamline ...

  • transactional marketing

    Transactional marketing is a business strategy that focuses on single, point-of-sale transactions.

  • customer profiling

    Customer profiling is the detailed and systematic process of constructing a clear portrait of a company's ideal customer by ...

Close