[issue45766] Add direct proportion option to statistics.linear_regression()
Raymond Hettinger
report at bugs.python.org
Thu Nov 11 13:25:45 EST 2021
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
It usually isn't wise to be preachy in the docs, but we could add a suggestion that proportional=True be used only when (0, 0) is known to be in the dataset and when it is in the same neighborhood as the other data points. A reasonable cross-check would be to verify than a plain OLS regression would produce an intercept near zero.
linear_regression(hours_since_poll_started, number_of_respondents, proportional=True)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45766>
_______________________________________
More information about the Python-bugs-list
mailing list