Skip to content

Nikunj113437/Different-Sampling-Techniques

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Different-Sampling-Techniques

Sampling is the process of selecting a subset of individuals, items, or observations from a larger population. The goal of sampling is to obtain a representative subset of the population that can be used to estimate population characteristics with a reasonable level of accuracy.

There are several different sampling techniques that can be used, including:

Simple random sampling:

In this technique, each member of the population has an equal chance of being selected for the sample.

Stratified sampling:

This involves dividing the population into subgroups (strata) based on some relevant characteristic, and then selecting a random sample from each stratum in proportion to the size of the stratum.

Cluster sampling:

In this technique, the population is divided into clusters (e.g., geographic regions or schools) and a random sample of clusters is selected. Data is then collected from all individuals within the selected clusters.

Systematic sampling:

This involves selecting every nth member of the population after randomly selecting a starting point.

Weighted Sampling:

Weighted sampling is a sampling technique in which each element in the population is given a weight that reflects its importance or representativeness in the population. The goal of weighted sampling is to increase the representation of certain elements in the sample in order to better reflect the population as a whole.

Project:

In this Project, I have taken a Credit Card Fraud Detection Dataset and create 5 different Samples using above mentioned Sampling Techniques. After that, I applied 5 different ML Algorithms/Models and find out the accuracy of model over each Sample.

Result Computed:

Among the 5 ML Models, XGBoost and Random Forest Classifier both gives Best Accuracy over each Sample.

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published