I have the following code to estimate the parameters of gamma distribution, generate some reall data with estimated parameters and do kstest:
alhpa, beta, loc=gamma.fit(my_data)
real_data=gamma.pdf(my_data, alpha,loc,beta)
stat, pval = kstest (my_data, 'gamma',(alpha,loc))
I am not sure about the order of parameters in fir, pdf and kstest. Is there any references for the right order of parameters for each function?
Thanks, Amir