Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationThu, 12 May 2011 18:19:32 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/May/12/t1305224250htei9xndxd06ge7.htm/, Retrieved Fri, 10 May 2024 15:24:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=121523, Retrieved Fri, 10 May 2024 15:24:07 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsKDGP2W12
Estimated Impact156
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Iko opgave 6 bis ...] [2011-05-12 18:19:32] [93d78dde8d64c5a73537ad1fcc88d508] [Current]
Feedback Forum

Post a new message
Dataseries X:
5939520,00
89948768,00
80953652,00
85942882,00
8944937,00
82975432,00
24940816,00
21973899,00
37950221,00
45949881,00
85950373,00
48960313,00
81954506,00
24960419,00
65973338,00
22950513,00
54963528,00
90995659,00
91967517,00
28999053,00
96990529,00
38979852,00
81496957,00
74982424,00
70976192,00
90990000,00
12998850,00
92986156,00
67994976,00
91022206,00
87992489,00
421022698,00
11018942,00
79100042,00
65996442,00
51000620,00
12996871,00
44994249,00
99996135,00
91977037,00
63974211,00
15998036,00
65974265,00
33984410,00
45939098,00
67935827,00
66921032,00
89911836,00
71890975,00
72880342,00
28871286,00
41844334,00
82847667,00
24871401,00
3867451,00
99896846,00
41890361,00
45884264,00
69884586,00
95896400,00
39904491,00
81900399,00
27909863,00
88900470,00
89917101,00
2945005,00
4934411,00
61957264,00
31946515,00
3938309,00
52933321,00
21947613,00




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121523&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]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121523&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=121523&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'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.563825-4.75095e-06
20.0982630.8280.205228
3-0.055133-0.46460.321833
40.1488691.25440.106907
5-0.232075-1.95550.02723
60.0746110.62870.265786
70.0303990.25610.399288
80.0016820.01420.494366
90.1146730.96620.1686
10-0.222758-1.8770.032314
110.2062261.73770.043301
12-0.171531-1.44530.07638
130.0957730.8070.211182
14-0.047707-0.4020.344451
150.0733480.6180.269263
16-0.097934-0.82520.206009
170.1110220.93550.176355
18-0.079245-0.66770.253234

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.563825 & -4.7509 & 5e-06 \tabularnewline
2 & 0.098263 & 0.828 & 0.205228 \tabularnewline
3 & -0.055133 & -0.4646 & 0.321833 \tabularnewline
4 & 0.148869 & 1.2544 & 0.106907 \tabularnewline
5 & -0.232075 & -1.9555 & 0.02723 \tabularnewline
6 & 0.074611 & 0.6287 & 0.265786 \tabularnewline
7 & 0.030399 & 0.2561 & 0.399288 \tabularnewline
8 & 0.001682 & 0.0142 & 0.494366 \tabularnewline
9 & 0.114673 & 0.9662 & 0.1686 \tabularnewline
10 & -0.222758 & -1.877 & 0.032314 \tabularnewline
11 & 0.206226 & 1.7377 & 0.043301 \tabularnewline
12 & -0.171531 & -1.4453 & 0.07638 \tabularnewline
13 & 0.095773 & 0.807 & 0.211182 \tabularnewline
14 & -0.047707 & -0.402 & 0.344451 \tabularnewline
15 & 0.073348 & 0.618 & 0.269263 \tabularnewline
16 & -0.097934 & -0.8252 & 0.206009 \tabularnewline
17 & 0.111022 & 0.9355 & 0.176355 \tabularnewline
18 & -0.079245 & -0.6677 & 0.253234 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121523&T=1

