Build and check a credit decision table before release
Type or paste a decision table, then see where it gives no outcome and which rows overlap in a minute. The page runs every combination of your test values, and lets you run a file of applications through the table and download it in the form Decisimo imports.
Your decision table
| # | ||||
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
Write a condition as >=700 or <35, a range as [620,700) where a square bracket includes the end and a round one leaves it out, != for not equal, ANY or an empty cell for any value, missing for a field the application did not send, or not missing for one it did. Name each column for the field it reads or writes, such as credit_score or applicant.score.
In a text column, broker matches that word, *mail* contains it, !*test* does not, ^GB starts with it, .com$ ends with it, and ~=Online matches it in any case. A result cell is the value the row writes, $.limit copies that field of the application, and an empty result cell writes nothing.
A demo referral table with four rows for credit score and debt-to-income.
Paste from spreadsheet or Decisimo
Values to test
| Column name | From | To | Step |
|---|---|---|---|
| credit_scoreNumber | |||
| debt_to_incomeNumber |
Every combination of these values runs through the table. The values the rows name are added, and a text column is also tried with any other value.
No outcome
144 of the 468 combinations tested, 30.8%, get no outcome from this table.
Outcome map
Darker cells are decline, approve, refer in that order, red cells get no outcome, orange cells are mixed.
Findings
| Kind | Finding |
|---|---|
| No outcome | 144 combinations match no row; the first is credit_score 620, debt_to_income 35. |
| Overlapping rows | Rows 1 and 4 can both match one application, for example credit_score 700, debt_to_income 20, and both say approve. |
| Overlapping rows | Rows 2 and 4 can both match one application, for example credit_score 699, debt_to_income 20; row 2 says refer, row 4 says approve, and with the current setting it gets approve. |
| Which row wins | 15 combinations get a different outcome if the other matching row wins. |
| Missing field | When credit_score is missing, the table gives decline (13). |
| Missing field | When debt_to_income is missing, the table gives approve (16), decline (12), refer (8). |
Outcomes
| Outcome | Combinations | Share |
|---|---|---|
| decline | 156 | 33.3% |
| approve | 127 | 27.1% |
| refer | 41 | 8.8% |
| No outcome | 144 | 30.8% |
These are counts over the test values, with each combination counted once. They are not counts over real applications, which do not spread evenly.
Test cases
| # | credit_score | debt_to_income | outcome | Deciding row | Why included |
|---|---|---|---|---|---|
| 1 | 780 | 15 | approve | 1 | Inside row 1 |
| 2 | 700 | 15 | approve | 1 | On the edge of row 1 for credit_score |
| 3 | 690 | 15 | refer | 2 | Just past the edge of row 1 for credit_score |
| 4 | 780 | 35 | No outcome | – | On the edge of row 1 for debt_to_income |
| 5 | 780 | 30 | approve | 1 | Just inside the edge of row 1 for debt_to_income |
| 6 | 660 | 15 | refer | 2 | Inside row 2 |
| 7 | 620 | 15 | refer | 2 | On the edge of row 2 for credit_score |
| 8 | 610 | 15 | decline | 3 | Just past the edge of row 2 for credit_score |
| 9 | 660 | 35 | No outcome | – | On the edge of row 2 for debt_to_income |
| 10 | 660 | 30 | approve | 4 | Just inside the edge of row 2 for debt_to_income |
| 11 | 560 | 30 | decline | 3 | Inside row 3 |
| 12 | 620 | 30 | refer | 2 | On the edge of row 3 for credit_score |
| 13 | 610 | 30 | decline | 3 | Just inside the edge of row 3 for credit_score |
| 14 | 560 | 100 | No outcome | – | On the edge of row 3 for debt_to_income |
| 15 | 560 | 95 | decline | 3 | Just inside the edge of row 3 for debt_to_income |
| 16 | 690 | 25 | approve | 4 | Inside row 4 |
| 17 | 650 | 25 | approve | 4 | On the edge of row 4 for credit_score |
| 18 | 640 | 25 | refer | 2 | Just past the edge of row 4 for credit_score |
| 19 | 720 | 25 | approve | 4 | On the edge of row 4 for credit_score |
| 20 | 730 | 25 | approve | 1 | Just past the edge of row 4 for credit_score |
| 21 | 690 | 20 | approve | 4 | On the edge of row 4 for debt_to_income |
| 22 | 690 | 30 | approve | 4 | On the edge of row 4 for debt_to_income |
| 23 | 690 | 35 | No outcome | – | Just past the edge of row 4 for debt_to_income |
| 24 | 620 | 35 | No outcome | – | No row matches |
| 25 | 620 | 40 | No outcome | – | No row matches |
| 26 | 620 | 45 | No outcome | – | No row matches |
| 27 | Missing | 15 | decline | 3 | credit_score not sent |
| 28 | 780 | Missing | approve | 1 | debt_to_income not sent |
Test applications from a file
Use a CSV with one column per condition column, named after the table column. A column named for a result, or expected_ followed by its name, gives the result each application should get and is checked.
The file is read in your browser and never uploaded.
Take your table to Decisimo
Download the table in the form Decisimo reads. It keeps the matching rule and every row as shown here, so the table you checked is the table that runs.
Conditions read $.credit_score, $.debt_to_income, and results write $.outcome.
The JSON includes the columns, rows and matching rule in the form Decisimo's tools take. The CSV fills the rows of a decision table in Decisimo through its Import, with the same column names.
Preview JSON
{
"name": "decision-table",
"title": "Decision table",
"columns": [
{
"attribute_path": "$.credit_score"
},
{
"attribute_path": "$.debt_to_income"
},
{
"attribute_path": "$.outcome",
"role": "result"
}
],
"rows": [
[
{
"operator": "greater_than_or_equal_to",
"value_a": "700"
},
{
"operator": "less_than",
"value_a": "35"
},
"approve"
],
[
{
"operator": "left_closed_right_open",
"value_a": "620",
"value_b": "700"
},
{
"operator": "less_than",
"value_a": "35"
},
"refer"
],
[
{
"operator": "less_than",
"value_a": "620"
},
{
"operator": "less_than",
"value_a": "100"
},
"decline"
],
[
{
"operator": "closed_interval",
"value_a": "650",
"value_b": "720"
},
{
"operator": "closed_interval",
"value_a": "20",
"value_b": "30"
},
"approve"
]
]
}
Get the result by email
Import this table into Decisimo to run it on every application, with an overlap check and a simulation before each release. Start your trial
How checks work
Every combination of the test values runs through the rows from top to bottom. A combination that no row matches has no outcome. Two rows overlap when their conditions can both hold for one value in every column, based on the cells rather than the test values. A combination depends on the setting when the first and last matching rows give different outcomes. A catch-all row has any value in every column. It belongs first when the last matching row wins and last when the first matching row wins. A missing field counts as less than every number in a comparison and as zero in a range. It matches any value and a condition for a missing field. When the last matching row wins, every matching row writes its results in order, so each result holds the last value written to it. When the first row wins, only that row writes. Text matches respect case, and two numbers written as text count as equal numbers unless one starts with a zero. The JSON and CSV carry cells in Decisimo’s notation, and a table pasted back into the page is read the same way.
These checks cover the values tested here. A table with no gaps on those values can still have a gap between two tested values.
The demo is a made-up referral table, not a lender’s policy. Before every release of this page, the export is run through Decisimo’s own decision table code on thousands of applications in a test and must give the same results.
Decision table testing
A decision table connects conditions in its columns to outcomes in its result columns. Run the values you choose through the rows to see where no row matches. The tool also shows which rows overlap and what the table returns when a field is missing.
The findings show how row order and the catch-all row affect outcomes. Review them and the test cases before release.
About the checks
What is a decision table?
A decision table connects conditions to an outcome. Each row sets out the conditions that lead to the value in its result column.
How do I make a decision table online?
Add condition columns and a result column, then enter conditions and outcomes in rows. You can also paste a table from a spreadsheet.
How do I write test cases from a decision table?
The tool creates test cases inside rows and around the edges of number conditions. It also includes cases for combinations with no outcome and missing fields, and shows the outcome each case returns.
How do I test a decision table on applications?
Select a CSV file of applications, and the tool reads it in your browser. It shows each application’s outcome and deciding row, along with every row that matched.
What happens when two decision table rows match?
Choose whether the first or last matching row wins. The tool shows combinations where changing that setting changes the outcome.