Skip to content

greydoubt/nonparametic_statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nonparametic_statistics

Nonparametric Statistics Algorithms Examples

This repository provides code examples of various machine learning algorithms implemented in Python and R. The examples cover a range of tasks such as classification, regression, hypothesis testing, and more. Whether you are an R or Python programmer, this collection offers practical implementations for both languages.

One thrilling example is the Shapley Metric!

Screenshot 2024-09-22 at 16 13 02

Nonparametric statistics is a branch of statistics that does not make strong assumptions about the underlying probability distribution or parameters of the population from which the data is sampled. It is often used when the data does not meet the assumptions of parametric statistics or when the research question does not require specific distributional assumptions. Here are some examples of nonparametric statistical tests and techniques:

Algorithms

The repository includes examples for the following algorithms:

  1. Mann-Whitney U test:

    • Python: mann_whitney_u_test.py
    • R: mann_whitney_u_test.R
  2. Kruskal-Wallis test:

    • Python: kruskal_wallis_test.py
    • R: kruskal_wallis_test.R
  3. Spearman's rank correlation:

    • Python: spearman_rank_correlation.py
    • R: spearman_rank_correlation.R
  4. Kendall's rank correlation:

    • Python: kendall_rank_correlation.py
    • R: kendall_rank_correlation.R
  5. Wilcoxon signed-rank test:

    • Python: wilcoxon_signed_rank_test.py
    • R: wilcoxon_signed_rank_test.R
  6. Friedman test:

    • Python: friedman_test.py
    • R: friedman_test.R
  7. Chi-squared test:

    • Python: chi_squared_test.py
    • R: chi_squared_test.R
  8. Bootstrapping:

    • Python: bootstrapping.py
    • R: bootstrapping.R

9a. XGBoost (Classification):

  • Python: xgboost_classification.py
  • R: xgboost_classification.R

9b. XGBoost with Shapley (Classification):

  • Python: xgboost_shapley.py
  • R: xgboost_shapley.R (PENDING)

The code examples provide a practical implementation of each algorithm using sample datasets or simulated data. You can explore each file for detailed code and instructions on running the algorithms.

Usage

  1. Clone the repository to your local machine:
git clone https://github.com/greydoubt/nonparametic_statistics.git
  1. Navigate to the desired algorithm folder (e.g., kruskal_wallis_test.py for the Kruskal-Wallis test in Python or kruskal_wallis_test.R for R).

  2. Open and run the file using your preferred development environment or command line.

  3. Modify the code and datasets as needed to fit your specific use case. Each example file contains comments to guide you through the necessary modifications.

Contributions

Contributions to this repository are highly appreciated. If you have improvements, bug fixes, or additional examples for other machine learning algorithms, please submit a pull request.

License

This repository is licensed under the MIT License.

Feel free to explore and utilize the code examples for your machine learning projects in either Python or R. Happy learning and coding!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published