Я пытаюсь увидеть, подходит ли нормальное распределение с определенными параметрами для набора данных. Однако, кажется, QQPLOT не работает, как ожидается. В следующем небольшом примере показано: < /p>
Код: Выделить всё
import numpy as np
import statsmodels.api as sm
import pylab
test = np.random.normal(20,5, 1000)
sm.qqplot(test, loc = 20, scale = 5 , line='45')
pylab.show()
As one can see I expect the points to be around the line with slope = 1 but it gives the following figure:
Can anyone explain me why this случается?
Подробнее здесь:
https://stackoverflow.com/questions/480 ... models-api