Metadata-Version: 2.1
Name: srs
Version: 0.0.2
Summary: Startied random sample from the dataframe
Home-page: https://github.com/vrreddy695/startifiedRS
Author: Venkatramireddy Koppula
Author-email: venkatrami.reddy@latentview.com
License: UNKNOWN
Description: <html><h3>SRS (Startified Random Sample)</h3>
        Stratified random sampling is a type of probability sampling using which a research organization can branch off the entire population into multiple non-overlapping, homogeneous groups (strata) and randomly choose final members from the various strata for research which reduces cost and improves efficiency.
        
        Let’s consider a situation where a research team is seeking opinions about religion amongst various age groups. Instead of collecting feedback from 326,044,985 U.S citizens, random samples of around 10000 can be selected for research. These 10000 citizens can be divided into strata according to age,i.e, groups of 18-29, 30-39, 40-49, 50-59, and 60 and above.
        
        In this approach, each stratum sample size is directly proportional to the population size of the entire population of strata. That means each strata sample has the same sampling fraction.
        
        Proportionate Stratified Random Sampling Formula: nh = ( Nh / N ) * n
        nh= Sample size for hth stratum
        Nh= Population size for hth stratum
        N = Size of entire population
        n = Size of entire sample
        
        <li>Parameters</li>
        <i>samp(dsn, stratas, sample_size)</i>
        dsn: population dataset<br>
        stratas: column names as list format ex: ['strata1','strata2','strata3....']<br>
        sample_size: how much percentage you want as a sample like 0.05, 0.10, 0.25...</br>
        <li>Example usage</li>
        sample=srs.samp(df, 'female', 0.25)</br></html>
        
Platform: UNKNOWN
Classifier: Programming Language :: Python 
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/x-rst
