Open RafeyIqbalRahman opened 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
Hi @RafeyIqbalRahman - thanks for the PR :)
We already import
stats
fromscipy
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.
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.