File:LinearRegression.svg
From Wikimedia Commons, the free media repository
LinearRegression.svg (SVG file, nominally 600 × 480 pixels, file size: 41 KB)
| Description | Illustration of linear regression on a data set. |
| Date | 24 June 2007 |
| Source | self-made in Gnuplot. |
| Author | Berland |
| Other versions |
|
[edit] Gnuplot source code
set terminal svg fname "Helvetica" fsize 25
set output "LinearRegression.svg"
set key left
set xtics axis 4.0,0.5
set ytics nomirror 1
set border 2
f(x) = a*x + b
fit f(x) 'randpts' using 1:2 via a,b
set yrange [-0.9:4]
plot 'randpts' with points pointtype 7 pointsize 0.3 title 'Datapoints', \
f(x) with lines linetype 3 linewidth 3 title 'Regression', \
0 with lines linetype -1 notitle
The datafile 'randpts' was made in GNU Octave using the commands
f = fopen('randpts', 'w');
for i=1:200;
x=rand(1);
y=0.2*randn(1) + 3*x + 0.35;
fprintf(f, '%g %g\n', x, y);
end
fclose(f)
(identical code also works in Matlab.)
[edit] Licensing
| This work has been released into the public domain by its author, I, Berland. This applies worldwide. In some countries this may not be legally possible; if so: I, Berland grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
|
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 12:50, 28 October 2008 | 600 × 480 (41 KB) | F l a n k e r (talk | contribs) | Reverted to version as of 10:01, 28 October 2008 | |
| 10:16, 28 October 2008 | 600 × 480 (42 KB) | F l a n k e r (talk | contribs) | Using Helvetica as the font | ||
| 10:13, 28 October 2008 | 600 × 480 (42 KB) | F l a n k e r (talk | contribs) | Using Helvetica as the font | ||
| 10:01, 28 October 2008 | 600 × 480 (41 KB) | F l a n k e r (talk | contribs) | Tring to resolve | ||
| 09:30, 28 October 2008 | 600 × 480 (23 KB) | Wiso (talk | contribs) | {{Information |Description= |Source= |Date= |Author= |Permission= |other_versions= }} | ||
| 20:57, 25 June 2007 | 600 × 480 (20 KB) | Berland (talk | contribs) | {{Information |Description=Illustration of linear regression on a data set. |Source=self-made in Gnuplot. |Date=24 June 2007 |Author= Berland }} ==Gnuplot source code== set terminal svg fname "Helvetic | ||
| 18:56, 24 June 2007 | 600 × 480 (19 KB) | Berland (talk | contribs) | {{Information |Description=Illustration of linear regression on a data set. |Source=self-made in Gnuplot. |Date=24 June 2007 |Author= Berland }} ==Gnuplot source code== set terminal svg fname "Helvetic |
- Edit this file using an external application (See the setup instructions for more information)
File usage on Commons
The following page links to this file:
File usage on other wikis
The following other wikis use this file:
- Usage on cs.wikipedia.org
- Usage on he.wikipedia.org
- Usage on it.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on sv.wikipedia.org
- Usage on tr.wikipedia.org