[TABLE]
[ROW][C]Autocorrelation Function[/C][/ROW]
[ROW][C]Time lag k[/C][C]ACF(k)[/C][C]T-STAT[/C][C]P-value[/C][/ROW]
[ROW][C]1[/C][C]-0.563825[/C][C]-4.7509[/C][C]5e-06[/C][/ROW]
[ROW][C]2[/C][C]0.098263[/C][C]0.828[/C][C]0.205228[/C][/ROW]
[ROW][C]3[/C][C]-0.055133[/C][C]-0.4646[/C][C]0.321833[/C][/ROW]
[ROW][C]4[/C][C]0.148869[/C][C]1.2544[/C][C]0.106907[/C][/ROW]
[ROW][C]5[/C][C]-0.232075[/C][C]-1.9555[/C][C]0.02723[/C][/ROW]
[ROW][C]6[/C][C]0.074611[/C][C]0.6287[/C][C]0.265786[/C][/ROW]
[ROW][C]7[/C][C]0.030399[/C][C]0.2561[/C][C]0.399288[/C][/ROW]
[ROW][C]8[/C][C]0.001682[/C][C]0.0142[/C][C]0.494366[/C][/ROW]
[ROW][C]9[/C][C]0.114673[/C][C]0.9662[/C][C]0.1686[/C][/ROW]
[ROW][C]10[/C][C]-0.222758[/C][C]-1.877[/C][C]0.032314[/C][/ROW]
[ROW][C]11[/C][C]0.206226[/C][C]1.7377[/C][C]0.043301[/C][/ROW]
[ROW][C]12[/C][C]-0.171531[/C][C]-1.4453[/C][C]0.07638[/C][/ROW]
[ROW][C]13[/C][C]0.095773[/C][C]0.807[/C][C]0.211182[/C][/ROW]
[ROW][C]14[/C][C]-0.047707[/C][C]-0.402[/C][C]0.344451[/C][/ROW]
[ROW][C]15[/C][C]0.073348[/C][C]0.618[/C][C]0.269263[/C][/ROW]
[ROW][C]16[/C][C]-0.097934[/C][C]-0.8252[/C][C]0.206009[/C][/ROW]
[ROW][C]17[/C][C]0.111022[/C][C]0.9355[/C][C]0.176355[/C][/ROW]
[ROW][C]18[/C][C]-0.079245[/C][C]-0.6677[/C][C]0.253234[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121523&T=1

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

As an alternative you can also use a QR Code:  

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

Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.563825-4.75095e-06
20.0982630.8280.205228
3-0.055133-0.46460.321833
40.1488691.25440.106907
5-0.232075-1.95550.02723
60.0746110.62870.265786
70.0303990.25610.399288
80.0016820.01420.494366
90.1146730.96620.1686
10-0.222758-1.8770.032314
110.2062261.73770.043301
12-0.171531-1.44530.07638
130.0957730.8070.211182
14-0.047707-0.4020.344451
150.0733480.6180.269263
16-0.097934-0.82520.206009
170.1110220.93550.176355
18-0.079245-0.66770.253234







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.563825-4.75095e-06
2-0.321998-2.71320.004178
3-0.267332-2.25260.013689
40.0062010.05220.479239
5-0.189983-1.60080.056928
6-0.265498-2.23710.014209
7-0.203031-1.71080.045745
8-0.164049-1.38230.085606
90.1724511.45310.075302
10-0.098309-0.82840.205119
11-0.00122-0.01030.495915
12-0.136651-1.15140.126706
13-0.098135-0.82690.205531
140.0530230.44680.328196
150.032310.27220.393111
16-0.050006-0.42140.337384
17-0.025436-0.21430.415453
18-0.056296-0.47440.31835

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.563825 & -4.7509 & 5e-06 \tabularnewline
2 & -0.321998 & -2.7132 & 0.004178 \tabularnewline
3 & -0.267332 & -2.2526 & 0.013689 \tabularnewline
4 & 0.006201 & 0.0522 & 0.479239 \tabularnewline
5 & -0.189983 & -1.6008 & 0.056928 \tabularnewline
6 & -0.265498 & -2.2371 & 0.014209 \tabularnewline
7 & -0.203031 & -1.7108 & 0.045745 \tabularnewline
8 & -0.164049 & -1.3823 & 0.085606 \tabularnewline
9 & 0.172451 & 1.4531 & 0.075302 \tabularnewline
10 & -0.098309 & -0.8284 & 0.205119 \tabularnewline
11 & -0.00122 & -0.0103 & 0.495915 \tabularnewline
12 & -0.136651 & -1.1514 & 0.126706 \tabularnewline
13 & -0.098135 & -0.8269 & 0.205531 \tabularnewline
14 & 0.053023 & 0.4468 & 0.328196 \tabularnewline
15 & 0.03231 & 0.2722 & 0.393111 \tabularnewline
16 & -0.050006 & -0.4214 & 0.337384 \tabularnewline
17 & -0.025436 & -0.2143 & 0.415453 \tabularnewline
18 & -0.056296 & -0.4744 & 0.31835 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=121523&T=2

[TABLE]
[ROW][C]Partial Autocorrelation Function[/C][/ROW]
[ROW][C]Time lag k[/C][C]PACF(k)[/C][C]T-STAT[/C][C]P-value[/C][/ROW]
[ROW][C]1[/C][C]-0.563825[/C][C]-4.7509[/C][C]5e-06[/C][/ROW]
[ROW][C]2[/C][C]-0.321998[/C][C]-2.7132[/C][C]0.004178[/C][/ROW]
[ROW][C]3[/C][C]-0.267332[/C][C]-2.2526[/C][C]0.013689[/C][/ROW]
[ROW][C]4[/C][C]0.006201[/C][C]0.0522[/C][C]0.479239[/C][/ROW]
[ROW][C]5[/C][C]-0.189983[/C][C]-1.6008[/C][C]0.056928[/C][/ROW]
[ROW][C]6[/C][C]-0.265498[/C][C]-2.2371[/C][C]0.014209[/C][/ROW]
[ROW][C]7[/C][C]-0.203031[/C][C]-1.7108[/C][C]0.045745[/C][/ROW]
[ROW][C]8[/C][C]-0.164049[/C][C]-1.3823[/C][C]0.085606[/C][/ROW]
[ROW][C]9[/C][C]0.172451[/C][C]1.4531[/C][C]0.075302[/C][/ROW]
[ROW][C]10[/C][C]-0.098309[/C][C]-0.8284[/C][C]0.205119[/C][/ROW]
[ROW][C]11[/C][C]-0.00122[/C][C]-0.0103[/C][C]0.495915[/C][/ROW]
[ROW][C]12[/C][C]-0.136651[/C][C]-1.1514[/C][C]0.126706[/C][/ROW]
[ROW][C]13[/C][C]-0.098135[/C][C]-0.8269[/C][C]0.205531[/C][/ROW]
[ROW][C]14[/C][C]0.053023[/C][C]0.4468[/C][C]0.328196[/C][/ROW]
[ROW][C]15[/C][C]0.03231[/C][C]0.2722[/C][C]0.393111[/C][/ROW]
[ROW][C]16[/C][C]-0.050006[/C][C]-0.4214[/C][C]0.337384[/C][/ROW]
[ROW][C]17[/C][C]-0.025436[/C][C]-0.2143[/C][C]0.415453[/C][/ROW]
[ROW][C]18[/C][C]-0.056296[/C][C]-0.4744[/C][C]0.31835[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=121523&T=2

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

As an alternative you can also use a QR Code:  

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

Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.563825-4.75095e-06
2-0.321998-2.71320.004178
3-0.267332-2.25260.013689
40.0062010.05220.479239
5-0.189983-1.60080.056928
6-0.265498-2.23710.014209
7-0.203031-1.71080.045745
8-0.164049-1.38230.085606
90.1724511.45310.075302
10-0.098309-0.82840.205119
11-0.00122-0.01030.495915
12-0.136651-1.15140.126706
13-0.098135-0.82690.205531
140.0530230.44680.328196
150.032310.27220.393111
16-0.050006-0.42140.337384
17-0.025436-0.21430.415453
18-0.056296-0.47440.31835



Parameters (Session):
par1 = Default ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = Default ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = ;
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')