Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_edauni.wasp
Title produced by softwareUnivariate Explorative Data Analysis
Date of computationMon, 27 Oct 2008 15:18:14 -0600
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Oct/27/t12251423515ve2v6fcqc8k0gf.htm/, Retrieved Sun, 19 May 2024 15:40:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=19634, Retrieved Sun, 19 May 2024 15:40:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact184
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Univariate Explorative Data Analysis] [Investigating Dis...] [2007-10-21 18:26:46] [b9964c45117f7aac638ab9056d451faa]
F    D  [Univariate Explorative Data Analysis] [Q3 univariate model] [2008-10-27 20:45:00] [005293453b571dbccb80b45226e44173]
F    D      [Univariate Explorative Data Analysis] [Univariate model ] [2008-10-27 21:18:14] [b0654df83a8a0e1de3ceb7bf60f0d58f] [Current]
-   P         [Univariate Explorative Data Analysis] [Q7] [2008-11-01 13:08:56] [4396f984ebeab43316cd6baa88a4fd40]
- R             [Univariate Explorative Data Analysis] [Q7] [2008-11-01 13:30:19] [4396f984ebeab43316cd6baa88a4fd40]
Feedback Forum
2008-11-03 11:20:10 [Astrid Sniekers] [reply
De student heeft de oefening niet helemaal correct uitgevoerd, maar hieronder vindt u hoe het wel zou moeten.

Om de validiteit van een model na te gaan moeten de volgende 4 assumptie getest worden.

- Assumptie 1 (are the data autocorrelated? (the model assumes no autocorrelation))
Dit heeft de student helemaal fout gedaan.

http://www.freestatistics.org/blog/date/2008/Nov/01/t1225544996mo7mb2duu8ftdxo.htm

Om autocorrelatie te kunnen aflezen, kijken we niet naar de Run Sequence Plot (eerste grafiek) zoals de student heeft gedaan. Wel kijken we naar de laatste twee grafieken, namelijk: de Lag plot en de Autocorrelation Function.

De rechte lijn in de Lag plot-grafiek heeft een stijgend verloop. De puntenwolk ligt vrij dicht rond de lijn. Dit betekent dat de autocorrelatie redelijk positief is. Als de autocorrelatie nul was, betekent dit dat er geen autocorrelatie is en dat de tijdreeks random zou zijn.

Als we bij het aantal lags (# lags) 36 ingeven, zien we op Autocorrelation Function-grafiek (de laatste grafiek) dat de autocorrelatie positief is.

 De tijdreeks heeft positieve autocorrelatie en is niet random.

- Assumptie 2 (is the random component generated by a fixed distribution? (the model assumes a fixed distribution))
http://www.freestatistics.org/blog/date/2008/Nov/01/t1225544996mo7mb2duu8ftdxo.htm

Aan de hand van de Histogram of x-grafiek kunnen we besluiten dat er een bijna normaalverdeling is.

De Density Plot-grafiek is de afgevlakte versie van de Histogram of x-grafiek. We hebben geen enkele reden om te zeggen dat hier geen normaalverdeling zou zijn. Dit vond de student ook.

 We hebben dus te maken met een gelijke spreiding.

Op de Normal Q-Q Plot-grafiek zien we dat de punten bijna allemaal mooi op een rechte lijn liggen. Dit betekent dat we dicht bij een normale verdeling aanleunen.

- Assumptie 3 (is the deterministic component constant? (the model assumes that the distribution has a fixed location))
http://www.freestatistics.org/blog/date/2008/Nov/01/t1225544996mo7mb2duu8ftdxo.htm

We kijken naar de Run Sequence Plot-grafiek en niet naar de Normal Q-Q Plot zoals de student heeft gedaan. We kijken naar de lange termijn trend. Blijft het niveau constant? We zien een achteruitgang. Dit betekent dat het niveau niet constant blijft. Er is een dalende trend.

- Assumptie 4 (does the random component have a fixed variation? (the model assumes a distribution with fixed variation))
http://www.freestatistics.org/blog/date/2008/Nov/01/t1225544996mo7mb2duu8ftdxo.htm

In de Run Sequence Plot-grafiek kunnen we zien dat er een geen vaste spreiding is.

Yt = c + ct
ct (random component): dit kunnen we niet voorspellen, omdat dit normaal verdeeld is.
c (constante): dit kunnen we wel voorspellen.
Ft = Yt - ct = c = de voorspelling

We gaan het gemiddelde (562109.15) als constante gebruiken. In de R-code vervangen we x door x - 562109.15.

http://www.freestatistics.org/blog/date/2008/Nov/01/t12255462696zxrskt03fha2lq.htm

Het gemiddelde ligt nu rond nul.

==> Besluit: het model is niet geldig, omdat niet aan alle validiteitvoorwaarden is voldaan.
2008-11-03 11:20:55 [Astrid Sniekers] [reply
Q8:

De oefening is niet reproduceerbaar en bijgevolg ongeldig.

Q9:

De student heeft de oefening niet opgelost. Hij had dit analoog aan oefening Q5 kunnen oplossen.

Q10:

Dit is helemaal juist.


Post a new message
Dataseries X:
565464
547344
554788
562325
560854
555332
543599
536662
542722
593530
610763
612613
611324
594167
595454
590865
589379
584428
573100
567456
569028
620735
628884
628232
612117
595404
597141
593408
590072
579799
574205
572775
572942
619567
625809
619916
587625
565742
557274
560576
548854
531673
525919
511038
498662
555362
564591
541657
527070
509846
514258
516922
507561
492622
490243
469357
477580
528379
533590
517945




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=19634&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=19634&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=19634&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132







Descriptive Statistics
# observations60
minimum469357
Q1533110.75
median565027.5
mean562109.15
Q3593438.5
maximum628884

\begin{tabular}{lllllllll}
\hline
Descriptive Statistics \tabularnewline
# observations & 60 \tabularnewline
minimum & 469357 \tabularnewline
Q1 & 533110.75 \tabularnewline
median & 565027.5 \tabularnewline
mean & 562109.15 \tabularnewline
Q3 & 593438.5 \tabularnewline
maximum & 628884 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=19634&T=1

[TABLE]
[ROW][C]Descriptive Statistics[/C][/ROW]
[ROW][C]# observations[/C][C]60[/C][/ROW]
[ROW][C]minimum[/C][C]469357[/C][/ROW]
[ROW][C]Q1[/C][C]533110.75[/C][/ROW]
[ROW][C]median[/C][C]565027.5[/C][/ROW]
[ROW][C]mean[/C][C]562109.15[/C][/ROW]
[ROW][C]Q3[/C][C]593438.5[/C][/ROW]
[ROW][C]maximum[/C][C]628884[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=19634&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=19634&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Descriptive Statistics
# observations60
minimum469357
Q1533110.75
median565027.5
mean562109.15
Q3593438.5
maximum628884



Parameters (Session):
par1 = 0 ; par2 = 0 ;
Parameters (R input):
par1 = 0 ; par2 = 0 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
x <- as.ts(x)
library(lattice)
bitmap(file='pic1.png')
plot(x,type='l',main='Run Sequence Plot',xlab='time or index',ylab='value')
grid()
dev.off()
bitmap(file='pic2.png')
hist(x)
grid()
dev.off()
bitmap(file='pic3.png')
if (par1 > 0)
{
densityplot(~x,col='black',main=paste('Density Plot bw = ',par1),bw=par1)
} else {
densityplot(~x,col='black',main='Density Plot')
}
dev.off()
bitmap(file='pic4.png')
qqnorm(x)
grid()
dev.off()
if (par2 > 0)
{
bitmap(file='lagplot.png')
dum <- cbind(lag(x,k=1),x)
dum
dum1 <- dum[2:length(x),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Lag plot, lowess, and regression line'))
lines(lowess(z))
abline(lm(z))
dev.off()
bitmap(file='pic5.png')
acf(x,lag.max=par2,main='Autocorrelation Function')
grid()
dev.off()
}
summary(x)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Descriptive Statistics',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'# observations',header=TRUE)
a<-table.element(a,length(x))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'minimum',header=TRUE)
a<-table.element(a,min(x))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Q1',header=TRUE)
a<-table.element(a,quantile(x,0.25))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'median',header=TRUE)
a<-table.element(a,median(x))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,mean(x))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Q3',header=TRUE)
a<-table.element(a,quantile(x,0.75))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'maximum',header=TRUE)
a<-table.element(a,max(x))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')