2. How to Install

2.1. Clone the Repository

git clone git@github.com:runawayhorse001/statspy.git

2.2. Install

cd statspy
pip install -r requirements.txt
python setup.py install

2.3. Uninstall

pip uninstall statspy

2.4. Test

cd statspy/test
python test1.py

test1.py

from statspy.basics	import rnorm
from statspy.tests import t_test

# rnorm demo
n = 10 

y = rnorm(n)
print(y)

# t.test demo
y = [1,2,3,4]
t_test(y)

Results:

[-1.27920153  0.84000173  1.75114469 -0.02731652 -0.56417185 -0.61239996
 -1.47376967  1.39551562 -0.8559779   0.60139758]

    --------------------------------------------------------------------------------
    #       One Sample t-test
    # data:  ['y']
    # t = 3.872983346207417, df = 3, p-value = 0.030466291662170977
    # alternative hypothesis: true mean is not equal to 0.0
    # 95.0 percent confidence interval:
    # 0.4457397432391206, 4.554260256760879
    # mean of x
    #         2.5
    --------------------------------------------------------------------------------