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, 14 Dec 2017 18:01:28 +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/2017/Dec/14/t1513271037o40i72reermi96s.htm/, Retrieved Tue, 14 May 2024 22:35:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=309564, Retrieved Tue, 14 May 2024 22:35:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact98
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2017-12-14 17:01:28] [c34712453b62a314277c4dd71143a000] [Current]
Feedback Forum

Post a new message
Dataseries X:
120.7
134.1
143.6
115.1
135.1
123.6
110.7
104.3
143.7
149.7
143.3
115.3
136.2
137.4
147.6
123.7
131.6
132.7
123
108.2
140.9
149.2
134.5
103.2
136.2
135.6
139.7
131
124.4
123.6
125.1
106.2
144.4
153.7
131.5
105.5
136.3
133.4
129.8
129.1
113
117.1
115.4
96.5
141
141.3
121
106
121.9
122.4
137.4
118.9
106.7
126.5
110.8
99.3
138.7
128.9
121.9
106
113.1
124.2
129.2
116.5
105.7
122
105.1
100.8
131.8
119.9
127.1
107.1
115.8
122.9
137.5
108.9
114.9
129.7
111.8
103.4
140.3
140.7
136.1
106.3
127.7
136.4
145.1
116.5
117.6
129
117.4
107.2
130.9
145.1
127.8
96.6
126
130.1
124.5
137.4
105.6
113.3
108.4
83.5
116.2
115.6
95.6
83.5
95.3
95.8
100.4
90.9
80
93.8
92.3
74.3
101.4
103.7
92.4
83.4
91.6
101.2
109.2
100.3
91
110.9
96.3
80.4
114.5
109.9
104.1
90.7
94.6
100.4
115.9
94.4
102.5
97.3
90
81.1
107.3
100.5
95.4
81.1
92.2
98.4
98.6
81.4
85.5
90.4
83.7
73.3
89.8
101.6
87.5
65.3
87.1
89.9
91.5
84.7
84.1
86.7
89.6
65.7
92.9
97.7
84.4
68.1
95
96.3
94.7
89.7
81.3
89.3
94.2
68.7
105.7
102
84.3
74.9
92.9
100.4
99.4
94.6
84
102.2
91.4
79.8
101
97.5
87.8
77.1
89.6
100.9
97.8
90.5
84.2
96.8
82.9
75.6
91.9
85.4
90.4
74
93.1
94.9
102.9
80.7
91.7
95.5
84.8
74.4




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time2 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309564&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]2 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=309564&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309564&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 Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R ServerBig Analytics Cloud Computing Center







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.552368-7.79210
2-0.017685-0.24950.401625
30.2987084.21381.9e-05
4-0.244675-3.45160.00034
5-0.009124-0.12870.44886
60.2838524.00424.4e-05
7-0.325748-4.59524e-06
80.1613922.27670.011934
90.1164361.64250.05103
10-0.249599-3.5210.000266
110.2158023.04430.001324
12-0.106822-1.50690.06671
13-0.101535-1.43230.076811
140.0890321.25590.105304
150.0954721.34680.089788
16-0.238256-3.3610.000465
170.2013392.84020.002488
18-0.077224-1.08940.138653
19-0.051408-0.72520.23459
200.0782141.10340.135604
21-0.042127-0.59430.276502
22-0.135624-1.91320.028578
230.282093.97944.8e-05

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.552368 & -7.7921 & 0 \tabularnewline
2 & -0.017685 & -0.2495 & 0.401625 \tabularnewline
3 & 0.298708 & 4.2138 & 1.9e-05 \tabularnewline
4 & -0.244675 & -3.4516 & 0.00034 \tabularnewline
5 & -0.009124 & -0.1287 & 0.44886 \tabularnewline
6 & 0.283852 & 4.0042 & 4.4e-05 \tabularnewline
7 & -0.325748 & -4.5952 & 4e-06 \tabularnewline
8 & 0.161392 & 2.2767 & 0.011934 \tabularnewline
9 & 0.116436 & 1.6425 & 0.05103 \tabularnewline
10 & -0.249599 & -3.521 & 0.000266 \tabularnewline
11 & 0.215802 & 3.0443 & 0.001324 \tabularnewline
12 & -0.106822 & -1.5069 & 0.06671 \tabularnewline
13 & -0.101535 & -1.4323 & 0.076811 \tabularnewline
14 & 0.089032 & 1.2559 & 0.105304 \tabularnewline
15 & 0.095472 & 1.3468 & 0.089788 \tabularnewline
16 & -0.238256 & -3.361 & 0.000465 \tabularnewline
17 & 0.201339 & 2.8402 & 0.002488 \tabularnewline
18 & -0.077224 & -1.0894 & 0.138653 \tabularnewline
19 & -0.051408 & -0.7252 & 0.23459 \tabularnewline
20 & 0.078214 & 1.1034 & 0.135604 \tabularnewline
21 & -0.042127 & -0.5943 & 0.276502 \tabularnewline
22 & -0.135624 & -1.9132 & 0.028578 \tabularnewline
23 & 0.28209 & 3.9794 & 4.8e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309564&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.552368[/C][C]-7.7921[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.017685[/C][C]-0.2495[/C][C]0.401625[/C][/ROW]
[ROW][C]3[/C][C]0.298708[/C][C]4.2138[/C][C]1.9e-05[/C][/ROW]
[ROW][C]4[/C][C]-0.244675[/C][C]-3.4516[/C][C]0.00034[/C][/ROW]
[ROW][C]5[/C][C]-0.009124[/C][C]-0.1287[/C][C]0.44886[/C][/ROW]
[ROW][C]6[/C][C]0.283852[/C][C]4.0042[/C][C]4.4e-05[/C][/ROW]
[ROW][C]7[/C][C]-0.325748[/C][C]-4.5952[/C][C]4e-06[/C][/ROW]
[ROW][C]8[/C][C]0.161392[/C][C]2.2767[/C][C]0.011934[/C][/ROW]
[ROW][C]9[/C][C]0.116436[/C][C]1.6425[/C][C]0.05103[/C][/ROW]
[ROW][C]10[/C][C]-0.249599[/C][C]-3.521[/C][C]0.000266[/C][/ROW]
[ROW][C]11[/C][C]0.215802[/C][C]3.0443[/C][C]0.001324[/C][/ROW]
[ROW][C]12[/C][C]-0.106822[/C][C]-1.5069[/C][C]0.06671[/C][/ROW]
[ROW][C]13[/C][C]-0.101535[/C][C]-1.4323[/C][C]0.076811[/C][/ROW]
[ROW][C]14[/C][C]0.089032[/C][C]1.2559[/C][C]0.105304[/C][/ROW]
[ROW][C]15[/C][C]0.095472[/C][C]1.3468[/C][C]0.089788[/C][/ROW]
[ROW][C]16[/C][C]-0.238256[/C][C]-3.361[/C][C]0.000465[/C][/ROW]
[ROW][C]17[/C][C]0.201339[/C][C]2.8402[/C][C]0.002488[/C][/ROW]
[ROW][C]18[/C][C]-0.077224[/C][C]-1.0894[/C][C]0.138653[/C][/ROW]
[ROW][C]19[/C][C]-0.051408[/C][C]-0.7252[/C][C]0.23459[/C][/ROW]
[ROW][C]20[/C][C]0.078214[/C][C]1.1034[/C][C]0.135604[/C][/ROW]
[ROW][C]21[/C][C]-0.042127[/C][C]-0.5943[/C][C]0.276502[/C][/ROW]
[ROW][C]22[/C][C]-0.135624[/C][C]-1.9132[/C][C]0.028578[/C][/ROW]
[ROW][C]23[/C][C]0.28209[/C][C]3.9794[/C][C]4.8e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=309564&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309564&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.552368-7.79210
2-0.017685-0.24950.401625
30.2987084.21381.9e-05
4-0.244675-3.45160.00034
5-0.009124-0.12870.44886
60.2838524.00424.4e-05
7-0.325748-4.59524e-06
80.1613922.27670.011934
90.1164361.64250.05103
10-0.249599-3.5210.000266
110.2158023.04430.001324
12-0.106822-1.50690.06671
13-0.101535-1.43230.076811
140.0890321.25590.105304
150.0954721.34680.089788
16-0.238256-3.3610.000465
170.2013392.84020.002488
18-0.077224-1.08940.138653
19-0.051408-0.72520.23459
200.0782141.10340.135604
21-0.042127-0.59430.276502
22-0.135624-1.91320.028578
230.282093.97944.8e-05







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.552368-7.79210
2-0.464527-6.5530
30.0510350.71990.236204
40.0194850.27490.391853
5-0.12074-1.70330.045041
60.1947082.74670.003286
7-0.006431-0.09070.463903
80.0339820.47940.316097
90.1384011.95240.026148
100.0101460.14310.443167
110.1016151.43350.076648
12-0.113021-1.59440.056222
13-0.15759-2.22310.013668
14-0.282517-3.98544.7e-05
150.0426260.60130.274156
16-0.068191-0.9620.16862
17-0.04612-0.65060.258027
18-0.00606-0.08550.465982
190.0330660.46650.320699
200.0355830.5020.308126
210.0100540.14180.443678
22-0.150536-2.12360.017471
230.1280981.8070.036133

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.552368 & -7.7921 & 0 \tabularnewline
2 & -0.464527 & -6.553 & 0 \tabularnewline
3 & 0.051035 & 0.7199 & 0.236204 \tabularnewline
4 & 0.019485 & 0.2749 & 0.391853 \tabularnewline
5 & -0.12074 & -1.7033 & 0.045041 \tabularnewline
6 & 0.194708 & 2.7467 & 0.003286 \tabularnewline
7 & -0.006431 & -0.0907 & 0.463903 \tabularnewline
8 & 0.033982 & 0.4794 & 0.316097 \tabularnewline
9 & 0.138401 & 1.9524 & 0.026148 \tabularnewline
10 & 0.010146 & 0.1431 & 0.443167 \tabularnewline
11 & 0.101615 & 1.4335 & 0.076648 \tabularnewline
12 & -0.113021 & -1.5944 & 0.056222 \tabularnewline
13 & -0.15759 & -2.2231 & 0.013668 \tabularnewline
14 & -0.282517 & -3.9854 & 4.7e-05 \tabularnewline
15 & 0.042626 & 0.6013 & 0.274156 \tabularnewline
16 & -0.068191 & -0.962 & 0.16862 \tabularnewline
17 & -0.04612 & -0.6506 & 0.258027 \tabularnewline
18 & -0.00606 & -0.0855 & 0.465982 \tabularnewline
19 & 0.033066 & 0.4665 & 0.320699 \tabularnewline
20 & 0.035583 & 0.502 & 0.308126 \tabularnewline
21 & 0.010054 & 0.1418 & 0.443678 \tabularnewline
22 & -0.150536 & -2.1236 & 0.017471 \tabularnewline
23 & 0.128098 & 1.807 & 0.036133 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309564&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.552368[/C][C]-7.7921[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.464527[/C][C]-6.553[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.051035[/C][C]0.7199[/C][C]0.236204[/C][/ROW]
[ROW][C]4[/C][C]0.019485[/C][C]0.2749[/C][C]0.391853[/C][/ROW]
[ROW][C]5[/C][C]-0.12074[/C][C]-1.7033[/C][C]0.045041[/C][/ROW]
[ROW][C]6[/C][C]0.194708[/C][C]2.7467[/C][C]0.003286[/C][/ROW]
[ROW][C]7[/C][C]-0.006431[/C][C]-0.0907[/C][C]0.463903[/C][/ROW]
[ROW][C]8[/C][C]0.033982[/C][C]0.4794[/C][C]0.316097[/C][/ROW]
[ROW][C]9[/C][C]0.138401[/C][C]1.9524[/C][C]0.026148[/C][/ROW]
[ROW][C]10[/C][C]0.010146[/C][C]0.1431[/C][C]0.443167[/C][/ROW]
[ROW][C]11[/C][C]0.101615[/C][C]1.4335[/C][C]0.076648[/C][/ROW]
[ROW][C]12[/C][C]-0.113021[/C][C]-1.5944[/C][C]0.056222[/C][/ROW]
[ROW][C]13[/C][C]-0.15759[/C][C]-2.2231[/C][C]0.013668[/C][/ROW]
[ROW][C]14[/C][C]-0.282517[/C][C]-3.9854[/C][C]4.7e-05[/C][/ROW]
[ROW][C]15[/C][C]0.042626[/C][C]0.6013[/C][C]0.274156[/C][/ROW]
[ROW][C]16[/C][C]-0.068191[/C][C]-0.962[/C][C]0.16862[/C][/ROW]
[ROW][C]17[/C][C]-0.04612[/C][C]-0.6506[/C][C]0.258027[/C][/ROW]
[ROW][C]18[/C][C]-0.00606[/C][C]-0.0855[/C][C]0.465982[/C][/ROW]
[ROW][C]19[/C][C]0.033066[/C][C]0.4665[/C][C]0.320699[/C][/ROW]
[ROW][C]20[/C][C]0.035583[/C][C]0.502[/C][C]0.308126[/C][/ROW]
[ROW][C]21[/C][C]0.010054[/C][C]0.1418[/C][C]0.443678[/C][/ROW]
[ROW][C]22[/C][C]-0.150536[/C][C]-2.1236[/C][C]0.017471[/C][/ROW]
[ROW][C]23[/C][C]0.128098[/C][C]1.807[/C][C]0.036133[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=309564&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309564&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.552368-7.79210
2-0.464527-6.5530
30.0510350.71990.236204
40.0194850.27490.391853
5-0.12074-1.70330.045041
60.1947082.74670.003286
7-0.006431-0.09070.463903
80.0339820.47940.316097
90.1384011.95240.026148
100.0101460.14310.443167
110.1016151.43350.076648
12-0.113021-1.59440.056222
13-0.15759-2.22310.013668
14-0.282517-3.98544.7e-05
150.0426260.60130.274156
16-0.068191-0.9620.16862
17-0.04612-0.65060.258027
18-0.00606-0.08550.465982
190.0330660.46650.320699
200.0355830.5020.308126
210.0100540.14180.443678
22-0.150536-2.12360.017471
230.1280981.8070.036133



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