8080labs / pyforest

pyforest - feel the bliss of automated imports
https://8080labs.com
MIT License
1.11k stars 196 forks source link

Added submodules for normality tests #43

Open RafeyIqbalRahman opened 4 years ago

RafeyIqbalRahman commented 4 years ago

These submodules are used to test the distribution of the data using hypothesis testing (inferential statistics), i.e., whether the distribution of the data points is normal (Gaussian) at specific confidence intervals.

tkrabel commented 4 years ago

Hi @RafeyIqbalRahman - thanks for the PR :)

We already import stats from scipy and if I am not mistaken, then this is the usual way to use those submodules (see e.g. here).

Would it work for you to call the modules such as e.g. stats.normaltest or is there a good reason for importing them the way you suggest?

Cheers

RafeyIqbalRahman commented 4 years ago

Hi @RafeyIqbalRahman - thanks for the PR :)

We already import stats from scipy and if I am not mistaken, then this is the usual way to use those submodules (see e.g. here).

Would it work for you to call the modules such as e.g. stats.normaltest or is there a good reason for importing them the way you suggest?

Cheers

stats.normaltest is appropriate but an ideal practice would be to import normaltest separately. I've seen some tutorials that discourage the use of stats.normaltest as a bad practice. According to them, you should minimize the number of '.' (dots) in your code.