Skip to main content

Identify the Distribution of Data

Project description

PyIDD

Identify the Distribution of your Data
This package helps you for identifing the distribution of your data. For example if you want to know whether your data follow Normal distribution, you can use this package!

Installation

pip install pyidd

Usage

import pyidd
import statsmodels.api as sm

# Load sample dataset (data is an one dimensional array)
data = sm.datasets.elnino.load_pandas().data.set_index('YEAR').values.ravel()

# verbose=0 means silent while fitting and verbose=1 means say anything you do while fitting
p = pyidd.PyIDD(verbose=1)
p.fit(data)

# After fitting, you can get distribution sorted by Sum of Squered Error that fit your data, so the first distribution is the distribution that is closer to your data
p.get_distributions()

# You can also plot distributions and your data to see this visualy. top=10 means that you want to plot top 10 distributions that match your data
p.plot(top=10)

Distributions

We use almost all scipy.stats continiuse distributions (Notics: The distributions that can not fit to your data get ignored). These distributions are listed below:

  • alpha
  • anglit
  • arcsine
  • argus
  • beta
  • betaprime
  • bradford
  • burr
  • burr12
  • cauchy
  • chi
  • chi2
  • cosine
  • crystalball
  • dgamma
  • dweibull
  • erlang
  • expon
  • exponnorm
  • exponweib
  • exponpow
  • f
  • fatiguelife
  • fisk
  • foldcauchy
  • foldnorm
  • frechet_r
  • frechet_l
  • genlogistic
  • gennorm
  • genpareto
  • genexpon
  • genextreme
  • gausshyper
  • gamma
  • gengamma
  • genhalflogistic
  • geninvgauss
  • gilbrat
  • gompertz
  • gumbel_r
  • gumbel_l
  • halfcauchy
  • halflogistic
  • halfnorm
  • halfgennorm
  • hypsecant
  • invgamma
  • invgauss
  • invweibull
  • johnsonsb
  • johnsonsu
  • kappa4
  • kappa3
  • ksone
  • kstwo
  • kstwobign
  • laplace
  • levy
  • levy_l
  • logistic
  • loggamma
  • loglaplace
  • lognorm
  • loguniform
  • lomax
  • maxwell
  • mielke
  • moyal
  • nakagami
  • ncx2
  • ncf
  • nct
  • norm
  • norminvgauss
  • pareto
  • pearson3
  • powerlaw
  • powerlognorm
  • powernorm
  • rdist
  • rayleigh
  • rice
  • recipinvgauss
  • semicircular
  • skewnorm
  • t
  • trapz
  • triang
  • truncexpon
  • truncnorm
  • tukeylambda
  • uniform
  • vonmises
  • vonmises_line
  • wald
  • weibull_min
  • weibull_max
  • wrapcauchy

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

pyidd-0.3.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyidd-0.3.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pyidd-0.3.1.tar.gz.

File metadata

  • Download URL: pyidd-0.3.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for pyidd-0.3.1.tar.gz
Algorithm Hash digest
SHA256 75aaa30d50078aaa04e31db2117e1af1fbed1a08c1ad794bf6dee48d08bdc08e
MD5 48d4c15527222325743f631d61b71cea
BLAKE2b-256 a5815ebca143eaaa3fb7e0f28589472f92306afa1e39d2d4f48b3f10f65dec3c

See more details on using hashes here.

File details

Details for the file pyidd-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pyidd-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for pyidd-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c17e99acd71f08501eda2a1c72d6f9f95f2116bc0c306d3c8e6cc16fcfc09cb
MD5 8bf87f43ece40c731fa9b9d8e51a6ea8
BLAKE2b-256 16b2db509bcf7e64253519389fcfa37802fb4cba837971505643043a8ef395e2

See more details on using hashes here.

Supported by

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