Statistical IV
Our J-Divergence test is under the next null hypothesis
H0: The predictive power of the variable is not significant.
The null hypothesis is tested using a two-tailed distribution, and this should be taken into consideration when interpreting the p-value.
Explanation
Optimize your machine learning models with 'Statistical-IV'. Perform automated feature selection based on statistics and customize error control.
-
Import package
from statistical_iv import api
-
Provide a DataFrame as Input:
- Supply a DataFrame
dfcontaining 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_varsparameter.
- 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_binsparameter.
- Adjust the maximum number of bins for discretization (optional) using the
-
Call the
statistical_ivFunction:- Calculate Statistical IV information by calling the
statistical_ivfunction 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:
Full Paper:
For a comprehensive exploration of the topic, we recommend perusing the contents of the article available at this link.
Metadata
Release files for statistical-iv 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statistical_iv-0.3.2.tar.gz | 5.5 kB | Without provenance | Details for statistical_iv-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statistical_iv-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for statistical_iv-0.3.2-py3-none-any.whl |
Total release size: 11.2 kB
Release files / statistical_iv-0.3.2.tar.gz
| Download URL | statistical_iv-0.3.2.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3dea33014c282356f6e4837645226aa59a2984a2644916eb0db9a83b3b2f195
|
|
BLAKE2b-256 checksum How to use checksums |
da45aaaeb4769f37ea854ecb6caeb93331af5b7922bef3e33237c9ff7b2b456a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / statistical_iv-0.3.2-py3-none-any.whl
| Download URL | statistical_iv-0.3.2-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2204b6ea563d594d290303067df94b3a7bf8af3e1187438e80740eac3c7039c9
|
|
BLAKE2b-256 checksum How to use checksums |
16976d41bbef3442a44c87b92376a9588399f400fd9405425d9d73ebae1d2586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Security for statistical-iv 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.