<div dir="ltr"><div dir="ltr">On Wed, Jul 14, 2021 at 10:47 AM Keith Sloan <<a href="mailto:keith@sloan-home.co.uk">keith@sloan-home.co.uk</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Thanks for all the help but still experiencing further problems,
      maybe it is just me but there seems inconsistencies between
      distributions and fit, ppt and pdf calls.<br>
    </p>
    <p>1) Trying to fit exponential, fit does not give scale but pdf
      seems to accept a scale value</p></div></blockquote><div>> ae, be = stats.expon.fit(RErange1[xfield].data)<br><br>loc=ae, scale=be</div><div><br></div><div>The last two parameters in the fit() results are always loc and scale.<br><br>> xe0, xe1 = stats.expon.ppf([0.01, 0.99])<br></div><div><br></div><div>Don't forget to pass in the fitted parameters.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
    <p>2) Also a gamma plot of a second distribution is not showing
      curve</p></div></blockquote><div><br></div><div>Stop using int(ag) for the number of points in the linspace(). It's usually an inappropriate value. In that second case, int(ag)==1.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Robert Kern</div></div>