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 computationMon, 12 Nov 2012 05:03:38 -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/Nov/12/t13527146812rr0yfxpunptzll.htm/, Retrieved Mon, 29 Apr 2024 13:51:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=187708, Retrieved Mon, 29 Apr 2024 13:51:28 +0000
QR Codes:

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

Post a new message
Dataseries X:
0.47
0.47
0.47
0.47
0.47
0.47
0.48
0.48
0.48
0.48
0.48
0.49
0.49
0.49
0.49
0.49
0.49
0.49
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.5
0.51
0.51
0.5
0.51
0.5
0.51
0.51
0.52
0.53
0.53
0.53
0.53
0.53
0.54
0.55
0.54
0.55
0.55
0.55
0.54
0.55
0.55
0.55
0.55
0.56
0.56
0.56
0.56
0.55
0.55
0.56
0.56
0.56
0.56
0.56
0.55
0.55
0.55
0.54
0.54
0.54
0.54
0.55
0.54
0.54
0.54




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=187708&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 time3 seconds
R Server'Gertrude Mary Cox' @ cox.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.255486-2.15280.017368
20.0130170.10970.456483
30.0081630.06880.472679
4-0.032677-0.27530.391926
5-0.033113-0.2790.390523
60.0605170.50990.305842
70.1049050.88390.189855
80.100050.8430.20102
90.0099680.0840.466651
100.0095320.08030.468105
110.0090960.07660.46956
12-0.170632-1.43780.077446
130.1875181.58010.05927
14-0.171504-1.44510.076412
150.0073530.0620.475384
160.1009830.85090.198842
170.1005480.84720.199857
18-0.034358-0.28950.38652

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.255486 & -2.1528 & 0.017368 \tabularnewline
2 & 0.013017 & 0.1097 & 0.456483 \tabularnewline
3 & 0.008163 & 0.0688 & 0.472679 \tabularnewline
4 & -0.032677 & -0.2753 & 0.391926 \tabularnewline
5 & -0.033113 & -0.279 & 0.390523 \tabularnewline
6 & 0.060517 & 0.5099 & 0.305842 \tabularnewline
7 & 0.104905 & 0.8839 & 0.189855 \tabularnewline
8 & 0.10005 & 0.843 & 0.20102 \tabularnewline
9 & 0.009968 & 0.084 & 0.466651 \tabularnewline
10 & 0.009532 & 0.0803 & 0.468105 \tabularnewline
11 & 0.009096 & 0.0766 & 0.46956 \tabularnewline
12 & -0.170632 & -1.4378 & 0.077446 \tabularnewline
13 & 0.187518 & 1.5801 & 0.05927 \tabularnewline
14 & -0.171504 & -1.4451 & 0.076412 \tabularnewline
15 & 0.007353 & 0.062 & 0.475384 \tabularnewline
16 & 0.100983 & 0.8509 & 0.198842 \tabularnewline
17 & 0.100548 & 0.8472 & 0.199857 \tabularnewline
18 & -0.034358 & -0.2895 & 0.38652 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=187708&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.255486[/C][C]-2.1528[/C][C]0.017368[/C][/ROW]
[ROW][C]2[/C][C]0.013017[/C][C]0.1097[/C][C]0.456483[/C][/ROW]
[ROW][C]3[/C][C]0.008163[/C][C]0.0688[/C][C]0.472679[/C][/ROW]
[ROW][C]4[/C][C]-0.032677[/C][C]-0.2753[/C][C]0.391926[/C][/ROW]
[ROW][C]5[/C][C]-0.033113[/C][C]-0.279[/C][C]0.390523[/C][/ROW]
[ROW][C]6[/C][C]0.060517[/C][C]0.5099[/C][C]0.305842[/C][/ROW]
[ROW][C]7[/C][C]0.104905[/C][C]0.8839[/C][C]0.189855[/C][/ROW]
[ROW][C]8[/C][C]0.10005[/C][C]0.843[/C][C]0.20102[/C][/ROW]
[ROW][C]9[/C][C]0.009968[/C][C]0.084[/C][C]0.466651[/C][/ROW]
[ROW][C]10[/C][C]0.009532[/C][C]0.0803[/C][C]0.468105[/C][/ROW]
[ROW][C]11[/C][C]0.009096[/C][C]0.0766[/C][C]0.46956[/C][/ROW]
[ROW][C]12[/C][C]-0.170632[/C][C]-1.4378[/C][C]0.077446[/C][/ROW]
[ROW][C]13[/C][C]0.187518[/C][C]1.5801[/C][C]0.05927[/C][/ROW]
[ROW][C]14[/C][C]-0.171504[/C][C]-1.4451[/C][C]0.076412[/C][/ROW]
[ROW][C]15[/C][C]0.007353[/C][C]0.062[/C][C]0.475384[/C][/ROW]
[ROW][C]16[/C][C]0.100983[/C][C]0.8509[/C][C]0.198842[/C][/ROW]
[ROW][C]17[/C][C]0.100548[/C][C]0.8472[/C][C]0.199857[/C][/ROW]
[ROW][C]18[/C][C]-0.034358[/C][C]-0.2895[/C][C]0.38652[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=187708&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=187708&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.255486-2.15280.017368
20.0130170.10970.456483
30.0081630.06880.472679
4-0.032677-0.27530.391926
5-0.033113-0.2790.390523
60.0605170.50990.305842
70.1049050.88390.189855
80.100050.8430.20102
90.0099680.0840.466651
100.0095320.08030.468105
110.0090960.07660.46956
12-0.170632-1.43780.077446
130.1875181.58010.05927
14-0.171504-1.44510.076412
150.0073530.0620.475384
160.1009830.85090.198842
170.1005480.84720.199857
18-0.034358-0.28950.38652







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.255486-2.15280.017368
2-0.055905-0.47110.31952
3-0.002799-0.02360.490623
4-0.03268-0.27540.391916
5-0.053348-0.44950.327213
60.039530.33310.370026
70.1401561.1810.120776
80.1821121.53450.064676
90.1003120.84520.200408
100.0543640.45810.324148
110.0469760.39580.346711
12-0.161916-1.36430.088387
130.0954850.80460.211877
14-0.165473-1.39430.083787
15-0.144044-1.21370.114435
160.0056630.04770.481037
170.1338571.12790.131581
180.0698120.58820.279116

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.255486 & -2.1528 & 0.017368 \tabularnewline
2 & -0.055905 & -0.4711 & 0.31952 \tabularnewline
3 & -0.002799 & -0.0236 & 0.490623 \tabularnewline
4 & -0.03268 & -0.2754 & 0.391916 \tabularnewline
5 & -0.053348 & -0.4495 & 0.327213 \tabularnewline
6 & 0.03953 & 0.3331 & 0.370026 \tabularnewline
7 & 0.140156 & 1.181 & 0.120776 \tabularnewline
8 & 0.182112 & 1.5345 & 0.064676 \tabularnewline
9 & 0.100312 & 0.8452 & 0.200408 \tabularnewline
10 & 0.054364 & 0.4581 & 0.324148 \tabularnewline
11 & 0.046976 & 0.3958 & 0.346711 \tabularnewline
12 & -0.161916 & -1.3643 & 0.088387 \tabularnewline
13 & 0.095485 & 0.8046 & 0.211877 \tabularnewline
14 & -0.165473 & -1.3943 & 0.083787 \tabularnewline
15 & -0.144044 & -1.2137 & 0.114435 \tabularnewline
16 & 0.005663 & 0.0477 & 0.481037 \tabularnewline
17 & 0.133857 & 1.1279 & 0.131581 \tabularnewline
18 & 0.069812 & 0.5882 & 0.279116 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=187708&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.255486[/C][C]-2.1528[/C][C]0.017368[/C][/ROW]
[ROW][C]2[/C][C]-0.055905[/C][C]-0.4711[/C][C]0.31952[/C][/ROW]
[ROW][C]3[/C][C]-0.002799[/C][C]-0.0236[/C][C]0.490623[/C][/ROW]
[ROW][C]4[/C][C]-0.03268[/C][C]-0.2754[/C][C]0.391916[/C][/ROW]
[ROW][C]5[/C][C]-0.053348[/C][C]-0.4495[/C][C]0.327213[/C][/ROW]
[ROW][C]6[/C][C]0.03953[/C][C]0.3331[/C][C]0.370026[/C][/ROW]
[ROW][C]7[/C][C]0.140156[/C][C]1.181[/C][C]0.120776[/C][/ROW]
[ROW][C]8[/C][C]0.182112[/C][C]1.5345[/C][C]0.064676[/C][/ROW]
[ROW][C]9[/C][C]0.100312[/C][C]0.8452[/C][C]0.200408[/C][/ROW]
[ROW][C]10[/C][C]0.054364[/C][C]0.4581[/C][C]0.324148[/C][/ROW]
[ROW][C]11[/C][C]0.046976[/C][C]0.3958[/C][C]0.346711[/C][/ROW]
[ROW][C]12[/C][C]-0.161916[/C][C]-1.3643[/C][C]0.088387[/C][/ROW]
[ROW][C]13[/C][C]0.095485[/C][C]0.8046[/C][C]0.211877[/C][/ROW]
[ROW][C]14[/C][C]-0.165473[/C][C]-1.3943[/C][C]0.083787[/C][/ROW]
[ROW][C]15[/C][C]-0.144044[/C][C]-1.2137[/C][C]0.114435[/C][/ROW]
[ROW][C]16[/C][C]0.005663[/C][C]0.0477[/C][C]0.481037[/C][/ROW]
[ROW][C]17[/C][C]0.133857[/C][C]1.1279[/C][C]0.131581[/C][/ROW]
[ROW][C]18[/C][C]0.069812[/C][C]0.5882[/C][C]0.279116[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=187708&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=187708&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.255486-2.15280.017368
2-0.055905-0.47110.31952
3-0.002799-0.02360.490623
4-0.03268-0.27540.391916
5-0.053348-0.44950.327213
60.039530.33310.370026
70.1401561.1810.120776
80.1821121.53450.064676
90.1003120.84520.200408
100.0543640.45810.324148
110.0469760.39580.346711
12-0.161916-1.36430.088387
130.0954850.80460.211877
14-0.165473-1.39430.083787
15-0.144044-1.21370.114435
160.0056630.04770.481037
170.1338571.12790.131581
180.0698120.58820.279116



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