Oorspronkelijk bestand(SVG-bestand, nominaal 600 × 480 pixels, bestandsgrootte: 41 kB)


Beschrijving

Beschrijving Illustration of linear regression on a data set.
Datum
Bron self-made in Gnuplot.
Auteur Berland
Andere versies

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.)

Licentie

Public domain Dit werk vrijgegeven in het publieke domein door de auteur, I, Berland. Dit is wereldwijd van toepassing.
In sommige landen is dit wettelijk niet mogelijk; in die gevallen geldt:
I, Berland staat iedereen toe dit werk voor eender welk doel te gebruiken, zonder enige voorwaarden, tenzij zulke voorwaarden door de wet worden voorgeschreven.

Bijschriften

Beschrijf in één regel wat dit bestand voorstelt

Items getoond in dit bestand

beeldt af

Bestandsgeschiedenis

Klik op een datum/tijd om het bestand te zien zoals het destijds was.

Datum/tijdMiniatuurAfmetingenGebruikerOpmerking
huidige versie28 okt 2008 14:50Miniatuurafbeelding voor de versie van 28 okt 2008 14:50600 × 480 (41 kB)F l a n k e rReverted to version as of 10:01, 28 October 2008
28 okt 2008 12:16Miniatuurafbeelding voor de versie van 28 okt 2008 12:16600 × 480 (42 kB)F l a n k e rUsing Helvetica as the font
28 okt 2008 12:13Miniatuurafbeelding voor de versie van 28 okt 2008 12:13600 × 480 (42 kB)F l a n k e rUsing Helvetica as the font
28 okt 2008 12:01Miniatuurafbeelding voor de versie van 28 okt 2008 12:01600 × 480 (41 kB)F l a n k e rTring to resolve
28 okt 2008 11:30Miniatuurafbeelding voor de versie van 28 okt 2008 11:30600 × 480 (23 kB)Wiso{{Information |Description= |Source= |Date= |Author= |Permission= |other_versions= }}
25 jun 2007 22:57Miniatuurafbeelding voor de versie van 25 jun 2007 22:57600 × 480 (20 kB)Berland{{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
24 jun 2007 20:56Miniatuurafbeelding voor de versie van 24 jun 2007 20:56600 × 480 (19 kB)Berland{{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

Dit bestand wordt op de volgende pagina gebruikt:

Globaal bestandsgebruik

De volgende andere wiki's gebruiken dit bestand: