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, 11 Aug 2016 13:15:10 +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/Aug/11/t1470917988sxxi5tecteng2na.htm/, Retrieved Sun, 05 May 2024 13:16:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=296305, Retrieved Sun, 05 May 2024 13:16:53 +0000
QR Codes:

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

Post a new message
Dataseries X:
154
170
170
156
178
174
160
166
175
171
161
188
158
170
165
163
180
170
166
178
189
160
164
183
160
171
174
174
183
176
154
158
199
156
175
181
153
161
175
175
183
181
159
158
194
154
173
186
148
149
175
173
189
175
161
150
200
153
173
181
158
141
174
173
196
165
151
149
198
144
166
178
158
130
181
170
188
155
158
153
210
151
169
185
159
130
181
164
189
145
161
154
210
149
164
185
165
131
173
165
185
144
156
158
210
144
164
184




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 & 1 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=296305&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]1 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=296305&T=0

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.660174-6.79690
20.1608371.65590.050348
3-0.090495-0.93170.176803
40.289022.97560.001811
5-0.449756-4.63055e-06
60.4977275.12441e-06
7-0.413746-4.25982.2e-05
80.217742.24180.01353
9-0.031662-0.3260.37254
100.1201261.23680.109453
11-0.559008-5.75530
120.8364048.61130
13-0.540312-5.56290
140.1076991.10880.135007
15-0.0567-0.58380.280311
160.2575092.65120.004625
17-0.421304-4.33761.6e-05
180.4521674.65535e-06
19-0.332534-3.42360.00044
200.1312861.35170.089679

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.660174 & -6.7969 & 0 \tabularnewline
2 & 0.160837 & 1.6559 & 0.050348 \tabularnewline
3 & -0.090495 & -0.9317 & 0.176803 \tabularnewline
4 & 0.28902 & 2.9756 & 0.001811 \tabularnewline
5 & -0.449756 & -4.6305 & 5e-06 \tabularnewline
6 & 0.497727 & 5.1244 & 1e-06 \tabularnewline
7 & -0.413746 & -4.2598 & 2.2e-05 \tabularnewline
8 & 0.21774 & 2.2418 & 0.01353 \tabularnewline
9 & -0.031662 & -0.326 & 0.37254 \tabularnewline
10 & 0.120126 & 1.2368 & 0.109453 \tabularnewline
11 & -0.559008 & -5.7553 & 0 \tabularnewline
12 & 0.836404 & 8.6113 & 0 \tabularnewline
13 & -0.540312 & -5.5629 & 0 \tabularnewline
14 & 0.107699 & 1.1088 & 0.135007 \tabularnewline
15 & -0.0567 & -0.5838 & 0.280311 \tabularnewline
16 & 0.257509 & 2.6512 & 0.004625 \tabularnewline
17 & -0.421304 & -4.3376 & 1.6e-05 \tabularnewline
18 & 0.452167 & 4.6553 & 5e-06 \tabularnewline
19 & -0.332534 & -3.4236 & 0.00044 \tabularnewline
20 & 0.131286 & 1.3517 & 0.089679 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=296305&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.660174[/C][C]-6.7969[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.160837[/C][C]1.6559[/C][C]0.050348[/C][/ROW]
[ROW][C]3[/C][C]-0.090495[/C][C]-0.9317[/C][C]0.176803[/C][/ROW]
[ROW][C]4[/C][C]0.28902[/C][C]2.9756[/C][C]0.001811[/C][/ROW]
[ROW][C]5[/C][C]-0.449756[/C][C]-4.6305[/C][C]5e-06[/C][/ROW]
[ROW][C]6[/C][C]0.497727[/C][C]5.1244[/C][C]1e-06[/C][/ROW]
[ROW][C]7[/C][C]-0.413746[/C][C]-4.2598[/C][C]2.2e-05[/C][/ROW]
[ROW][C]8[/C][C]0.21774[/C][C]2.2418[/C][C]0.01353[/C][/ROW]
[ROW][C]9[/C][C]-0.031662[/C][C]-0.326[/C][C]0.37254[/C][/ROW]
[ROW][C]10[/C][C]0.120126[/C][C]1.2368[/C][C]0.109453[/C][/ROW]
[ROW][C]11[/C][C]-0.559008[/C][C]-5.7553[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.836404[/C][C]8.6113[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.540312[/C][C]-5.5629[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.107699[/C][C]1.1088[/C][C]0.135007[/C][/ROW]
[ROW][C]15[/C][C]-0.0567[/C][C]-0.5838[/C][C]0.280311[/C][/ROW]
[ROW][C]16[/C][C]0.257509[/C][C]2.6512[/C][C]0.004625[/C][/ROW]
[ROW][C]17[/C][C]-0.421304[/C][C]-4.3376[/C][C]1.6e-05[/C][/ROW]
[ROW][C]18[/C][C]0.452167[/C][C]4.6553[/C][C]5e-06[/C][/ROW]
[ROW][C]19[/C][C]-0.332534[/C][C]-3.4236[/C][C]0.00044[/C][/ROW]
[ROW][C]20[/C][C]0.131286[/C][C]1.3517[/C][C]0.089679[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=296305&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=296305&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.660174-6.79690
20.1608371.65590.050348
3-0.090495-0.93170.176803
40.289022.97560.001811
5-0.449756-4.63055e-06
60.4977275.12441e-06
7-0.413746-4.25982.2e-05
80.217742.24180.01353
9-0.031662-0.3260.37254
100.1201261.23680.109453
11-0.559008-5.75530
120.8364048.61130
13-0.540312-5.56290
140.1076991.10880.135007
15-0.0567-0.58380.280311
160.2575092.65120.004625
17-0.421304-4.33761.6e-05
180.4521674.65535e-06
19-0.332534-3.42360.00044
200.1312861.35170.089679







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.660174-6.79690
2-0.487428-5.01841e-06
3-0.591324-6.08810
4-0.159135-1.63840.052152
5-0.531558-5.47270
6-0.072796-0.74950.227615
7-0.181443-1.86810.032257
8-0.256895-2.64490.004707
90.1053111.08420.140358
100.5831536.00390
11-0.465673-4.79443e-06
12-0.048763-0.5020.308337
130.1171081.20570.115308
14-0.045229-0.46570.321207
150.1453531.49650.068748
160.0337090.34710.364619
17-0.010665-0.10980.456387
18-0.144046-1.4830.070515
19-0.051814-0.53350.297418
200.0569230.58610.279542

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.660174 & -6.7969 & 0 \tabularnewline
2 & -0.487428 & -5.0184 & 1e-06 \tabularnewline
3 & -0.591324 & -6.0881 & 0 \tabularnewline
4 & -0.159135 & -1.6384 & 0.052152 \tabularnewline
5 & -0.531558 & -5.4727 & 0 \tabularnewline
6 & -0.072796 & -0.7495 & 0.227615 \tabularnewline
7 & -0.181443 & -1.8681 & 0.032257 \tabularnewline
8 & -0.256895 & -2.6449 & 0.004707 \tabularnewline
9 & 0.105311 & 1.0842 & 0.140358 \tabularnewline
10 & 0.583153 & 6.0039 & 0 \tabularnewline
11 & -0.465673 & -4.7944 & 3e-06 \tabularnewline
12 & -0.048763 & -0.502 & 0.308337 \tabularnewline
13 & 0.117108 & 1.2057 & 0.115308 \tabularnewline
14 & -0.045229 & -0.4657 & 0.321207 \tabularnewline
15 & 0.145353 & 1.4965 & 0.068748 \tabularnewline
16 & 0.033709 & 0.3471 & 0.364619 \tabularnewline
17 & -0.010665 & -0.1098 & 0.456387 \tabularnewline
18 & -0.144046 & -1.483 & 0.070515 \tabularnewline
19 & -0.051814 & -0.5335 & 0.297418 \tabularnewline
20 & 0.056923 & 0.5861 & 0.279542 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=296305&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.660174[/C][C]-6.7969[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.487428[/C][C]-5.0184[/C][C]1e-06[/C][/ROW]
[ROW][C]3[/C][C]-0.591324[/C][C]-6.0881[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]-0.159135[/C][C]-1.6384[/C][C]0.052152[/C][/ROW]
[ROW][C]5[/C][C]-0.531558[/C][C]-5.4727[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]-0.072796[/C][C]-0.7495[/C][C]0.227615[/C][/ROW]
[ROW][C]7[/C][C]-0.181443[/C][C]-1.8681[/C][C]0.032257[/C][/ROW]
[ROW][C]8[/C][C]-0.256895[/C][C]-2.6449[/C][C]0.004707[/C][/ROW]
[ROW][C]9[/C][C]0.105311[/C][C]1.0842[/C][C]0.140358[/C][/ROW]
[ROW][C]10[/C][C]0.583153[/C][C]6.0039[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]-0.465673[/C][C]-4.7944[/C][C]3e-06[/C][/ROW]
[ROW][C]12[/C][C]-0.048763[/C][C]-0.502[/C][C]0.308337[/C][/ROW]
[ROW][C]13[/C][C]0.117108[/C][C]1.2057[/C][C]0.115308[/C][/ROW]
[ROW][C]14[/C][C]-0.045229[/C][C]-0.4657[/C][C]0.321207[/C][/ROW]
[ROW][C]15[/C][C]0.145353[/C][C]1.4965[/C][C]0.068748[/C][/ROW]
[ROW][C]16[/C][C]0.033709[/C][C]0.3471[/C][C]0.364619[/C][/ROW]
[ROW][C]17[/C][C]-0.010665[/C][C]-0.1098[/C][C]0.456387[/C][/ROW]
[ROW][C]18[/C][C]-0.144046[/C][C]-1.483[/C][C]0.070515[/C][/ROW]
[ROW][C]19[/C][C]-0.051814[/C][C]-0.5335[/C][C]0.297418[/C][/ROW]
[ROW][C]20[/C][C]0.056923[/C][C]0.5861[/C][C]0.279542[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=296305&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=296305&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.660174-6.79690
2-0.487428-5.01841e-06
3-0.591324-6.08810
4-0.159135-1.63840.052152
5-0.531558-5.47270
6-0.072796-0.74950.227615
7-0.181443-1.86810.032257
8-0.256895-2.64490.004707
90.1053111.08420.140358
100.5831536.00390
11-0.465673-4.79443e-06
12-0.048763-0.5020.308337
130.1171081.20570.115308
14-0.045229-0.46570.321207
150.1453531.49650.068748
160.0337090.34710.364619
17-0.010665-0.10980.456387
18-0.144046-1.4830.070515
19-0.051814-0.53350.297418
200.0569230.58610.279542



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