Example: Incremental Value Calculation
The Incremental Value Calculation configuration, based on a vector of dates with two patterns (factors) assigned, combines the two factors and computes a mutual pattern.
- It derives a new structure for the dates from the date of the pattern (start date in the example).
- It calculates a mutual pattern. Using the wording of the example, the mutual pattern is computed to retrieve the sum of the mutual pattern equal to the incurred pattern per incurred date. Moreover, the sum of the mutual pattern for a due date is equal to the sum of the due pattern for that due date (shown in the example).
Input Data
| Contract ID | Date | Incurred Pattern | Due Pattern |
|---|---|---|---|
| A | 2017-01-31 | 0.44 | 0.09 |
| A | 2017-02-28 | 0.36 | 0.37 |
| A | 2017-03-31 | 0.14 | 0.00 |
| A | 2017-04-30 | 0.06 | 0.29 |
| A | 2017-05-31 | 0.00 | 0.25 |
Flow Modeling Configuration
| Rule | Description | Rule Type | State | Rule Grouping Fields | Rule Ordering Fields | Selection |
|---|---|---|---|---|---|---|
| IVC | Incremental Value Calculation | Incremental Value Calculation | Active |
| *Granularity Fields | *Period | *First Value Field | *Second Value Field | *First Period Field | *Second Period Field | *Value |
|---|---|---|---|---|---|---|
| Contract ID | Start Date | Incurred Pattern | Due Pattern | Incurred Date | Due Date | Mutual Pattern |
Key Configuration Description
| Field | Meaning | Notes |
|---|---|---|
| Line | Identifier of the line | Must be unique. |
| Granularity Fields | Determines the size of one partition of data | Mandatory input that has to be inserted in the Granularity section of the Signature tab. |
| Period | Term structure of the pattern | Mandatory input |
| First Value Field | First pattern value | Mandatory input |
| Second Value Field | Second pattern value | Mandatory input |
| First Period Field | Main date of the new term structure | Mandatory output |
| Second Period Field | Secondary date of the new term structure | Mandatory output |
| Value | Resulting mutual pattern | Mandatory output |
Expected Output and Explanation
The following table shows the expected output:
| Contract ID | Incurred Date | Due Date | Mutual Pattern |
|---|---|---|---|
| A | 2017-01-31 | 2017-01-31 | 0.09 |
| A | 2017-01-31 | 2017-02-28 | 0.18 |
| A | 2017-01-31 | 2017-03-31 | 0.00 |
| A | 2017-01-31 | 2017-04-30 | 0.09 |
| A | 2017-01-31 | 2017-05-31 | 0.08 |
| A | 2017-02-28 | 2017-02-28 | 0.19 |
| A | 2017-02-28 | 2017-03-31 | 0.00 |
| A | 2017-02-28 | 2017-04-30 | 0.09 |
| A | 2017-02-28 | 2017-05-31 | 0.08 |
| A | 2017-03-31 | 2017-03-31 | 0.00 |
| A | 2017-03-31 | 2017-04-30 | 0.08 |
| A | 2017-03-31 | 2017-05-31 | 0.06 |
| A | 2017-04-30 | 2017-04-30 | 0.03 |
| A | 2017-04-30 | 2017-05-31 | 0.03 |
| A | 2017-05-31 | 2017-05-31 | 0.00 |
Interim results explained below will be calculated by the system in all datasets based on dates from 2017-01-31 until 2017-05-31.
The following table is the input table with 5 unique records.
| Contract ID | Date | Incurred Pattern | Due Pattern | |
|---|---|---|---|---|
| A | 2017-01-31 | 0.44 | 0.09 | Record 1 |
| A | 2017-02-28 | 0.36 | 0.37 | Record 2 |
| A | 2017-03-31 | 0.14 | 0.00 | Record 3 |
| A | 2017-04-30 | 0.06 | 0.29 | Record 4 |
| A | 2017-05-31 | 0.00 | 0.25 | Record 5 |
A) Explaining Output Field: First Period Field – in this example in the “Incurred Date” column
First Period Field starts with the date of the record from the input data. It produces 5 unique sets of data records.
| Contract ID | Incurred Date | |
|---|---|---|
| A | 2017-01-31 | Taken from date of record 1 |
| A | 2017-02-28 | Taken from date of record 2 |
| A | 2017-03-31 | Taken from date of record 3 |
| A | 2017-04-30 | Taken from date of record 4 |
| A | 2017-05-31 | Taken from date of record 5 |
B) Explaining Output Field: Second Period Field – in this example in the “Due Date” column
Second Period Field produces records based on dates taken from records 1 to 5, starting from the date registered in the First Period Field until the date of the last record. For example, for record 1, it starts with due date 2017-01-31 and continues until the date of record 5, which is 2017-05-31.
| Contract ID | Incurred Date | Due Date |
|---|---|---|
| A | 2017-01-31 | 2017-01-31 |
| 2017-02-28 | ||
| 2017-03-31 | ||
| 2017-04-30 | ||
| 2017-05-31 | ||
| A | 2017-02-28 | 2017-02-28 |
| 2017-03-31 | ||
| 2017-04-30 | ||
| 2017-05-31 | ||
| A | 2017-03-31 | 2017-03-31 |
| 2017-04-30 | ||
| 2017-05-31 | ||
| A | 2017-04-30 | 2017-04-30 |
| 2017-05-31 | ||
| A | 2017-05-31 | 2017-05-31 |
At this point the new term structure is created.
C) Explaining Output Field: Value – in this example “Mutual Pattern”
Based on the Primary Period Field (Incurred Date), the sum of the mutual pattern for that incurred date that is equal to the incurred pattern of that incurred date (it is indicated only for the first incurred date, but it is true also for the other dates).
The following table shows the pattern of the input data again:
| Contract ID | Start Date | Incurred Pattern | Due Pattern | Record |
|---|---|---|---|---|
| A | 2017-01-31 | 0.44 | 0.09 | Record 1 |
| A | 2017-02-28 | 0.36 | 0.37 | Record 2 |
| A | 2017-03-31 | 0.14 | 0.00 | Record 3 |
| A | 2017-04-30 | 0.06 | 0.29 | Record 4 |
| A | 2017-05-31 | 0.00 | 0.25 | Record 5 |
| Contract ID | Incurred Date | Due Date | Mutual Pattern |
|---|---|---|---|
| A | 2017-01-31 | 2017-01-31 | 0.09 |
| A | 2017-01-31 | 2017-02-28 | 0.18 |
| A | 2017-01-31 | 2017-03-31 | 0.00 |
| A | 2017-01-31 | 2017-04-30 | 0.09 |
| A | 2017-01-31 | 2017-05-31 | 0.08 |
| A | 2017-02-28 | 2017-02-28 | 0.19 |
| A | 2017-02-28 | 2017-03-31 | 0.00 |
| A | 2017-02-28 | 2017-04-30 | 0.09 |
| A | 2017-02-28 | 2017-05-31 | 0.08 |
| A | 2017-03-31 | 2017-03-31 | 0.00 |
| A | 2017-03-31 | 2017-04-30 | 0.08 |
| A | 2017-03-31 | 2017-05-31 | 0.06 |
| A | 2017-04-30 | 2017-04-30 | 0.03 |
| A | 2017-04-30 | 2017-05-31 | 0.03 |
| A | 2017-05-31 | 2017-05-31 | 0.00 |
The sum of the first five mutual patterns is 0.44. The same as the incurred pattern for the corresponding start date.
D) Explaining Output Field: Value – in this example “Mutual Pattern”
Based on the Secondary Period Field (Due Date), the sum of the mutual pattern for a due date is equal to the due pattern of that due date (it is indicated only for the second due date, but it is true also for the other dates).
| Contract ID | Start Date | Incurred Pattern | Due Pattern | |
|---|---|---|---|---|
| A | 2017-01-31 | 0.44 | 0.09 | Record 1 |
| A | 2017-02-28 | 0.36 | 0.37 | Record 2 |
| A | 2017-03-31 | 0.14 | 0.00 | Record 3 |
| A | 2017-04-30 | 0.06 | 0.29 | Record 4 |
| A | 2017-05-31 | 0.00 | 0.25 | Record 5 |
| Contract ID | Incurred Date | Due Date | Mutual Pattern |
|---|---|---|---|
| A | 2017-01-31 | 2017-01-31 | 0.09 |
| A | 2017-01-31 | 2017-02-28 | 0.18 |
| A | 2017-01-31 | 2017-03-31 | 0.00 |
| A | 2017-01-31 | 2017-04-30 | 0.09 |
| A | 2017-01-31 | 2017-05-31 | 0.08 |
| A | 2017-02-28 | 2017-02-28 | 0.19 |
| A | 2017-02-28 | 2017-03-31 | 0.00 |
| A | 2017-02-28 | 2017-04-30 | 0.09 |
| A | 2017-02-28 | 2017-05-31 | 0.08 |
| A | 2017-03-31 | 2017-03-31 | 0.00 |
| A | 2017-03-31 | 2017-04-30 | 0.08 |
| A | 2017-03-31 | 2017-05-31 | 0.06 |
| A | 2017-04-30 | 2017-04-30 | 0.03 |
| A | 2017-04-30 | 2017-05-31 | 0.03 |
| A | 2017-05-31 | 2017-05-31 | 0.00 |
In the same way as for the Second Value Field for record 2, the field Due Pattern is also 0.37.