#7197: basic statistics functions
--------------------------+-------------------------------------------------
Reporter: amhou | Owner: mhampton
Type: task | Status: needs_work
Priority: minor | Milestone: sage-4.2
Component: statistics | Keywords: statistics, mean, median, mode,
standard deviation
Work_issues: | Author: Andrew Hou
Reviewer: | Merged:
--------------------------+-------------------------------------------------
Changes (by jason):
* status: needs_review => needs_work
Comment:
Some comments:
1. The arguments for std and variance don't seem very user-friendly. I
think it would be much better to have "sample=True/False" or
"population=True/False", or maybe something more general like numpy:
"ddof=<number>" (delta degrees of freedom), where the denominator is
n-ddof (so ddof=1 is sample, ddof=0 is population).
2. When calling the std or variance methods of the object, the population
vs. sample distinction is ignored.
2. Why are these methods in a class? They don't seem to use any benefits
of a class; they just seem to be standalone functions. It seems like it
would make much more sense to me to have these methods be just functions
inside of the module. We can still import them into a namespace called
"stats".
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7197#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---