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 computationSun, 12 Jan 2014 05:53: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/2014/Jan/12/t1389524135kc2z82ohl2nn6yl.htm/, Retrieved Sun, 19 May 2024 07:11:26 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=232975, Retrieved Sun, 19 May 2024 07:11:26 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact124
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2014-01-12 10:53:48] [bf566d88435d8cc6ce5d208f6f8dd684] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.58
2.59
2.6
2.6
2.61
2.62
2.64
2.65
2.66
2.67
2.68
2.69
2.69
2.71
2.72
2.73
2.73
2.74
2.74
2.74
2.74
2.74
2.75
2.75
2.75
2.75
2.77
2.78
2.79
2.8
2.82
2.83
2.84
2.87
2.89
2.9
2.9
2.91
2.92
2.92
2.92
2.92
2.94
2.95
2.95
2.97
2.99
3
3
3.01
3.03
3.03
3.04
3.04
3.05
3.05
3.09
3.09
3.09
3.1
3.1
3.11
3.12
3.12
3.12
3.13
3.15
3.16
3.16
3.18
3.19
3.19
3.2
3.21
3.26
3.27
3.28
3.29
3.29
3.3
3.3
3.31
3.31
3.31




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.001437-0.01310.494793
2-0.028968-0.26390.39625
3-0.012892-0.11750.453392
40.1194711.08840.139777
50.0465810.42440.336197
6-0.229812-2.09370.01967
70.0170870.15570.438336
8-0.084875-0.77330.220785
9-0.085086-0.77520.22022
10-0.13591-1.23820.109566
11-0.077978-0.71040.23972
12-0.047366-0.43150.333604
130.0396390.36110.359461
14-0.149539-1.36240.088384
15-0.093358-0.85050.198739
160.0407570.37130.355675
17-0.046669-0.42520.335904
180.0839430.76480.223293
190.0273390.24910.401959
200.175991.60330.056329
21-0.067829-0.61790.269151
22-0.053504-0.48740.313615
230.078860.71840.23725
240.1257591.14570.127602

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.001437 & -0.0131 & 0.494793 \tabularnewline
2 & -0.028968 & -0.2639 & 0.39625 \tabularnewline
3 & -0.012892 & -0.1175 & 0.453392 \tabularnewline
4 & 0.119471 & 1.0884 & 0.139777 \tabularnewline
5 & 0.046581 & 0.4244 & 0.336197 \tabularnewline
6 & -0.229812 & -2.0937 & 0.01967 \tabularnewline
7 & 0.017087 & 0.1557 & 0.438336 \tabularnewline
8 & -0.084875 & -0.7733 & 0.220785 \tabularnewline
9 & -0.085086 & -0.7752 & 0.22022 \tabularnewline
10 & -0.13591 & -1.2382 & 0.109566 \tabularnewline
11 & -0.077978 & -0.7104 & 0.23972 \tabularnewline
12 & -0.047366 & -0.4315 & 0.333604 \tabularnewline
13 & 0.039639 & 0.3611 & 0.359461 \tabularnewline
14 & -0.149539 & -1.3624 & 0.088384 \tabularnewline
15 & -0.093358 & -0.8505 & 0.198739 \tabularnewline
16 & 0.040757 & 0.3713 & 0.355675 \tabularnewline
17 & -0.046669 & -0.4252 & 0.335904 \tabularnewline
18 & 0.083943 & 0.7648 & 0.223293 \tabularnewline
19 & 0.027339 & 0.2491 & 0.401959 \tabularnewline
20 & 0.17599 & 1.6033 & 0.056329 \tabularnewline
21 & -0.067829 & -0.6179 & 0.269151 \tabularnewline
22 & -0.053504 & -0.4874 & 0.313615 \tabularnewline
23 & 0.07886 & 0.7184 & 0.23725 \tabularnewline
24 & 0.125759 & 1.1457 & 0.127602 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=232975&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.001437[/C][C]-0.0131[/C][C]0.494793[/C][/ROW]
[ROW][C]2[/C][C]-0.028968[/C][C]-0.2639[/C][C]0.39625[/C][/ROW]
[ROW][C]3[/C][C]-0.012892[/C][C]-0.1175[/C][C]0.453392[/C][/ROW]
[ROW][C]4[/C][C]0.119471[/C][C]1.0884[/C][C]0.139777[/C][/ROW]
[ROW][C]5[/C][C]0.046581[/C][C]0.4244[/C][C]0.336197[/C][/ROW]
[ROW][C]6[/C][C]-0.229812[/C][C]-2.0937[/C][C]0.01967[/C][/ROW]
[ROW][C]7[/C][C]0.017087[/C][C]0.1557[/C][C]0.438336[/C][/ROW]
[ROW][C]8[/C][C]-0.084875[/C][C]-0.7733[/C][C]0.220785[/C][/ROW]
[ROW][C]9[/C][C]-0.085086[/C][C]-0.7752[/C][C]0.22022[/C][/ROW]
[ROW][C]10[/C][C]-0.13591[/C][C]-1.2382[/C][C]0.109566[/C][/ROW]
[ROW][C]11[/C][C]-0.077978[/C][C]-0.7104[/C][C]0.23972[/C][/ROW]
[ROW][C]12[/C][C]-0.047366[/C][C]-0.4315[/C][C]0.333604[/C][/ROW]
[ROW][C]13[/C][C]0.039639[/C][C]0.3611[/C][C]0.359461[/C][/ROW]
[ROW][C]14[/C][C]-0.149539[/C][C]-1.3624[/C][C]0.088384[/C][/ROW]
[ROW][C]15[/C][C]-0.093358[/C][C]-0.8505[/C][C]0.198739[/C][/ROW]
[ROW][C]16[/C][C]0.040757[/C][C]0.3713[/C][C]0.355675[/C][/ROW]
[ROW][C]17[/C][C]-0.046669[/C][C]-0.4252[/C][C]0.335904[/C][/ROW]
[ROW][C]18[/C][C]0.083943[/C][C]0.7648[/C][C]0.223293[/C][/ROW]
[ROW][C]19[/C][C]0.027339[/C][C]0.2491[/C][C]0.401959[/C][/ROW]
[ROW][C]20[/C][C]0.17599[/C][C]1.6033[/C][C]0.056329[/C][/ROW]
[ROW][C]21[/C][C]-0.067829[/C][C]-0.6179[/C][C]0.269151[/C][/ROW]
[ROW][C]22[/C][C]-0.053504[/C][C]-0.4874[/C][C]0.313615[/C][/ROW]
[ROW][C]23[/C][C]0.07886[/C][C]0.7184[/C][C]0.23725[/C][/ROW]
[ROW][C]24[/C][C]0.125759[/C][C]1.1457[/C][C]0.127602[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=232975&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=232975&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.001437-0.01310.494793
2-0.028968-0.26390.39625
3-0.012892-0.11750.453392
40.1194711.08840.139777
50.0465810.42440.336197
6-0.229812-2.09370.01967
70.0170870.15570.438336
8-0.084875-0.77330.220785
9-0.085086-0.77520.22022
10-0.13591-1.23820.109566
11-0.077978-0.71040.23972
12-0.047366-0.43150.333604
130.0396390.36110.359461
14-0.149539-1.36240.088384
15-0.093358-0.85050.198739
160.0407570.37130.355675
17-0.046669-0.42520.335904
180.0839430.76480.223293
190.0273390.24910.401959
200.175991.60330.056329
21-0.067829-0.61790.269151
22-0.053504-0.48740.313615
230.078860.71840.23725
240.1257591.14570.127602







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.001437-0.01310.494793
2-0.028971-0.26390.396242
3-0.012988-0.11830.453049
40.1187091.08150.141306
50.0467950.42630.335487
6-0.227117-2.06910.020822
70.0238520.21730.414253
8-0.111171-1.01280.157047
9-0.10841-0.98770.163094
10-0.09397-0.85610.197201
11-0.076884-0.70050.242802
12-0.100044-0.91140.182352
130.074440.67820.249771
14-0.18956-1.7270.043946
15-0.127753-1.16390.123903
16-0.009774-0.0890.464629
17-0.152951-1.39350.083602
180.0366640.3340.3696
190.0512580.4670.320866
200.0549090.50020.309112
21-0.120189-1.0950.138349
22-0.101913-0.92850.177928
23-0.052286-0.47630.317539
240.0827520.75390.226519

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.001437 & -0.0131 & 0.494793 \tabularnewline
2 & -0.028971 & -0.2639 & 0.396242 \tabularnewline
3 & -0.012988 & -0.1183 & 0.453049 \tabularnewline
4 & 0.118709 & 1.0815 & 0.141306 \tabularnewline
5 & 0.046795 & 0.4263 & 0.335487 \tabularnewline
6 & -0.227117 & -2.0691 & 0.020822 \tabularnewline
7 & 0.023852 & 0.2173 & 0.414253 \tabularnewline
8 & -0.111171 & -1.0128 & 0.157047 \tabularnewline
9 & -0.10841 & -0.9877 & 0.163094 \tabularnewline
10 & -0.09397 & -0.8561 & 0.197201 \tabularnewline
11 & -0.076884 & -0.7005 & 0.242802 \tabularnewline
12 & -0.100044 & -0.9114 & 0.182352 \tabularnewline
13 & 0.07444 & 0.6782 & 0.249771 \tabularnewline
14 & -0.18956 & -1.727 & 0.043946 \tabularnewline
15 & -0.127753 & -1.1639 & 0.123903 \tabularnewline
16 & -0.009774 & -0.089 & 0.464629 \tabularnewline
17 & -0.152951 & -1.3935 & 0.083602 \tabularnewline
18 & 0.036664 & 0.334 & 0.3696 \tabularnewline
19 & 0.051258 & 0.467 & 0.320866 \tabularnewline
20 & 0.054909 & 0.5002 & 0.309112 \tabularnewline
21 & -0.120189 & -1.095 & 0.138349 \tabularnewline
22 & -0.101913 & -0.9285 & 0.177928 \tabularnewline
23 & -0.052286 & -0.4763 & 0.317539 \tabularnewline
24 & 0.082752 & 0.7539 & 0.226519 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=232975&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.001437[/C][C]-0.0131[/C][C]0.494793[/C][/ROW]
[ROW][C]2[/C][C]-0.028971[/C][C]-0.2639[/C][C]0.396242[/C][/ROW]
[ROW][C]3[/C][C]-0.012988[/C][C]-0.1183[/C][C]0.453049[/C][/ROW]
[ROW][C]4[/C][C]0.118709[/C][C]1.0815[/C][C]0.141306[/C][/ROW]
[ROW][C]5[/C][C]0.046795[/C][C]0.4263[/C][C]0.335487[/C][/ROW]
[ROW][C]6[/C][C]-0.227117[/C][C]-2.0691[/C][C]0.020822[/C][/ROW]
[ROW][C]7[/C][C]0.023852[/C][C]0.2173[/C][C]0.414253[/C][/ROW]
[ROW][C]8[/C][C]-0.111171[/C][C]-1.0128[/C][C]0.157047[/C][/ROW]
[ROW][C]9[/C][C]-0.10841[/C][C]-0.9877[/C][C]0.163094[/C][/ROW]
[ROW][C]10[/C][C]-0.09397[/C][C]-0.8561[/C][C]0.197201[/C][/ROW]
[ROW][C]11[/C][C]-0.076884[/C][C]-0.7005[/C][C]0.242802[/C][/ROW]
[ROW][C]12[/C][C]-0.100044[/C][C]-0.9114[/C][C]0.182352[/C][/ROW]
[ROW][C]13[/C][C]0.07444[/C][C]0.6782[/C][C]0.249771[/C][/ROW]
[ROW][C]14[/C][C]-0.18956[/C][C]-1.727[/C][C]0.043946[/C][/ROW]
[ROW][C]15[/C][C]-0.127753[/C][C]-1.1639[/C][C]0.123903[/C][/ROW]
[ROW][C]16[/C][C]-0.009774[/C][C]-0.089[/C][C]0.464629[/C][/ROW]
[ROW][C]17[/C][C]-0.152951[/C][C]-1.3935[/C][C]0.083602[/C][/ROW]
[ROW][C]18[/C][C]0.036664[/C][C]0.334[/C][C]0.3696[/C][/ROW]
[ROW][C]19[/C][C]0.051258[/C][C]0.467[/C][C]0.320866[/C][/ROW]
[ROW][C]20[/C][C]0.054909[/C][C]0.5002[/C][C]0.309112[/C][/ROW]
[ROW][C]21[/C][C]-0.120189[/C][C]-1.095[/C][C]0.138349[/C][/ROW]
[ROW][C]22[/C][C]-0.101913[/C][C]-0.9285[/C][C]0.177928[/C][/ROW]
[ROW][C]23[/C][C]-0.052286[/C][C]-0.4763[/C][C]0.317539[/C][/ROW]
[ROW][C]24[/C][C]0.082752[/C][C]0.7539[/C][C]0.226519[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=232975&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=232975&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.001437-0.01310.494793
2-0.028971-0.26390.396242
3-0.012988-0.11830.453049
40.1187091.08150.141306
50.0467950.42630.335487
6-0.227117-2.06910.020822
70.0238520.21730.414253
8-0.111171-1.01280.157047
9-0.10841-0.98770.163094
10-0.09397-0.85610.197201
11-0.076884-0.70050.242802
12-0.100044-0.91140.182352
130.074440.67820.249771
14-0.18956-1.7270.043946
15-0.127753-1.16390.123903
16-0.009774-0.0890.464629
17-0.152951-1.39350.083602
180.0366640.3340.3696
190.0512580.4670.320866
200.0549090.50020.309112
21-0.120189-1.0950.138349
22-0.101913-0.92850.177928
23-0.052286-0.47630.317539
240.0827520.75390.226519



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