Skip to main content

A Python Based Library to Calculate Estimators (Sn, Qn, MAD, IQR)

Project description

Downloads Downloads Downloads

robustbase

A Python Library to Calculate Estimators.

Installation

OS X , Windows & Linux:

pip install robustbase

Usage example

This package is used to calculate the following statistical estimators.

  • Qn scale estimator
  • Sn scale estimator
  • Median Absolute Deviation(MAD)
  • Interquartile Range (IQR)
from robustbase import Qn, Sn, mad, iqr
import numpy as np

data = np.random.rand(10)
print(Qn(data))
print(Sn(data))
print(mad(data))
print(iqr(data))

Development setup

For local development setup

git clone https://github.com/deepak7376/robustbase
cd robustbase
pip install -r requirements.txt

Meta

Deepak Yadav – @imdeepak_dkydky.united@gmail.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/deepak7376/robustbase/blob/master/LICENSE

Contributing

  1. Fork it (https://github.com/deepak7376/robustbase/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

References

https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/qn_scale.htm https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/sn_scale.htm https://www.statisticshowto.datasciencecentral.com/median-absolute-deviation/ https://www.statisticshowto.datasciencecentral.com/probability-and-statistics/interquartile-range/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robustbase-0.2.6.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

robustbase-0.2.6-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page