Skip to main content

stats265 package

A pip package which will hopefully have all the distributions from STATS265(Stats 1) - Ualberta soon

Currently:

  • Bernoulli
  • Binomial
  • Gaussian (Normal)
  • Poisson

If you are risk averse, you can try it out on a virtual environment first

Testing was done using unittest library https://docs.python.org/3/library/unittest.html

Documentation:

* Calling a distribution
    * from stats265 import Bernoulli
        * g = Bernolli(p = 0.7)
    * from stats265 import Gaussian
        * g = Gaussian(mean, stdev)
    * from stats265 import Binomial
        * g = Binomial(p = 0.7, n = 20)
    * from stats265 import Poisson
        * g = Poisson(mean)

* Methods of distributions (varies for obvious reasons)
    * read_data_file(file_name)
        reads the data in said file into our object, and now we can play around with the data

    * calculate_mean()
        calculates and returns the mean
        
    * calculate_stdev()
        calculates and returns the standard deviation of the distribution

    * plot_histogram()
        plots a histogram of the data

    * pdf(x)
        returns probability density function for a value x

    * plot_histogram_pdf()
        Plots histogram of data and pdf

    * Distribution_1 + Distribution_2 (__add__)
        Add a two distributions
            same type only for now

    * print(Distribution) (__repr__)
        Allows for representation on a print call

Installation and Dependencies:

  • Installation:

    • pip install stats265
  • Dependencies:

    • Matplotlib:
      • pip install matplotlib

Metadata

Release files for stats265 0.77

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stats265 0.77
File Size Uploaded
stats265-0.77.tar.gz 8.0 kB Details

Release files / stats265-0.77.tar.gz

Download URL stats265-0.77.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d802b071e9fd642bdd5d807cff95eb2d44e033da5e1e279ec3a697cce2c42b4
BLAKE2b-256 checksum
How to use checksums
32f728710030de0aa86f76df6e827a0d164872393127dc15c0b2fb92fa3545a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.77 This release

1 release file

0.75

1 release file

0.72

1 release file

0.71

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page