<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 3, 2019 at 3:31 PM Matt Haberland <<a href="mailto:haberland@ucla.edu">haberland@ucla.edu</a>> wrote:<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 dir="ltr">I am not personally familiar with the <a href="https://books.google.com/books?id=_LvgBwAAQBAJ&pg=PA197&lpg=PA197&dq=johns+su+sb+sl+distributions&source=bl&ots=LBowBmYTse&sig=9KPViyvSlLAFp9EYqi-ejTYgQ30&hl=en&sa=X&ved=2ahUKEwjE6cnvt9LfAhWG458KHdrQAmkQ6AEwDXoECAIQAQ#v=onepage&q=johns%20su%20sb%20sl%20distributions&f=false" target="_blank">Johnson family of distributions</a>, but the SL does seem to complete the set.<div><br></div><div>The license for the Matlab implementation does seem to be <a href="https://en.wikipedia.org/wiki/BSD_licenses#3-clause" target="_blank">BSD 3-clause</a> and thus compatible with SciPy.</div><div><br></div><div>Seems like a reasonable first issue, but certainly finishing stalled PRs would be helpful, too!</div><div><br></div><div>Matt Haberland</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 3, 2019 at 10:09 AM Michael Watson <<a href="mailto:mike.watson@sheffield.ac.uk" target="_blank">mike.watson@sheffield.ac.uk</a>> wrote:<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 dir="ltr"><div dir="ltr"><div>Hi all, happy new year,</div><div>We have the SB and SU Johnson distributions implemented but not the SL distribution, it doesn't look like much work to add it in if it's appropriate, I'm doing some work with these distributions and ultimately would like to implement functions to fit by moments and by quantiles too. there are existing implementations that are distributed under the BSD licence here:</div><div><br><a href="https://uk.mathworks.com/matlabcentral/fileexchange/46123-johnson-curve-toolbox" target="_blank">https://uk.mathworks.com/matlabcentral/fileexchange/46123-johnson-curve-toolbox</a></div><div><br></div><div>so it doesn't seem like a big job from my point of view and I'll be doing it anyway. <br></div><div> <br></div><div>it would also be my first contribution so if it would be better to start with another issue (I saw a list and 2 stalled PRs in another email) then try to add functionality just say and I can look at contributing other ways first.</div></div></div></blockquote></div></blockquote><div><br></div><div>In general to adding new distributions</div><div><br></div><div>The speed of getting a new distribution in depends a lot on how well it fits into the general distribution pattern and whether all core methods are available as closed form expression or by using scipy.special functions.</div><div>If that is the case, then adding a new distribution is easy.</div><div>If that is not the case, then it can be difficult to get a good version merged. One difficult case is if the pdf is only available as computationally expensive numerical approximation.</div><div><br></div><div>The distributions have in general only the fit method using maximum likelihood estimation of parameters (which might reduce to method of moments in special cases).</div><div><br></div><div>Based on a quick search it looks like JohnsonSL is just the log-normal distribution (as loc-scale family which is available in scipy)</div><div><br></div><div>Josef</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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 dir="ltr"><div dir="ltr"><div>Mike<br></div></div></div>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-2649909637450010534gmail_signature"><div dir="ltr"><div><div dir="ltr">Matt Haberland<div>Assistant Adjunct Professor in the Program in Computing</div><div>Department of Mathematics</div><div>6617A Math Sciences Building, UCLA</div></div></div></div></div>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@python.org" target="_blank">SciPy-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scipy-dev</a><br>
</blockquote></div></div>