File:Correlation examples.png
| Description | See below. |
| Date | 8 December 2007 (original upload date) |
| Source |
Transferred from en.wikipedia to Commons by jtneill. |
| Author | Imagecreator at English Wikipedia |
| Other versions | File:CovrarianceCorrelation.svg, File:Correlation examples2.svg |
File:Correlation examples2.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.Category:Vector version available
File:Correlation examples.png → File:Correlation examples2.svg
For more information, see Help:SVG. |
[[:File:CovrarianceCorrelaخن
tion.svg]] is a vector version of this file.
Error: No SVG image by that name exists. Please make sure to use the correct format: {{Vector version available|new image name}}.Category:Vector version available/error File:Correlation examples.png → [[:File:CovrarianceCorrelaخن
tion.svg]]
For more information, see Help:SVG. |
[[File:CovrarianceCorrelaخن
tion.svg|New SVG image|150x150px]] |
Summary
An example of the correlation of x and y for various distributions of (x,y) pairs. It was created by this Mathematica 6 code, which I wrote and release into the public domain (needs makePlot!):
n = 2000;
GraphicsArray[{
Table[makePlot[
Table[{RandomReal[NormalDistribution[0, 1]], (1 - Abs[w])*
RandomReal[NormalDistribution[0, 1]]} .
RotationMatrix[-Sign[w]*Pi/4], {i, -1, 1, 2./n}], 1000], {w,
1, -1, -1/3}],
Table[makePlot[Table[{x, slope*x}, {x, -1, 1, 2./n}], 100], {slope,
1, -1, -1/3}],
{
makePlot[
Table[{x + RandomReal[]/3,
4 (x^2 - 1/2)^2 + RandomReal[]/500} , {x, -1, 1, 2./n}], 2000],
makePlot[
Table[{RandomReal[{-1, 1}], RandomReal[{-1, 1}]} .
RotationMatrix[-Pi/8], {x, -1, 1, 2./n}], 1400],
makePlot[
Table[{RandomReal[{-1, 1}], RandomReal[{-1, 1}]} .
RotationMatrix[-Pi/4], {x, -1, 1, 2./n}], 1400],
makePlot[Table[{x, x^2 + RandomReal[]}/2, {x, -1, 1, 2./n}],
1400],
makePlot[
Table[{x, x^2 + RandomReal[]/2}*(RandomInteger[1]*2 - 1), {x, -1,
1, 2./n}], 1000],
makePlot[
Table[{Sin[x*Pi] + RandomReal[NormalDistribution[0, 1/8]],
Cos[x*Pi] + RandomReal[NormalDistribution[0, 1/8]]}, {x, -1, 1,
2./n}], 1400],
makePlot[
Table[{RandomReal[NormalDistribution[0, 1/3]],
RandomReal[
NormalDistribution[0, 1/3]]} + {RandomInteger[1]*2 - 1,
RandomInteger[1]*2 - 1}, {x, -1, 1, 2./n}], 1400]
}
}]
Licensing
| This work has been released into the public domain by its author, Imagecreator at English Wikipedia. This applies worldwide. In some countries this may not be legally possible; if so: Imagecreator grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
Original upload log
The original description page was here. All following user names refer to en.wikipedia.
- 2007-12-08 19:16 Imagecreator 824×346×8 (20371 bytes) == Summary == An example of the correlation of x and y for various distributions of (x,y) pairs. It was created by this Mathematica 6 code, which I wrote and release into the public domain: <pre> (*Several sets of (x,y) points, with the correlation coef
- 2007-12-08 18:48 Imagecreator 824×346×8 (21374 bytes) An example of the correlation of x and y for various distributions of (x,y) pairs. It was created by this Mathematica 6 code, which I wrote and release into the public domain: (*Several sets of (x,y) points, with the correlation coefficient of x \ and y