P
P
pgamesorg2021-05-27 15:49:12
Python
pgamesorg, 2021-05-27 15:49:12

How to bring the sample into a normal distribution?

Before using np.log() :
60af947805a45090937953.png

After using np.log() :
60af9423b7c95370956467.png

BUT

I want to test two groups with a T-Test, but first I decided to test for normality:
60af9508583f5904342406.png
the result turned out to be very significant (i.e. the sample is not normally distributed)

How to get out of this to properly do a T-Test?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zexer, 2021-05-27
@zexer

If your data is not normal, then there is little point in running tests based on the assumption that the data is normal.

D
dmshar, 2021-05-27
@dmshar

"I now want to test two groups with a T-Test" - you can want anything. But this has nothing to do with data mining. If your data does not follow the normal distribution law, then using Student's t-test is extremely irrational. For such cases, there are other tests from the nonparametric group. A lot of them. You can start with the Wilcoxon-Mann-Whitney test, and/or the Kolmogorov-Smirnov test. Their standard implementations are in scipy.stats. However, as well as heaps of other methods that can be applied in such cases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question