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 computationTue, 12 Dec 2017 22:49:40 +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/12/t151311538975nl3hhdi1rct35.htm/, Retrieved Wed, 15 May 2024 15:59:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=309192, Retrieved Wed, 15 May 2024 15:59:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact72
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2017-12-12 21:49:40] [8829069b4432872c842806a35f4fa8df] [Current]
Feedback Forum

Post a new message
Dataseries X:
122.2
136.1
145.5
116.7
137.1
125.5
112.4
106.3
145.7
151.5
144.6
116.4
137.7
138.8
149.5
125
133.4
134.4
124.8
110.6
142.4
149.6
134.6
103.3
136.5
137.1
140.7
131.4
126.2
125.3
126.6
107.7
144.5
154.2
131.4
105.7
136.2
133.3
130
129.3
113.1
117.7
116.3
97.3
140.6
141.2
120.8
106.2
121.5
122.6
137.2
118.9
107.2
127.4
111.8
100
138.3
128
121.2
105.9
112.5
123.1
129
115.5
105.7
122.3
106.4
101.1
131.6
119.5
127
106.9
115.9
122.7
137.2
108.5
115.2
129.4
112.3
104.3
140
139.9
134.9
105.1
127
135.5
143.9
115.8
117.5
129.3
117.9
108.1
131.7
143.7
126.2
96.9
125.8
129.6
124.9
136.8
107.5
114.3
110.3
85.5
116.8
115.1
95.2
83.4
95.4
96.3
100.5
90.9
80.6
94.8
93.9
75.9
101.6
103.3
91.8
83.5
92
101.2
109.1
99.8
90.8
110.6
97.8
81.9
114.4
108.8
103.1
90.4
94.4
100.5
115.1
93.9
102.5
97.1
91.2
82.3
107.1
99.2
94.8
81.1
92.5
97.7
98.5
81.2
86.2
92
86.3
74.8
90
101.1
87.8
66.3
88.6
90
92
85.1
85.9
88.5
92.3
68
93.6
97.7
85.1
69.9
96.1
97
95.9
91.3
83.5
91.4
96.8
71
106.9
102.7
84.9
75.8
93.6
100.7
100.5
95.9
85.7
104.1
93.5
81.5
102.1
98.2
88.4
77.8
90.1
101
98.6
91.5
86.4
98.9
85.2
77.3
93
86.8
91.3
74.9
93.9
95
103.1
81.4
93.1
97.2
86.4
75.5




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309192&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]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=309192&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309192&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 time1 seconds
R ServerBig Analytics Cloud Computing Center







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.69052910.05430
20.5548168.07820
30.6339769.23080
40.7367910.72780
50.6607589.62080
60.6402919.32280
70.6338189.22850
80.71611810.42680
90.5694448.29120
100.4615986.7210
110.5940218.64910
120.80454311.71430
130.541527.88460
140.4181256.0880
150.4687336.82490
160.5692518.28840
170.5169787.52730
180.4586366.67780
190.4695816.83720
200.5464737.95680
210.3912935.69730
220.3151644.58894e-06
230.452996.59560
240.6186989.00840

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.690529 & 10.0543 & 0 \tabularnewline
2 & 0.554816 & 8.0782 & 0 \tabularnewline
3 & 0.633976 & 9.2308 & 0 \tabularnewline
4 & 0.73679 & 10.7278 & 0 \tabularnewline
5 & 0.660758 & 9.6208 & 0 \tabularnewline
6 & 0.640291 & 9.3228 & 0 \tabularnewline
7 & 0.633818 & 9.2285 & 0 \tabularnewline
8 & 0.716118 & 10.4268 & 0 \tabularnewline
9 & 0.569444 & 8.2912 & 0 \tabularnewline
10 & 0.461598 & 6.721 & 0 \tabularnewline
11 & 0.594021 & 8.6491 & 0 \tabularnewline
12 & 0.804543 & 11.7143 & 0 \tabularnewline
13 & 0.54152 & 7.8846 & 0 \tabularnewline
14 & 0.418125 & 6.088 & 0 \tabularnewline
15 & 0.468733 & 6.8249 & 0 \tabularnewline
16 & 0.569251 & 8.2884 & 0 \tabularnewline
17 & 0.516978 & 7.5273 & 0 \tabularnewline
18 & 0.458636 & 6.6778 & 0 \tabularnewline
19 & 0.469581 & 6.8372 & 0 \tabularnewline
20 & 0.546473 & 7.9568 & 0 \tabularnewline
21 & 0.391293 & 5.6973 & 0 \tabularnewline
22 & 0.315164 & 4.5889 & 4e-06 \tabularnewline
23 & 0.45299 & 6.5956 & 0 \tabularnewline
24 & 0.618698 & 9.0084 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309192&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.690529[/C][C]10.0543[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.554816[/C][C]8.0782[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.633976[/C][C]9.2308[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.73679[/C][C]10.7278[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.660758[/C][C]9.6208[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.640291[/C][C]9.3228[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.633818[/C][C]9.2285[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.716118[/C][C]10.4268[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.569444[/C][C]8.2912[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.461598[/C][C]6.721[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]0.594021[/C][C]8.6491[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.804543[/C][C]11.7143[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.54152[/C][C]7.8846[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.418125[/C][C]6.088[/C][C]0[/C][/ROW]
[ROW][C]15[/C][C]0.468733[/C][C]6.8249[/C][C]0[/C][/ROW]
[ROW][C]16[/C][C]0.569251[/C][C]8.2884[/C][C]0[/C][/ROW]
[ROW][C]17[/C][C]0.516978[/C][C]7.5273[/C][C]0[/C][/ROW]
[ROW][C]18[/C][C]0.458636[/C][C]6.6778[/C][C]0[/C][/ROW]
[ROW][C]19[/C][C]0.469581[/C][C]6.8372[/C][C]0[/C][/ROW]
[ROW][C]20[/C][C]0.546473[/C][C]7.9568[/C][C]0[/C][/ROW]
[ROW][C]21[/C][C]0.391293[/C][C]5.6973[/C][C]0[/C][/ROW]
[ROW][C]22[/C][C]0.315164[/C][C]4.5889[/C][C]4e-06[/C][/ROW]
[ROW][C]23[/C][C]0.45299[/C][C]6.5956[/C][C]0[/C][/ROW]
[ROW][C]24[/C][C]0.618698[/C][C]9.0084[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=309192&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309192&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.69052910.05430
20.5548168.07820
30.6339769.23080
40.7367910.72780
50.6607589.62080
60.6402919.32280
70.6338189.22850
80.71611810.42680
90.5694448.29120
100.4615986.7210
110.5940218.64910
120.80454311.71430
130.541527.88460
140.4181256.0880
150.4687336.82490
160.5692518.28840
170.5169787.52730
180.4586366.67780
190.4695816.83720
200.5464737.95680
210.3912935.69730
220.3151644.58894e-06
230.452996.59560
240.6186989.00840







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.69052910.05430
20.1490642.17040.015544
30.4008175.8360
40.4037075.87810
50.1136041.65410.049793
60.2264923.29780.000571
70.0537140.78210.217517
80.2799734.07653.2e-05
9-0.277165-4.03563.8e-05
10-0.3012-4.38559e-06
110.102071.48620.069361
120.4892237.12320
13-0.396929-5.77940
14-0.220954-3.21710.000749
15-0.145909-2.12450.017394
160.0451640.65760.255757
170.1198721.74540.041186
18-0.051025-0.74290.229173
190.0691061.00620.157733
20-0.040561-0.59060.277718
210.0219430.31950.374834
220.1572632.28980.011509
230.0752111.09510.137361
240.1026831.49510.06819

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.690529 & 10.0543 & 0 \tabularnewline
2 & 0.149064 & 2.1704 & 0.015544 \tabularnewline
3 & 0.400817 & 5.836 & 0 \tabularnewline
4 & 0.403707 & 5.8781 & 0 \tabularnewline
5 & 0.113604 & 1.6541 & 0.049793 \tabularnewline
6 & 0.226492 & 3.2978 & 0.000571 \tabularnewline
7 & 0.053714 & 0.7821 & 0.217517 \tabularnewline
8 & 0.279973 & 4.0765 & 3.2e-05 \tabularnewline
9 & -0.277165 & -4.0356 & 3.8e-05 \tabularnewline
10 & -0.3012 & -4.3855 & 9e-06 \tabularnewline
11 & 0.10207 & 1.4862 & 0.069361 \tabularnewline
12 & 0.489223 & 7.1232 & 0 \tabularnewline
13 & -0.396929 & -5.7794 & 0 \tabularnewline
14 & -0.220954 & -3.2171 & 0.000749 \tabularnewline
15 & -0.145909 & -2.1245 & 0.017394 \tabularnewline
16 & 0.045164 & 0.6576 & 0.255757 \tabularnewline
17 & 0.119872 & 1.7454 & 0.041186 \tabularnewline
18 & -0.051025 & -0.7429 & 0.229173 \tabularnewline
19 & 0.069106 & 1.0062 & 0.157733 \tabularnewline
20 & -0.040561 & -0.5906 & 0.277718 \tabularnewline
21 & 0.021943 & 0.3195 & 0.374834 \tabularnewline
22 & 0.157263 & 2.2898 & 0.011509 \tabularnewline
23 & 0.075211 & 1.0951 & 0.137361 \tabularnewline
24 & 0.102683 & 1.4951 & 0.06819 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=309192&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.690529[/C][C]10.0543[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.149064[/C][C]2.1704[/C][C]0.015544[/C][/ROW]
[ROW][C]3[/C][C]0.400817[/C][C]5.836[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.403707[/C][C]5.8781[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.113604[/C][C]1.6541[/C][C]0.049793[/C][/ROW]
[ROW][C]6[/C][C]0.226492[/C][C]3.2978[/C][C]0.000571[/C][/ROW]
[ROW][C]7[/C][C]0.053714[/C][C]0.7821[/C][C]0.217517[/C][/ROW]
[ROW][C]8[/C][C]0.279973[/C][C]4.0765[/C][C]3.2e-05[/C][/ROW]
[ROW][C]9[/C][C]-0.277165[/C][C]-4.0356[/C][C]3.8e-05[/C][/ROW]
[ROW][C]10[/C][C]-0.3012[/C][C]-4.3855[/C][C]9e-06[/C][/ROW]
[ROW][C]11[/C][C]0.10207[/C][C]1.4862[/C][C]0.069361[/C][/ROW]
[ROW][C]12[/C][C]0.489223[/C][C]7.1232[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]-0.396929[/C][C]-5.7794[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]-0.220954[/C][C]-3.2171[/C][C]0.000749[/C][/ROW]
[ROW][C]15[/C][C]-0.145909[/C][C]-2.1245[/C][C]0.017394[/C][/ROW]
[ROW][C]16[/C][C]0.045164[/C][C]0.6576[/C][C]0.255757[/C][/ROW]
[ROW][C]17[/C][C]0.119872[/C][C]1.7454[/C][C]0.041186[/C][/ROW]
[ROW][C]18[/C][C]-0.051025[/C][C]-0.7429[/C][C]0.229173[/C][/ROW]
[ROW][C]19[/C][C]0.069106[/C][C]1.0062[/C][C]0.157733[/C][/ROW]
[ROW][C]20[/C][C]-0.040561[/C][C]-0.5906[/C][C]0.277718[/C][/ROW]
[ROW][C]21[/C][C]0.021943[/C][C]0.3195[/C][C]0.374834[/C][/ROW]
[ROW][C]22[/C][C]0.157263[/C][C]2.2898[/C][C]0.011509[/C][/ROW]
[ROW][C]23[/C][C]0.075211[/C][C]1.0951[/C][C]0.137361[/C][/ROW]
[ROW][C]24[/C][C]0.102683[/C][C]1.4951[/C][C]0.06819[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=309192&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=309192&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.69052910.05430
20.1490642.17040.015544
30.4008175.8360
40.4037075.87810
50.1136041.65410.049793
60.2264923.29780.000571
70.0537140.78210.217517
80.2799734.07653.2e-05
9-0.277165-4.03563.8e-05
10-0.3012-4.38559e-06
110.102071.48620.069361
120.4892237.12320
13-0.396929-5.77940
14-0.220954-3.21710.000749
15-0.145909-2.12450.017394
160.0451640.65760.255757
170.1198721.74540.041186
18-0.051025-0.74290.229173
190.0691061.00620.157733
20-0.040561-0.59060.277718
210.0219430.31950.374834
220.1572632.28980.011509
230.0752111.09510.137361
240.1026831.49510.06819



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