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 computationThu, 22 Dec 2011 08:22:48 -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/2011/Dec/22/t1324560302cs8stfxyxee9984.htm/, Retrieved Fri, 03 May 2024 10:25:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=159423, Retrieved Fri, 03 May 2024 10:25:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact82
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2011-12-22 13:22:48] [1e640daebbc6b5a89eef23229b5a56d5] [Current]
Feedback Forum

Post a new message
Dataseries X:
519
517
510
509
501
507
569
580
578
565
547
555
562
561
555
544
537
543
594
611
613
611
594
595
591
589
584
573
567
569
621
629
628
612
595
597
593
590
580
574
573
573
620
626
620
588
566
557
561
549
532
526
511
499
555
565
542
527
510
514
517
508
493
490
469
478
528
534
518




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=159423&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=159423&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159423&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
10.8758997.27580
20.7011565.82420
30.5648534.6927e-06
40.4706183.90920.000107
50.4265973.54360.000357
60.3831793.18290.001094
70.3253332.70240.004329
80.2663662.21260.015118
90.2635852.18950.015972
100.3150042.61660.005451
110.3912963.25030.000892
120.4215363.50150.000408
130.2950262.45070.008399
140.1385021.15050.126959
150.0099940.0830.46704
16-0.09448-0.78480.217626
17-0.150533-1.25040.107685
18-0.202469-1.68180.048561

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.875899 & 7.2758 & 0 \tabularnewline
2 & 0.701156 & 5.8242 & 0 \tabularnewline
3 & 0.564853 & 4.692 & 7e-06 \tabularnewline
4 & 0.470618 & 3.9092 & 0.000107 \tabularnewline
5 & 0.426597 & 3.5436 & 0.000357 \tabularnewline
6 & 0.383179 & 3.1829 & 0.001094 \tabularnewline
7 & 0.325333 & 2.7024 & 0.004329 \tabularnewline
8 & 0.266366 & 2.2126 & 0.015118 \tabularnewline
9 & 0.263585 & 2.1895 & 0.015972 \tabularnewline
10 & 0.315004 & 2.6166 & 0.005451 \tabularnewline
11 & 0.391296 & 3.2503 & 0.000892 \tabularnewline
12 & 0.421536 & 3.5015 & 0.000408 \tabularnewline
13 & 0.295026 & 2.4507 & 0.008399 \tabularnewline
14 & 0.138502 & 1.1505 & 0.126959 \tabularnewline
15 & 0.009994 & 0.083 & 0.46704 \tabularnewline
16 & -0.09448 & -0.7848 & 0.217626 \tabularnewline
17 & -0.150533 & -1.2504 & 0.107685 \tabularnewline
18 & -0.202469 & -1.6818 & 0.048561 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159423&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.875899[/C][C]7.2758[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.701156[/C][C]5.8242[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.564853[/C][C]4.692[/C][C]7e-06[/C][/ROW]
[ROW][C]4[/C][C]0.470618[/C][C]3.9092[/C][C]0.000107[/C][/ROW]
[ROW][C]5[/C][C]0.426597[/C][C]3.5436[/C][C]0.000357[/C][/ROW]
[ROW][C]6[/C][C]0.383179[/C][C]3.1829[/C][C]0.001094[/C][/ROW]
[ROW][C]7[/C][C]0.325333[/C][C]2.7024[/C][C]0.004329[/C][/ROW]
[ROW][C]8[/C][C]0.266366[/C][C]2.2126[/C][C]0.015118[/C][/ROW]
[ROW][C]9[/C][C]0.263585[/C][C]2.1895[/C][C]0.015972[/C][/ROW]
[ROW][C]10[/C][C]0.315004[/C][C]2.6166[/C][C]0.005451[/C][/ROW]
[ROW][C]11[/C][C]0.391296[/C][C]3.2503[/C][C]0.000892[/C][/ROW]
[ROW][C]12[/C][C]0.421536[/C][C]3.5015[/C][C]0.000408[/C][/ROW]
[ROW][C]13[/C][C]0.295026[/C][C]2.4507[/C][C]0.008399[/C][/ROW]
[ROW][C]14[/C][C]0.138502[/C][C]1.1505[/C][C]0.126959[/C][/ROW]
[ROW][C]15[/C][C]0.009994[/C][C]0.083[/C][C]0.46704[/C][/ROW]
[ROW][C]16[/C][C]-0.09448[/C][C]-0.7848[/C][C]0.217626[/C][/ROW]
[ROW][C]17[/C][C]-0.150533[/C][C]-1.2504[/C][C]0.107685[/C][/ROW]
[ROW][C]18[/C][C]-0.202469[/C][C]-1.6818[/C][C]0.048561[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159423&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159423&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.8758997.27580
20.7011565.82420
30.5648534.6927e-06
40.4706183.90920.000107
50.4265973.54360.000357
60.3831793.18290.001094
70.3253332.70240.004329
80.2663662.21260.015118
90.2635852.18950.015972
100.3150042.61660.005451
110.3912963.25030.000892
120.4215363.50150.000408
130.2950262.45070.008399
140.1385021.15050.126959
150.0099940.0830.46704
16-0.09448-0.78480.217626
17-0.150533-1.25040.107685
18-0.202469-1.68180.048561







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8758997.27580
2-0.283688-2.35650.010647
30.1166430.96890.167987
40.0261250.2170.414421
50.1328871.10380.136749
6-0.08954-0.74380.229768
7-0.019784-0.16430.434971
8-0.008991-0.07470.47034
90.2425452.01470.023916
100.1234191.02520.154426
110.1466741.21840.113617
12-0.136384-1.13290.130591
13-0.554889-4.60939e-06
140.0475470.3950.347048
15-0.132438-1.10010.137553
16-0.111493-0.92610.178803
170.0117540.09760.461253
18-0.049177-0.40850.342087

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.875899 & 7.2758 & 0 \tabularnewline
2 & -0.283688 & -2.3565 & 0.010647 \tabularnewline
3 & 0.116643 & 0.9689 & 0.167987 \tabularnewline
4 & 0.026125 & 0.217 & 0.414421 \tabularnewline
5 & 0.132887 & 1.1038 & 0.136749 \tabularnewline
6 & -0.08954 & -0.7438 & 0.229768 \tabularnewline
7 & -0.019784 & -0.1643 & 0.434971 \tabularnewline
8 & -0.008991 & -0.0747 & 0.47034 \tabularnewline
9 & 0.242545 & 2.0147 & 0.023916 \tabularnewline
10 & 0.123419 & 1.0252 & 0.154426 \tabularnewline
11 & 0.146674 & 1.2184 & 0.113617 \tabularnewline
12 & -0.136384 & -1.1329 & 0.130591 \tabularnewline
13 & -0.554889 & -4.6093 & 9e-06 \tabularnewline
14 & 0.047547 & 0.395 & 0.347048 \tabularnewline
15 & -0.132438 & -1.1001 & 0.137553 \tabularnewline
16 & -0.111493 & -0.9261 & 0.178803 \tabularnewline
17 & 0.011754 & 0.0976 & 0.461253 \tabularnewline
18 & -0.049177 & -0.4085 & 0.342087 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=159423&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.875899[/C][C]7.2758[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.283688[/C][C]-2.3565[/C][C]0.010647[/C][/ROW]
[ROW][C]3[/C][C]0.116643[/C][C]0.9689[/C][C]0.167987[/C][/ROW]
[ROW][C]4[/C][C]0.026125[/C][C]0.217[/C][C]0.414421[/C][/ROW]
[ROW][C]5[/C][C]0.132887[/C][C]1.1038[/C][C]0.136749[/C][/ROW]
[ROW][C]6[/C][C]-0.08954[/C][C]-0.7438[/C][C]0.229768[/C][/ROW]
[ROW][C]7[/C][C]-0.019784[/C][C]-0.1643[/C][C]0.434971[/C][/ROW]
[ROW][C]8[/C][C]-0.008991[/C][C]-0.0747[/C][C]0.47034[/C][/ROW]
[ROW][C]9[/C][C]0.242545[/C][C]2.0147[/C][C]0.023916[/C][/ROW]
[ROW][C]10[/C][C]0.123419[/C][C]1.0252[/C][C]0.154426[/C][/ROW]
[ROW][C]11[/C][C]0.146674[/C][C]1.2184[/C][C]0.113617[/C][/ROW]
[ROW][C]12[/C][C]-0.136384[/C][C]-1.1329[/C][C]0.130591[/C][/ROW]
[ROW][C]13[/C][C]-0.554889[/C][C]-4.6093[/C][C]9e-06[/C][/ROW]
[ROW][C]14[/C][C]0.047547[/C][C]0.395[/C][C]0.347048[/C][/ROW]
[ROW][C]15[/C][C]-0.132438[/C][C]-1.1001[/C][C]0.137553[/C][/ROW]
[ROW][C]16[/C][C]-0.111493[/C][C]-0.9261[/C][C]0.178803[/C][/ROW]
[ROW][C]17[/C][C]0.011754[/C][C]0.0976[/C][C]0.461253[/C][/ROW]
[ROW][C]18[/C][C]-0.049177[/C][C]-0.4085[/C][C]0.342087[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=159423&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=159423&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.8758997.27580
2-0.283688-2.35650.010647
30.1166430.96890.167987
40.0261250.2170.414421
50.1328871.10380.136749
6-0.08954-0.74380.229768
7-0.019784-0.16430.434971
8-0.008991-0.07470.47034
90.2425452.01470.023916
100.1234191.02520.154426
110.1466741.21840.113617
12-0.136384-1.13290.130591
13-0.554889-4.60939e-06
140.0475470.3950.347048
15-0.132438-1.10010.137553
16-0.111493-0.92610.178803
170.0117540.09760.461253
18-0.049177-0.40850.342087



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):
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')