Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationWed, 12 Dec 2012 07:37:37 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/12/t13553159036a640wxpstja9le.htm/, Retrieved Mon, 29 Apr 2024 14:13:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=198848, Retrieved Mon, 29 Apr 2024 14:13:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact76
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [(Partial) Autocorrelation Function] [] [2012-11-12 18:16:45] [585224d56fe3b0d46e81386c9c74be42]
- R  D    [(Partial) Autocorrelation Function] [Paper Autocorrela...] [2012-12-12 12:37:37] [c63d55528b56cf8bb48e0b5d1a959d8e] [Current]
Feedback Forum

Post a new message
Dataseries X:
68.897
38.683
44.720
39.525
45.315
50.380
40.600
36.279
42.438
38.064
31.879
11.379
70.249
39.253
47.060
41.697
38.708
49.267
39.018
32.228
40.870
39.383
34.571
12.066
70.938
34.077
45.409
40.809
37.013
44.953
37.848
32.745
43.412
34.931
33.008
8.620
68.906
39.556
50.669
36.432
40.891
48.428
36.222
33.425
39.401
37.967
34.801
12.657
69.116
41.519
51.321
38.529
41.547
52.073
38.401
40.898
40.439
41.888
37.898
8.771
68.184
50.530
47.221
41.756
45.633
48.138
39.486
39.341
41.117
41.629
29.722
7.054
56.676
34.870
35.117
30.169
30.936
35.699
33.228
27.733
33.666
35.429
27.438
8.170
63.410
38.040
45.389
37.353
37.024
50.957
37.994
36.454
46.080
43.373
37.395
10.963
76.058
50.179
57.452
47.568
50.050
50.856
41.992
39.284
44.521
43.832
41.153
17.100




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\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 & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=198848&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=198848&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=198848&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'Herman Ole Andreas Wold' @ wold.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.202768-2.10720.018706
20.0588350.61140.271101
3-0.024975-0.25950.397854
40.1331181.38340.084697
50.0744920.77410.22027
6-0.210335-2.18590.015492
70.0375130.38980.34871
80.0975661.01390.15644
9-0.083826-0.87110.192803
10-0.032596-0.33870.36773
11-0.340307-3.53660.000299
120.7797658.10360
13-0.246794-2.56480.005849
14-0.027426-0.2850.388086
15-0.112804-1.17230.121829
160.0296240.30790.379388
17-0.010072-0.10470.458415
18-0.260841-2.71070.003906
19-0.034401-0.35750.360707
200.029260.30410.380825

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.202768 & -2.1072 & 0.018706 \tabularnewline
2 & 0.058835 & 0.6114 & 0.271101 \tabularnewline
3 & -0.024975 & -0.2595 & 0.397854 \tabularnewline
4 & 0.133118 & 1.3834 & 0.084697 \tabularnewline
5 & 0.074492 & 0.7741 & 0.22027 \tabularnewline
6 & -0.210335 & -2.1859 & 0.015492 \tabularnewline
7 & 0.037513 & 0.3898 & 0.34871 \tabularnewline
8 & 0.097566 & 1.0139 & 0.15644 \tabularnewline
9 & -0.083826 & -0.8711 & 0.192803 \tabularnewline
10 & -0.032596 & -0.3387 & 0.36773 \tabularnewline
11 & -0.340307 & -3.5366 & 0.000299 \tabularnewline
12 & 0.779765 & 8.1036 & 0 \tabularnewline
13 & -0.246794 & -2.5648 & 0.005849 \tabularnewline
14 & -0.027426 & -0.285 & 0.388086 \tabularnewline
15 & -0.112804 & -1.1723 & 0.121829 \tabularnewline
16 & 0.029624 & 0.3079 & 0.379388 \tabularnewline
17 & -0.010072 & -0.1047 & 0.458415 \tabularnewline
18 & -0.260841 & -2.7107 & 0.003906 \tabularnewline
19 & -0.034401 & -0.3575 & 0.360707 \tabularnewline
20 & 0.02926 & 0.3041 & 0.380825 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=198848&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.202768[/C][C]-2.1072[/C][C]0.018706[/C][/ROW]
[ROW][C]2[/C][C]0.058835[/C][C]0.6114[/C][C]0.271101[/C][/ROW]
[ROW][C]3[/C][C]-0.024975[/C][C]-0.2595[/C][C]0.397854[/C][/ROW]
[ROW][C]4[/C][C]0.133118[/C][C]1.3834[/C][C]0.084697[/C][/ROW]
[ROW][C]5[/C][C]0.074492[/C][C]0.7741[/C][C]0.22027[/C][/ROW]
[ROW][C]6[/C][C]-0.210335[/C][C]-2.1859[/C][C]0.015492[/C][/ROW]
[ROW][C]7[/C][C]0.037513[/C][C]0.3898[/C][C]0.34871[/C][/ROW]
[ROW][C]8[/C][C]0.097566[/C][C]1.0139[/C][C]0.15644[/C][/ROW]
[ROW][C]9[/C][C]-0.083826[/C][C]-0.8711[/C][C]0.192803[/C][/ROW]
[ROW][C]10[/C][C]-0.032596[/C][C]-0.3387[/C][C]0.36773[/C][/ROW]
[ROW][C]11[/C][C]-0.340307[/C][C]-3.5366[/C][C]0.000299[/C][/ROW]
[ROW][C]12[/C][C]0.779765[/C][C]8.1036[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.246794[/C][C]-2.5648[/C][C]0.005849[/C][/ROW]
[ROW][C]14[/C][C]-0.027426[/C][C]-0.285[/C][C]0.388086[/C][/ROW]
[ROW][C]15[/C][C]-0.112804[/C][C]-1.1723[/C][C]0.121829[/C][/ROW]
[ROW][C]16[/C][C]0.029624[/C][C]0.3079[/C][C]0.379388[/C][/ROW]
[ROW][C]17[/C][C]-0.010072[/C][C]-0.1047[/C][C]0.458415[/C][/ROW]
[ROW][C]18[/C][C]-0.260841[/C][C]-2.7107[/C][C]0.003906[/C][/ROW]
[ROW][C]19[/C][C]-0.034401[/C][C]-0.3575[/C][C]0.360707[/C][/ROW]
[ROW][C]20[/C][C]0.02926[/C][C]0.3041[/C][C]0.380825[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=198848&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=198848&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.202768-2.10720.018706
20.0588350.61140.271101
3-0.024975-0.25950.397854
40.1331181.38340.084697
50.0744920.77410.22027
6-0.210335-2.18590.015492
70.0375130.38980.34871
80.0975661.01390.15644
9-0.083826-0.87110.192803
10-0.032596-0.33870.36773
11-0.340307-3.53660.000299
120.7797658.10360
13-0.246794-2.56480.005849
14-0.027426-0.2850.388086
15-0.112804-1.17230.121829
160.0296240.30790.379388
17-0.010072-0.10470.458415
18-0.260841-2.71070.003906
19-0.034401-0.35750.360707
200.029260.30410.380825







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.202768-2.10720.018706
20.0184790.1920.424034
3-0.00993-0.10320.459
40.1305921.35720.088781
50.1344661.39740.082577
6-0.191943-1.99470.024296
7-0.054-0.56120.287917
80.1070521.11250.134193
9-0.078415-0.81490.208457
10-0.028911-0.30050.382203
11-0.3478-3.61440.000229
120.7651887.95210
13-0.252265-2.62160.005007
14-0.243951-2.53520.006335
15-0.167571-1.74140.042226
16-0.182192-1.89340.030491
17-0.178801-1.85820.032935
180.0118970.12360.450917
19-0.01217-0.12650.449797
20-0.121156-1.25910.105357

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.202768 & -2.1072 & 0.018706 \tabularnewline
2 & 0.018479 & 0.192 & 0.424034 \tabularnewline
3 & -0.00993 & -0.1032 & 0.459 \tabularnewline
4 & 0.130592 & 1.3572 & 0.088781 \tabularnewline
5 & 0.134466 & 1.3974 & 0.082577 \tabularnewline
6 & -0.191943 & -1.9947 & 0.024296 \tabularnewline
7 & -0.054 & -0.5612 & 0.287917 \tabularnewline
8 & 0.107052 & 1.1125 & 0.134193 \tabularnewline
9 & -0.078415 & -0.8149 & 0.208457 \tabularnewline
10 & -0.028911 & -0.3005 & 0.382203 \tabularnewline
11 & -0.3478 & -3.6144 & 0.000229 \tabularnewline
12 & 0.765188 & 7.9521 & 0 \tabularnewline
13 & -0.252265 & -2.6216 & 0.005007 \tabularnewline
14 & -0.243951 & -2.5352 & 0.006335 \tabularnewline
15 & -0.167571 & -1.7414 & 0.042226 \tabularnewline
16 & -0.182192 & -1.8934 & 0.030491 \tabularnewline
17 & -0.178801 & -1.8582 & 0.032935 \tabularnewline
18 & 0.011897 & 0.1236 & 0.450917 \tabularnewline
19 & -0.01217 & -0.1265 & 0.449797 \tabularnewline
20 & -0.121156 & -1.2591 & 0.105357 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=198848&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.202768[/C][C]-2.1072[/C][C]0.018706[/C][/ROW]
[ROW][C]2[/C][C]0.018479[/C][C]0.192[/C][C]0.424034[/C][/ROW]
[ROW][C]3[/C][C]-0.00993[/C][C]-0.1032[/C][C]0.459[/C][/ROW]
[ROW][C]4[/C][C]0.130592[/C][C]1.3572[/C][C]0.088781[/C][/ROW]
[ROW][C]5[/C][C]0.134466[/C][C]1.3974[/C][C]0.082577[/C][/ROW]
[ROW][C]6[/C][C]-0.191943[/C][C]-1.9947[/C][C]0.024296[/C][/ROW]
[ROW][C]7[/C][C]-0.054[/C][C]-0.5612[/C][C]0.287917[/C][/ROW]
[ROW][C]8[/C][C]0.107052[/C][C]1.1125[/C][C]0.134193[/C][/ROW]
[ROW][C]9[/C][C]-0.078415[/C][C]-0.8149[/C][C]0.208457[/C][/ROW]
[ROW][C]10[/C][C]-0.028911[/C][C]-0.3005[/C][C]0.382203[/C][/ROW]
[ROW][C]11[/C][C]-0.3478[/C][C]-3.6144[/C][C]0.000229[/C][/ROW]
[ROW][C]12[/C][C]0.765188[/C][C]7.9521[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.252265[/C][C]-2.6216[/C][C]0.005007[/C][/ROW]
[ROW][C]14[/C][C]-0.243951[/C][C]-2.5352[/C][C]0.006335[/C][/ROW]
[ROW][C]15[/C][C]-0.167571[/C][C]-1.7414[/C][C]0.042226[/C][/ROW]
[ROW][C]16[/C][C]-0.182192[/C][C]-1.8934[/C][C]0.030491[/C][/ROW]
[ROW][C]17[/C][C]-0.178801[/C][C]-1.8582[/C][C]0.032935[/C][/ROW]
[ROW][C]18[/C][C]0.011897[/C][C]0.1236[/C][C]0.450917[/C][/ROW]
[ROW][C]19[/C][C]-0.01217[/C][C]-0.1265[/C][C]0.449797[/C][/ROW]
[ROW][C]20[/C][C]-0.121156[/C][C]-1.2591[/C][C]0.105357[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=198848&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=198848&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.202768-2.10720.018706
20.0184790.1920.424034
3-0.00993-0.10320.459
40.1305921.35720.088781
50.1344661.39740.082577
6-0.191943-1.99470.024296
7-0.054-0.56120.287917
80.1070521.11250.134193
9-0.078415-0.81490.208457
10-0.028911-0.30050.382203
11-0.3478-3.61440.000229
120.7651887.95210
13-0.252265-2.62160.005007
14-0.243951-2.53520.006335
15-0.167571-1.74140.042226
16-0.182192-1.89340.030491
17-0.178801-1.85820.032935
180.0118970.12360.450917
19-0.01217-0.12650.449797
20-0.121156-1.25910.105357



Parameters (Session):
par1 = Default ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = Default ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = ;
R code (references can be found in the software module):
par8 <- ''
par7 <- '0.95'
par6 <- 'White Noise'
par5 <- '12'
par4 <- '2'
par3 <- '1'
par2 <- '1'
par1 <- 'Default'
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')