Continuous variable

Continuous variables are numeric values that can take any point within a given range. They provide a precise way to measure quantitative attributes in a dataset.

Example

For illustration, a lender might group monthly income into bins such as below $2,000, $2,000 to $4,000, and above $4,000 when building a credit scorecard. Each bin contains a range of values from the continuous income variable.

Continuous variable, monthly income: 62 incomes from $1,010 to $7,800 on a scale from $0 to $8,000, with a bin edge at $2,000 and at $4,000. below $2,000: 13, $2,000 to $4,000: 34, above $4,000: 15, missing income: 6. Incomes of $2,001 and $3,999 receive the same points.
Individual monthly incomes on a continuous scale, grouped at $2,000 and $4,000, with missing income in its own bin.

Continuous, discrete and categorical variables in lending data

Monthly income and debt-to-income ratio are measured on a numeric scale, so a scorecard can use their values as ranges. The number of open accounts is a count, usually recorded as a whole number. Housing status is a category, such as owning or renting.

The distinction affects how a model or rule handles the input. For example, a decision rule can compare a debt-to-income ratio with a threshold set by credit policy. Counts and labels represent different kinds of information, so they are not interchangeable with measured amounts.

How income bins become scorecard points

For illustration, fine classing could split monthly income into 10 bins with about the same number of accounts in each. Coarse classing then merges neighbouring bins with similar bad rates, perhaps leaving 4 bins. Missing income gets its own bin.

Suppose one illustrative bin holds 20% of all goods and 10% of all bads. Its weight of evidence is ln(20% ÷ 10%), or about 0.69, a positive value because the bin contains a relatively larger share of goods. Scorecard developers often seek a steady WoE trend across income bins. If higher income is intended to earn more points, bins that break that direction may be merged.

Binning or keeping a continuous variable

Binning can let a logistic regression capture a relationship that is not a straight line. Extreme values can be capped or placed in an open-ended end bin, and each bin can receive points a reviewer can read. The trade-off is lost detail within a bin: in an illustration, incomes of $2,001 and $3,999 in the same bin receive the same points. A small change across a bin edge can also cause a jump in score.

A logistic regression can instead use the continuous input as it is, or after a transformation such as a logarithm, when the relationship is close to a straight line on that scale. Tree-based models choose split points as they learn, so they do not need advance binning.

Questions we get asked

What does information value tell you about a scorecard variable?

Information value measures how well the variable’s bins separate goods from bads. It sums the difference between each bin’s share of goods and share of bads, multiplied by that bin’s weight of evidence.

Can a continuous variable be used in a credit decision rule?

Yes. A rule can compare a value with a threshold set by credit policy, such as a debt-to-income ratio above 45%. That comparison is one part of the lender’s policy, not a decision about credit on its own.

Can a variable be both continuous and discrete?

It depends on how the value is measured and used. Money may be recorded to the cent, and a count with many possible values may be treated like a continuous variable in a model.

What is the difference between equal-width and equal-frequency binning?

Equal-width binning divides a continuous variable’s range into bins of the same width; equal-frequency binning sets cut points so each bin holds about the same number of values. With skewed income, equal-width bins can contain very different numbers of applicants.

Decisimo’s free weight of evidence and information value calculator calculates both per bin from goods and bads counts, or bins an uploaded file itself.