octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41008] empirical_pdf incorrect implementation


From: anonymous
Subject: [Octave-bug-tracker] [bug #41008] empirical_pdf incorrect implementation
Date: Fri, 27 Dec 2013 00:24:58 +0000
User-agent: Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.16

URL:
  <http://savannah.gnu.org/bugs/?41008>

                 Summary: empirical_pdf incorrect implementation
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 27 Dec 2013 12:24:57 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: HP
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Line #40 of empirical_pdf.m reads
pdf = discrete_pdf (x, data, ones (size (data)));

However, the function discrete_pdf requires that the last argument
be a vector of probabilities.
This can be remedied as follows:

pdf = discrete_pdf (x, data, (ones (size (data))/length(data)));

More basically, however, this implementation does not consider the possibility
of ties in the data. In other words, the implementation is limited to data
with distinct observations.
I suggest this should be addressed.

Best
-HP




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41008>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]