Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Covariance
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Numerical computation == {{main|Algorithms for calculating variance#Covariance}} When <math>\operatorname{E}[XY] \approx \operatorname{E}[X]\operatorname{E}[Y]</math>, the equation <math>\operatorname{cov}(X, Y) = \operatorname{E}\left[X Y\right] - \operatorname{E}\left[X\right] \operatorname{E}\left[Y\right]</math> is prone to [[catastrophic cancellation]] if <math>\operatorname{E}\left[X Y\right]</math> and <math>\operatorname{E}\left[X\right] \operatorname{E}\left[Y\right]</math> are not computed exactly and thus should be avoided in computer programs when the data has not been centered before.<ref>[[Donald E. Knuth]] (1998). ''[[The Art of Computer Programming]]'', volume 2: ''Seminumerical Algorithms'', 3rd edn., p. 232. Boston: Addison-Wesley.</ref> [[Algorithms for calculating variance#Covariance|Numerically stable algorithms]] should be preferred in this case.<ref>{{Cite book|last1=Schubert|first1=Erich|last2=Gertz|first2=Michael|title=Proceedings of the 30th International Conference on Scientific and Statistical Database Management |chapter=Numerically stable parallel computation of (Co-)variance |date=2018|chapter-url=http://dl.acm.org/citation.cfm?doid=3221269.3223036|language=en|location=Bozen-Bolzano, Italy|publisher=ACM Press|pages=1β12|doi=10.1145/3221269.3223036|isbn=978-1-4503-6505-5|s2cid=49665540}}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Covariance
(section)
Add topic