[issue42535] unittest.patch confuses modules with base modules

2020-12-02 Thread Tymek Wołodźko
New submission from Tymek Wołodźko : Nonetheless having several attempts, I wasn't able to create reproducible example for this bug, but I will try describing it in detail. I have a package with multiple modules. One of the paths is like `mymodule.nestedmodule.io`, among other functions,

[issue38490] statistics: add covariance, Pearson's correlation, and simple linear regression

2020-07-11 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: Is there anything more I should do about the PR? Sincerely, Tim On Fri, May 22, 2020 at 10:45 PM Cheryl Sabella wrote: > > Cheryl Sabella added the comment: > > @steven.daprano and @tim.peters, please take a look at the PR as it is > just

[issue38490] statistics: add covariance, Pearson's correlation, and simple linear regression

2019-10-22 Thread Tymek Wołodźko
Change by Tymek Wołodźko : -- title: statistics: add covariance and Pearson's correlation -> statistics: add covariance, Pearson's correlation, and simple linear regression ___ Python tracker <https://bugs.pytho

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-17 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: I expanded my PR to add simple linear regression. I also created documentation for the new functionalities. As about covariance, we can simply not expose it to the users, but I'm not convinced that there is any gain in keeping it hidden from the users.

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-16 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: In case there is agreement with Steven, I will add simple linear regression ( https://en.wikipedia.org/wiki/Simple_linear_regression ) in the same PR, since it is just: slope = correlation(x, y) * ( stdev(y) / stdev(x) ) intercept = mean(y) - slope * mean(x

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-15 Thread Tymek Wołodźko
Tymek Wołodźko added the comment: I think I see your point, that the module is intended for the most basic features, but I would argue that correlation is one of such "most basic" statistics. Correlation and covariance can be thought as equivalents for standard deviation and variance

[issue38490] statistics: add covariance and Pearson's correlation

2019-10-15 Thread Tymek Wołodźko
New submission from Tymek Wołodźko : Covariance and Pearson's correlation are one of the most basic bivariate statistics. https://en.wikipedia.org/wiki/Covariance https://en.wikipedia.org/wiki/Pearson_correlation_coefficient -- messages: 354754 nosy: Tymek Wołodźko priority: n