Uploaded image for project: 'Commons Statistics'
  1. Commons Statistics
  2. STATISTICS-61

Exponential distribution parameterized by the rate (1 / mean)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 1.0
    • None
    • distribution
    • None
    • Easy

    Description

      The exponential distribution is currently parameterized by the mean. This matches the parameterization used by SciPy and Matlab.

      The distribution can also be parameterized by the rate. This is the parameterization used by R and Mathematica.

      A distribution for the rate can be created as:

      double rate = ...
      ExponentialDistribution dist = ExponentialDistribution.of(1 / rate);

      The formulas for the two parameterization are simple rearrangements. In certain cases direct use of the rate formula can have a large difference to the mean formula.

      Investigate the option to provide a rate parameterization as:

      ExponentialDistribution dist = ExponentialDistribution.ofRate(rate);

      Attachments

        Activity

          People

            Unassigned Unassigned
            aherbert Alex Herbert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: