python - order of parameter for stat functions -
i have following code estimate parameters of gamma distribution, generate reall data estimated parameters , 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 not sure order of parameters in fir, pdf , kstest. there references right order of parameters each function?
thanks, amir
according scipy documentation gamma , kstest, order of arguments are:
gamma.fit(data, a, loc=0, scale=1) gamma.pdf(x, a, loc=0, scale=1) kstest(rvs, cdf, args=(), n=20, alternative='two-sided', mode='approx')
you can find more detailed information parameters , usage examples in documentation linked above.
Comments
Post a Comment