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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -