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 computationSat, 12 Mar 2016 19:15:43 +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/2016/Mar/12/t1457810164w7aul7yo6gmoxzm.htm/, Retrieved Sun, 05 May 2024 13:34:58 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=293941, Retrieved Sun, 05 May 2024 13:34:58 +0000
QR Codes:

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

Post a new message
Dataseries X:
283 411
234 585
207 695
204 000
220 791
222 335
303 510
201 602
218 279
207 253
217 639
231 043
302 988
221 415
213 989
190 507
199 397
201 077
261 048
241 508
194 637
240 044
253 534
269 220
270 820
354 121
315 233
297 098
258 289
276 246
246 652
242 945
210 838
246 343
234 636
229 011
238 756
283 696
226 656
229 790
219831
232 331
315 447
251 031
297 019
208 424
311 626
352 320
375 214
419 501
664 867
483 142
312 717
228 228
230 978
218 033
225 566
207 708
241 861
208 381
209 071
214 514
195 868
190 208
187 651
215 934
213 012
236 845
154 595
193 485
231 875
192 259
191 609
212 911
238 596
203 033
258 272
314 681
289 789
297 541
239 578
207 798
254 091
242 544
218 067
217 463
229 438
216 485
238 410
223 108
221 267
224 802
233 630
235 134
309 660
253 229
293 530
273 323
297 578
341 589
389 911
398 685
629 637
522 502
358 941
252 783
236 585
224 995
225 721
223 338
228 952
212 759
200270
211 925
191 206
200 511
205 944
289 288
186 209
197 515
182 038
181 606
223 337
201 213
220 700
194 043
224 593
249 907
238 613
266 200
274 197
288 601
242 662
232 105
267 842
219 037
198 404
203 910
209 685
214 274
215 376
217 711
224 819
217 142
221 445
213 483
282 063
236 194
297 296
255 885
264 502
311 580
416 595
356 762
537 286
532 855




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ jenkins.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 & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=293941&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]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=293941&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293941&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'Gwilym Jenkins' @ jenkins.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7154158.93550
20.4916796.14110
30.3204594.00254.8e-05
40.1926022.40560.008658
50.0738430.92230.178898
60.068560.85630.196568
70.0140420.17540.430501
8-0.013094-0.16350.43515
9-0.087932-1.09830.136889
10-0.152948-1.91030.028963

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.715415 & 8.9355 & 0 \tabularnewline
2 & 0.491679 & 6.1411 & 0 \tabularnewline
3 & 0.320459 & 4.0025 & 4.8e-05 \tabularnewline
4 & 0.192602 & 2.4056 & 0.008658 \tabularnewline
5 & 0.073843 & 0.9223 & 0.178898 \tabularnewline
6 & 0.06856 & 0.8563 & 0.196568 \tabularnewline
7 & 0.014042 & 0.1754 & 0.430501 \tabularnewline
8 & -0.013094 & -0.1635 & 0.43515 \tabularnewline
9 & -0.087932 & -1.0983 & 0.136889 \tabularnewline
10 & -0.152948 & -1.9103 & 0.028963 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=293941&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.715415[/C][C]8.9355[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.491679[/C][C]6.1411[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.320459[/C][C]4.0025[/C][C]4.8e-05[/C][/ROW]
[ROW][C]4[/C][C]0.192602[/C][C]2.4056[/C][C]0.008658[/C][/ROW]
[ROW][C]5[/C][C]0.073843[/C][C]0.9223[/C][C]0.178898[/C][/ROW]
[ROW][C]6[/C][C]0.06856[/C][C]0.8563[/C][C]0.196568[/C][/ROW]
[ROW][C]7[/C][C]0.014042[/C][C]0.1754[/C][C]0.430501[/C][/ROW]
[ROW][C]8[/C][C]-0.013094[/C][C]-0.1635[/C][C]0.43515[/C][/ROW]
[ROW][C]9[/C][C]-0.087932[/C][C]-1.0983[/C][C]0.136889[/C][/ROW]
[ROW][C]10[/C][C]-0.152948[/C][C]-1.9103[/C][C]0.028963[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=293941&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293941&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
10.7154158.93550
20.4916796.14110
30.3204594.00254.8e-05
40.1926022.40560.008658
50.0738430.92230.178898
60.068560.85630.196568
70.0140420.17540.430501
8-0.013094-0.16350.43515
9-0.087932-1.09830.136889
10-0.152948-1.91030.028963







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7154158.93550
2-0.041255-0.51530.303545
3-0.03343-0.41750.338427
4-0.028182-0.3520.36266
5-0.077096-0.96290.168536
60.129431.61660.053994
7-0.107545-1.34320.090573
80.0075490.09430.462501
9-0.132823-1.6590.049567
10-0.076543-0.9560.17027

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.715415 & 8.9355 & 0 \tabularnewline
2 & -0.041255 & -0.5153 & 0.303545 \tabularnewline
3 & -0.03343 & -0.4175 & 0.338427 \tabularnewline
4 & -0.028182 & -0.352 & 0.36266 \tabularnewline
5 & -0.077096 & -0.9629 & 0.168536 \tabularnewline
6 & 0.12943 & 1.6166 & 0.053994 \tabularnewline
7 & -0.107545 & -1.3432 & 0.090573 \tabularnewline
8 & 0.007549 & 0.0943 & 0.462501 \tabularnewline
9 & -0.132823 & -1.659 & 0.049567 \tabularnewline
10 & -0.076543 & -0.956 & 0.17027 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=293941&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.715415[/C][C]8.9355[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.041255[/C][C]-0.5153[/C][C]0.303545[/C][/ROW]
[ROW][C]3[/C][C]-0.03343[/C][C]-0.4175[/C][C]0.338427[/C][/ROW]
[ROW][C]4[/C][C]-0.028182[/C][C]-0.352[/C][C]0.36266[/C][/ROW]
[ROW][C]5[/C][C]-0.077096[/C][C]-0.9629[/C][C]0.168536[/C][/ROW]
[ROW][C]6[/C][C]0.12943[/C][C]1.6166[/C][C]0.053994[/C][/ROW]
[ROW][C]7[/C][C]-0.107545[/C][C]-1.3432[/C][C]0.090573[/C][/ROW]
[ROW][C]8[/C][C]0.007549[/C][C]0.0943[/C][C]0.462501[/C][/ROW]
[ROW][C]9[/C][C]-0.132823[/C][C]-1.659[/C][C]0.049567[/C][/ROW]
[ROW][C]10[/C][C]-0.076543[/C][C]-0.956[/C][C]0.17027[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=293941&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=293941&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
10.7154158.93550
2-0.041255-0.51530.303545
3-0.03343-0.41750.338427
4-0.028182-0.3520.36266
5-0.077096-0.96290.168536
60.129431.61660.053994
7-0.107545-1.34320.090573
80.0075490.09430.462501
9-0.132823-1.6590.049567
10-0.076543-0.9560.17027



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