Giter VIP home page Giter VIP logo

stapy's Introduction

stapy

Python package containing functions implemented for descriptive and inferential statistics.

Presently, this package is a work in progress. I will add to this package as I further my study in statistics.

As of now, I have more-or-less covered all topics on Descriptive Statistics, though room for improvement is ever-existent. I have finally touched upon Inferential Statistics, and currently am working to finish it soon.

Modules in this package

Contains functions related to Descriptive Statistics, comprising:

  • visualizing categorical data into a table
  • one function each for mean, median and mode
  • one function for all central tendencies
  • population variance
  • population standard deviation
  • one function of sample variance and sample SD
  • range, quartiles, IQR of a distribution
  • outlier checking and elimination in a distribution
  • boxplot summary printing
  • Z-scores of a distribution
  • proportion using z-table
  • randomly selecting all the samples from a population
  • sampling distrubution of a population
  • standard error of a population
  • sample z-score.

In order to use this, you may import the entire module:

from stapy import descriptive

Or, you may include a particular function:

from stapy.descriptive import get_Z_scores

And use them as you like:

>>> sample = [205,137,20,90]
>>> get_Z_scores(sample, mean=120, SD=40)
[2.125, 0.425, -2.5, -0.75]

More on the use of this module is provided in the testsD.py file.

Contains functions related to Inferential Statistics, comprising:

  • approximate margin of error
  • confidence intervals
  • hypothses testing
  • t-statistics
  • t-critical value
  • Cohen's d
  • margin of error
  • t-tests
  • r2 effective size measure
  • dependent samples
  • independent samples
  • analysis of variance (ANOVA)
  • correlation
  • regression
  • chi-squared tests

Usage

Import entire module

from inferential import *

Or, a function in the module

from inferential import get_confidence_interval

And use by calling the functions.

>>> xbar, sigma, n, z_star = 40, 16.04, 35, 1.96
>>> get_confidence_interval(xbar, sigma, n, z_star)
(34.6859404956286, 45.3140595043714)

More on the use of this module is provided in the testI.py file.

License

MIT License

stapy's People

Contributors

rafi007akhtar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.