categoricalInformationValue
Introduced in: v20.1.0 Calculates the information value (IV) for categorical features in relation to a binary target variable. For each category, the function computes:(P(tag = 1) - P(tag = 0)) × (log(P(tag = 1)) - log(P(tag = 0)))
where:
- P(tag = 1) is the probability that the target equals 1 for the given category
- P(tag = 0) is the probability that the target equals 0 for the given category
[category1, category2, ...] contributes to a learning model which predicts the value of tag.
Syntax
category1, category2, ...— One or more categorical features to analyze. Each category should contain discrete values.UInt8tag— Binary target variable for prediction. Should contain values 0 and 1.UInt8
Array(Float64)
Examples
Basic usage analyzing age groups vs mobile usage
Query
Response
Query
Response