You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2018/01/21 15:51:00 UTC
[jira] [Commented] (MATH-1373) In LogNormalDistribution.java, it
appears shape & scale are reversed/mis-labelled.
[ https://issues.apache.org/jira/browse/MATH-1373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16333561#comment-16333561 ]
Gilles commented on MATH-1373:
------------------------------
Discussion should be moved to the issue tracker of the new "Commons Statistics" component (see STATISTICS-2).
> In LogNormalDistribution.java, it appears shape & scale are reversed/mis-labelled.
> ----------------------------------------------------------------------------------
>
> Key: MATH-1373
> URL: https://issues.apache.org/jira/browse/MATH-1373
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.6.1
> Reporter: Karl D. Gierach
> Priority: Minor
> Fix For: 4.0
>
> Attachments: MATH-1373.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When I compute the logshape and log scale based on the formulas on wikipedia's lognormal distribution page that use empirical mean and variance, I found that the getNumericalMean() method was not returning the empirical mean.
> However, upon just trying to reverse the shape and scale parameters in the constructor proved to fix the problem, and the object then returns the correct empirical mean.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)