-
Notifications
You must be signed in to change notification settings - Fork 1
Tutorial: Your first analysis
Gustavo Rosa edited this page Apr 7, 2021
·
2 revisions
Every code starts with some imports, right?
import statys.tests.measure as m
from statys.core import Distribution
Afterward, we can input or define the values of the distributions that we want to analyze.
# Defining input arguments
x = [0, 0.1, 0.2, 0.3, 0.4, 0.5]
y = [0.07, 0.14, 0.72, 0.32, 0.59, 0.43]
Now, we can create the Distribution class.
# Creating the distribution
d = Distribution(x, y)
Finally, with the distribution in hands, we can call a variety of statistical measures and tests, such as following:
# Calculating measures
m.kurtosis(d)
m.max(d)
m.min(d)
m.mean(d)
m.rank(d)
m.skewness(d)
m.std(d)
m.median(d)
m.var(d)
There you go! Just sequentially put this instruction in a single file and run it. You can also get the file in examples/tests/distribution_measures.py
. Stay focus and you should be ready for everything.
statys
© Copyright 2021 – Licensed by Apache 2.0