I fit some data using Scipy:
param=expon.fit(data)
pdf_fitted=expon.pdf(x,loc=param[-2],scale=param[-1])
plot(x,pdf_fitted,'r')
hist(data,normed=1,alpha=.3,histtype='stepfilled')
And I get a curve that looks like this:
How do I check how good the fit is (is there a parameter for this?). I'd like a number so I can compare different ways of fitting.