Giter Site home page Giter Site logo

statest's Introduction

statest

A library for statistical estimation of the properties of various distributions.

Installation

pip install statest

First use-case: estimate quantiles

The R quantile function has 9 estimators. The Python estimator in numpy (percentile) has only one (the seventh version in R). This library implements the remaining 8 methods.

from statest.quantile.estimate import est_1, est_2, est_3,\
                                      est_4, est_5, est_6,\
                                      est_7, est_8, est_9
a = np.arange(15); q=0.8
quartile = est_4(a, q)

To measure the performance of the quantile estimation methods on various distributions, the library has a simulator. The simulations take about 20 minutes to run. The bias, variance and MSE are plotted for all the estimators. The data from the simulations is stored to disk in a folder called "sim_data" and the plots are saved to a folder called "plots".

from statest.quantile.simulator.estimator_racetrack1 import RaceTrack
rt = RaceTrack("Normal")
rt.race()

The avaiable distributions are: Normal, LogNormal, LogLogistic, Weibull, Lomax and Exponential.

Resources

Based on the paper: https://arxiv.org/abs/2201.01421 and the blog: https://towardsdatascience.com/hear-me-out-i-found-a-better-way-to-estimate-the-median-5c4971be4278

statest's People

Contributors

ryu577 avatar

Watchers

 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.