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, 21 Dec 2016 11:41:30 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Dec/21/t1482316899kdk0h9vh8fuhk63.htm/, Retrieved Mon, 06 May 2024 14:11:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=302119, Retrieved Mon, 06 May 2024 14:11:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact60
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2016-12-21 10:41:30] [57f1f1af0ba442a9c0352eeef9ded060] [Current]
Feedback Forum

Post a new message
Dataseries X:
1.894
1.757
3.582
5.321
5.561
5.907
4.944
4.966
3.258
1.964
1.743
1.262
2.086
1.793
3.548
5.672
6.084
4.914
4.990
5.139
3.218
2.179
2.238
1.442
2.205
2.025
3.531
4.977
7.998
4.880
5.231
5.202
3.303
2.683
2.202
1.376
2.422
1.997
3.163
5.964
5.657
6.415
6.208
4.500
2.939
2.702
2.090
1.504
2.549
1.931
3.013
6.204
5.788
5.611
5.594
4.647
3.490
2.487
1.992
1.507
2.306
2.002
3.075
5.331
5.589
5.813
4.876
4.665
3.601
2.192
2.111
1.580
2.288
1.993
3.228
5.000
5.480
5.770
4.962
4.685
3.607
2.222
2.467
1.594
2.228
1.910
3.157
4.809
6.249
4.607
4.975
4.784
3.028
2.461
2.218
1.351
2.070
1.887
3.024
4.596
6.398
4.459
5.382
4.359
2.687
2.249
2.154
1.169
2.429
1.762
2.846
5.627
5.749
4.502
5.720
4.403
2.867
2.635
2.059
1.511
2.359
1.741
2.917
6.249
5.760
6.250
5.134
4.831
3.695
2.462
2.146
1.579




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302119&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=302119&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302119&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.324755-3.55750.000269
2-0.033174-0.36340.35847
30.2218592.43030.008282
4-0.058108-0.63650.262818
50.0444340.48680.313661
60.1538421.68530.047269
7-0.09185-1.00620.158179
80.0320650.35130.363006
90.149581.63860.051961
100.0185040.20270.419855
110.0132610.14530.44237
12-0.171769-1.88160.031154
130.1270251.39150.083326
140.2087162.28640.011993
15-0.115876-1.26940.103386
16-0.08371-0.9170.180493
170.1265221.3860.084161
18-0.058917-0.64540.259949
19-0.058158-0.63710.262642
200.1185831.2990.098216
21-0.079943-0.87570.191462

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.324755 & -3.5575 & 0.000269 \tabularnewline
2 & -0.033174 & -0.3634 & 0.35847 \tabularnewline
3 & 0.221859 & 2.4303 & 0.008282 \tabularnewline
4 & -0.058108 & -0.6365 & 0.262818 \tabularnewline
5 & 0.044434 & 0.4868 & 0.313661 \tabularnewline
6 & 0.153842 & 1.6853 & 0.047269 \tabularnewline
7 & -0.09185 & -1.0062 & 0.158179 \tabularnewline
8 & 0.032065 & 0.3513 & 0.363006 \tabularnewline
9 & 0.14958 & 1.6386 & 0.051961 \tabularnewline
10 & 0.018504 & 0.2027 & 0.419855 \tabularnewline
11 & 0.013261 & 0.1453 & 0.44237 \tabularnewline
12 & -0.171769 & -1.8816 & 0.031154 \tabularnewline
13 & 0.127025 & 1.3915 & 0.083326 \tabularnewline
14 & 0.208716 & 2.2864 & 0.011993 \tabularnewline
15 & -0.115876 & -1.2694 & 0.103386 \tabularnewline
16 & -0.08371 & -0.917 & 0.180493 \tabularnewline
17 & 0.126522 & 1.386 & 0.084161 \tabularnewline
18 & -0.058917 & -0.6454 & 0.259949 \tabularnewline
19 & -0.058158 & -0.6371 & 0.262642 \tabularnewline
20 & 0.118583 & 1.299 & 0.098216 \tabularnewline
21 & -0.079943 & -0.8757 & 0.191462 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302119&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.324755[/C][C]-3.5575[/C][C]0.000269[/C][/ROW]
[ROW][C]2[/C][C]-0.033174[/C][C]-0.3634[/C][C]0.35847[/C][/ROW]
[ROW][C]3[/C][C]0.221859[/C][C]2.4303[/C][C]0.008282[/C][/ROW]
[ROW][C]4[/C][C]-0.058108[/C][C]-0.6365[/C][C]0.262818[/C][/ROW]
[ROW][C]5[/C][C]0.044434[/C][C]0.4868[/C][C]0.313661[/C][/ROW]
[ROW][C]6[/C][C]0.153842[/C][C]1.6853[/C][C]0.047269[/C][/ROW]
[ROW][C]7[/C][C]-0.09185[/C][C]-1.0062[/C][C]0.158179[/C][/ROW]
[ROW][C]8[/C][C]0.032065[/C][C]0.3513[/C][C]0.363006[/C][/ROW]
[ROW][C]9[/C][C]0.14958[/C][C]1.6386[/C][C]0.051961[/C][/ROW]
[ROW][C]10[/C][C]0.018504[/C][C]0.2027[/C][C]0.419855[/C][/ROW]
[ROW][C]11[/C][C]0.013261[/C][C]0.1453[/C][C]0.44237[/C][/ROW]
[ROW][C]12[/C][C]-0.171769[/C][C]-1.8816[/C][C]0.031154[/C][/ROW]
[ROW][C]13[/C][C]0.127025[/C][C]1.3915[/C][C]0.083326[/C][/ROW]
[ROW][C]14[/C][C]0.208716[/C][C]2.2864[/C][C]0.011993[/C][/ROW]
[ROW][C]15[/C][C]-0.115876[/C][C]-1.2694[/C][C]0.103386[/C][/ROW]
[ROW][C]16[/C][C]-0.08371[/C][C]-0.917[/C][C]0.180493[/C][/ROW]
[ROW][C]17[/C][C]0.126522[/C][C]1.386[/C][C]0.084161[/C][/ROW]
[ROW][C]18[/C][C]-0.058917[/C][C]-0.6454[/C][C]0.259949[/C][/ROW]
[ROW][C]19[/C][C]-0.058158[/C][C]-0.6371[/C][C]0.262642[/C][/ROW]
[ROW][C]20[/C][C]0.118583[/C][C]1.299[/C][C]0.098216[/C][/ROW]
[ROW][C]21[/C][C]-0.079943[/C][C]-0.8757[/C][C]0.191462[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302119&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302119&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.324755-3.55750.000269
2-0.033174-0.36340.35847
30.2218592.43030.008282
4-0.058108-0.63650.262818
50.0444340.48680.313661
60.1538421.68530.047269
7-0.09185-1.00620.158179
80.0320650.35130.363006
90.149581.63860.051961
100.0185040.20270.419855
110.0132610.14530.44237
12-0.171769-1.88160.031154
130.1270251.39150.083326
140.2087162.28640.011993
15-0.115876-1.26940.103386
16-0.08371-0.9170.180493
170.1265221.3860.084161
18-0.058917-0.64540.259949
19-0.058158-0.63710.262642
200.1185831.2990.098216
21-0.079943-0.87570.191462







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.324755-3.55750.000269
2-0.154986-1.69780.04607
30.1822161.99610.024095
40.0890270.97520.1657
50.091751.00510.158442
60.1801561.97350.025368
70.0203490.22290.411993
8-0.009608-0.10530.458176
90.1029311.12760.13088
100.1360691.49060.06935
110.0726050.79530.213992
12-0.266037-2.91430.002127
13-0.080664-0.88360.189333
140.2535262.77720.003182
150.1284461.40710.080998
16-0.181801-1.99150.024347
17-0.078404-0.85890.196062
180.0290980.31880.375235
19-0.133628-1.46380.072928
20-0.047062-0.51550.303562
210.1253451.37310.086142

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.324755 & -3.5575 & 0.000269 \tabularnewline
2 & -0.154986 & -1.6978 & 0.04607 \tabularnewline
3 & 0.182216 & 1.9961 & 0.024095 \tabularnewline
4 & 0.089027 & 0.9752 & 0.1657 \tabularnewline
5 & 0.09175 & 1.0051 & 0.158442 \tabularnewline
6 & 0.180156 & 1.9735 & 0.025368 \tabularnewline
7 & 0.020349 & 0.2229 & 0.411993 \tabularnewline
8 & -0.009608 & -0.1053 & 0.458176 \tabularnewline
9 & 0.102931 & 1.1276 & 0.13088 \tabularnewline
10 & 0.136069 & 1.4906 & 0.06935 \tabularnewline
11 & 0.072605 & 0.7953 & 0.213992 \tabularnewline
12 & -0.266037 & -2.9143 & 0.002127 \tabularnewline
13 & -0.080664 & -0.8836 & 0.189333 \tabularnewline
14 & 0.253526 & 2.7772 & 0.003182 \tabularnewline
15 & 0.128446 & 1.4071 & 0.080998 \tabularnewline
16 & -0.181801 & -1.9915 & 0.024347 \tabularnewline
17 & -0.078404 & -0.8589 & 0.196062 \tabularnewline
18 & 0.029098 & 0.3188 & 0.375235 \tabularnewline
19 & -0.133628 & -1.4638 & 0.072928 \tabularnewline
20 & -0.047062 & -0.5155 & 0.303562 \tabularnewline
21 & 0.125345 & 1.3731 & 0.086142 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302119&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.324755[/C][C]-3.5575[/C][C]0.000269[/C][/ROW]
[ROW][C]2[/C][C]-0.154986[/C][C]-1.6978[/C][C]0.04607[/C][/ROW]
[ROW][C]3[/C][C]0.182216[/C][C]1.9961[/C][C]0.024095[/C][/ROW]
[ROW][C]4[/C][C]0.089027[/C][C]0.9752[/C][C]0.1657[/C][/ROW]
[ROW][C]5[/C][C]0.09175[/C][C]1.0051[/C][C]0.158442[/C][/ROW]
[ROW][C]6[/C][C]0.180156[/C][C]1.9735[/C][C]0.025368[/C][/ROW]
[ROW][C]7[/C][C]0.020349[/C][C]0.2229[/C][C]0.411993[/C][/ROW]
[ROW][C]8[/C][C]-0.009608[/C][C]-0.1053[/C][C]0.458176[/C][/ROW]
[ROW][C]9[/C][C]0.102931[/C][C]1.1276[/C][C]0.13088[/C][/ROW]
[ROW][C]10[/C][C]0.136069[/C][C]1.4906[/C][C]0.06935[/C][/ROW]
[ROW][C]11[/C][C]0.072605[/C][C]0.7953[/C][C]0.213992[/C][/ROW]
[ROW][C]12[/C][C]-0.266037[/C][C]-2.9143[/C][C]0.002127[/C][/ROW]
[ROW][C]13[/C][C]-0.080664[/C][C]-0.8836[/C][C]0.189333[/C][/ROW]
[ROW][C]14[/C][C]0.253526[/C][C]2.7772[/C][C]0.003182[/C][/ROW]
[ROW][C]15[/C][C]0.128446[/C][C]1.4071[/C][C]0.080998[/C][/ROW]
[ROW][C]16[/C][C]-0.181801[/C][C]-1.9915[/C][C]0.024347[/C][/ROW]
[ROW][C]17[/C][C]-0.078404[/C][C]-0.8589[/C][C]0.196062[/C][/ROW]
[ROW][C]18[/C][C]0.029098[/C][C]0.3188[/C][C]0.375235[/C][/ROW]
[ROW][C]19[/C][C]-0.133628[/C][C]-1.4638[/C][C]0.072928[/C][/ROW]
[ROW][C]20[/C][C]-0.047062[/C][C]-0.5155[/C][C]0.303562[/C][/ROW]
[ROW][C]21[/C][C]0.125345[/C][C]1.3731[/C][C]0.086142[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302119&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302119&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.324755-3.55750.000269
2-0.154986-1.69780.04607
30.1822161.99610.024095
40.0890270.97520.1657
50.091751.00510.158442
60.1801561.97350.025368
70.0203490.22290.411993
8-0.009608-0.10530.458176
90.1029311.12760.13088
100.1360691.49060.06935
110.0726050.79530.213992
12-0.266037-2.91430.002127
13-0.080664-0.88360.189333
140.2535262.77720.003182
150.1284461.40710.080998
16-0.181801-1.99150.024347
17-0.078404-0.85890.196062
180.0290980.31880.375235
19-0.133628-1.46380.072928
20-0.047062-0.51550.303562
210.1253451.37310.086142



Parameters (Session):
par1 = Default ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
Parameters (R input):
par1 = Default ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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)
x <- na.omit(x)
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,'ACF(k)',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,'PACF(k)',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')