Title: Use sumprod() to simplify, speed up, and improve accuracy of statistics functions · Issue #102670 · python/cpython · GitHub
Open Graph Title: Use sumprod() to simplify, speed up, and improve accuracy of statistics functions · Issue #102670 · python/cpython
X Title: Use sumprod() to simplify, speed up, and improve accuracy of statistics functions · Issue #102670 · python/cpython
Description: Use sumprod() which is faster, simpler, and more accurate than rounding each multiplication before summation. For an additional speed-up and simplification, compute the (x_xi - bar) only once instead of multiple times. For Spearman's ran...
Open Graph Description: Use sumprod() which is faster, simpler, and more accurate than rounding each multiplication before summation. For an additional speed-up and simplification, compute the (x_xi - bar) only once inste...
X Description: Use sumprod() which is faster, simpler, and more accurate than rounding each multiplication before summation. For an additional speed-up and simplification, compute the (x_xi - bar) only once inste...
Opengraph URL: https://github.com/python/cpython/issues/102670
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use sumprod() to simplify, speed up, and improve accuracy of statistics functions","articleBody":"* Use sumprod() which is faster, simpler, and more accurate than rounding each multiplication before summation.\r\n* For an additional speed-up and simplification, compute the (x_xi - bar) only once instead of multiple times.\r\n* For Spearman's rank correlation, we can skip the (x_xi - bar) step because the ranks are centered around zero.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-102649\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/rhettinger","@type":"Person","name":"rhettinger"},"datePublished":"2023-03-13T23:24:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/102670/cpython/issues/102670"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9fc2d537-6ebf-75bc-7102-0eb80dad23c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F7A:155BED:9FB8BF:DC24CD:696A83AB |
| html-safe-nonce | c224a15c81d074e5665910ca1a0d5cbf1a76af67af09fd9733675d59592b421d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjdBOjE1NUJFRDo5RkI4QkY6REMyNENEOjY5NkE4M0FCIiwidmlzaXRvcl9pZCI6IjY0OTQ5MjQwMzQzOTc2MDI3MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b060115177581f1b3d0145aa11a9905700316b33c5f5f36af60c9e89173c7bb5 |
| hovercard-subject-tag | issue:1622456906 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/102670/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6502483e882bdd2bf5f512282dbddf61873a864c824b2c71a86bb29aa735e772/python/cpython/issues/102670 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6502483e882bdd2bf5f512282dbddf61873a864c824b2c71a86bb29aa735e772/python/cpython/issues/102670 |
| og:image:alt | Use sumprod() which is faster, simpler, and more accurate than rounding each multiplication before summation. For an additional speed-up and simplification, compute the (x_xi - bar) only once inste... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhettinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width