Skip to content

Pareto.Entropy has the wrong sign #1108

Open
@Steivan

Description

@Steivan

The implementation of the Entropy for the Pareto distribution -> (https://github.com/mathnet/mathnet-numerics/blob/master/src/Numerics/Distributions/Pareto.cs) line 167 has the wrong sign:

public double Entropy => Math.Log(_shape/_scale) - (1.0/_shape) - 1.0;

should be:

public double Entropy => Math.Log(_scale/_shape) + (1.0/_shape) + 1.0;

as, e.g., found in https://en.wikipedia.org/wiki/Pareto_distribution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions