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
Which row wins

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 nameFromToStep
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
Overlapping rows2
Outcome depends on row15
Catch-allNone

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

KindFinding
No outcome144 combinations match no row; the first is credit_score 620, debt_to_income 35.
Overlapping rowsRows 1 and 4 can both match one application, for example credit_score 700, debt_to_income 20, and both say approve.
Overlapping rowsRows 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 wins15 combinations get a different outcome if the other matching row wins.
Missing fieldWhen credit_score is missing, the table gives decline (13).
Missing fieldWhen debt_to_income is missing, the table gives approve (16), decline (12), refer (8).

Outcomes

OutcomeCombinationsShare
decline15633.3%
approve12727.1%
refer418.8%
No outcome14430.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_scoredebt_to_incomeoutcomeDeciding rowWhy included
178015approve1Inside row 1
270015approve1On the edge of row 1 for credit_score
369015refer2Just past the edge of row 1 for credit_score
478035No outcome–On the edge of row 1 for debt_to_income
578030approve1Just inside the edge of row 1 for debt_to_income
666015refer2Inside row 2
762015refer2On the edge of row 2 for credit_score
861015decline3Just past the edge of row 2 for credit_score
966035No outcome–On the edge of row 2 for debt_to_income
1066030approve4Just inside the edge of row 2 for debt_to_income
1156030decline3Inside row 3
1262030refer2On the edge of row 3 for credit_score
1361030decline3Just inside the edge of row 3 for credit_score
14560100No outcome–On the edge of row 3 for debt_to_income
1556095decline3Just inside the edge of row 3 for debt_to_income
1669025approve4Inside row 4
1765025approve4On the edge of row 4 for credit_score
1864025refer2Just past the edge of row 4 for credit_score
1972025approve4On the edge of row 4 for credit_score
2073025approve1Just past the edge of row 4 for credit_score
2169020approve4On the edge of row 4 for debt_to_income
2269030approve4On the edge of row 4 for debt_to_income
2369035No outcome–Just past the edge of row 4 for debt_to_income
2462035No outcome–No row matches
2562040No outcome–No row matches
2662045No outcome–No row matches
27Missing15decline3credit_score not sent
28780Missingapprove1debt_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.