Statistical IV: J-Divergence Hypothesis Test for the Information Value (IV)
Project description
Statistical IV
Statistical_IV: J-Divergence Hypothesis Test for the Information Value (IV). Calculation of the Information Value with specific limits to the predictive power.
-
Import package
from statistical_iv import api
-
Provide a DataFrame as Input:
- Supply a DataFrame
df
containing your data for IV calculation.
- Supply a DataFrame
-
Specify Predictor Variables:
- Prived a list of predictor variable names (
variables_names
) to analyze.
- Prived a list of predictor variable names (
-
Define the Target Variable:
- Specify the name of the target variable (
var_y
) in your DataFrame.
- Specify the name of the target variable (
-
Indicate Variable Types:
- Define the type of your predictor variables as 'categorical' or 'numerical' using the
type_vars
parameter.
- Define the type of your predictor variables as 'categorical' or 'numerical' using the
-
Optional: Set Maximum Bins:
- Adjust the maximum number of bins for discretization (optional) using the
max_bins
parameter.
- Adjust the maximum number of bins for discretization (optional) using the
-
Call the
statistical_iv
Function:- Calculate Statistical IV information by calling the
statistical_iv
function from api with the specified parameters (That is used for OptimalBinning package).
result_df = api.statistical_iv(df, variables_names, var_y, type_vars, max_bins)
- Calculate Statistical IV information by calling the
Example Result:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
statistical_iv-0.2.9.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for statistical_iv-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7601ed9017b659e1b9d03dc625a1e09396b7b0c413e6d804875443e9b4681e6 |
|
MD5 | 8627aac506875a04bbae5d4c9a3f45d5 |
|
BLAKE2b-256 | 8b0c8510d6b34137e981e9249333445b90aa1d4c3b31eabd244dcf52b45580fe |