Truncation
In mathematics, truncation is the term add two string the number of digits right of the decimal point, by discarding the least significant ones.
For example, consider the real numbers
- 5.6341432543653654
- 32.438191288
mwww
To truncate these numbers to 4 decimal digits, we only consider the 4 digits to the right of the decimal point.
The result would be:
- 5.6341
- 32.4381
- 6.3444
Note that in some cases, truncating would yield the same result as rounding, but truncation does not round up or round down the digits; it merely cuts off at the specified digit. The truncation error can be twice the maximum error in rounding.
Also, in statistics, truncation can be thought of being similar to censoring. Usually the values that insurance adjusters receive are either left truncated, right censored or both. For example, if policyholders are subject to a policy limit, u, then and loss amounts that are actually above u are reported to the insurance company as being exactly u because u is the amount the insurance companies pay. The insurance company knows that the actual loss is greater than u but they don't know what is is. On the other hand, left truncation occurs when policyholders are subject to a deductible. If policyholders are subject to a deductible, d, any loss amount that is less than d will not even be reported to the insurance company. Any loss amount that is greater than d will be reported to the insurance company is loss - d because that is the amount the insurance company has to pay. Therefore insurance loss data is left truncated because the insurance company doesn't know if there are value below a specific amount. They don't know how many losses occur or how much each loss is.
Truncation and floor function
Truncation can be done using the floor function. Given a number to be truncated and , the number of elements to be kept behind the decimal point, the truncated value of x is
For negative numbers truncation does not round in the same direction as the floor function: truncation rounds toward zero, the floor function rounds down.
CAUTION: Actually truncation is not a proper term to use; one should call it chopping. Truncation is a term used when one is truncating a mathematical procedure, like when someone uses only the first few terms of an infinite series, or when one calculates an integral by approximating the area by finite trapezoids, or when the derivative of a function is found by using a finite deltax.
See also
- Precision (arithmetic)
- Floor function
- Asterisks (*), used on truncation