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, 26 Nov 2015 11:57:02 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2015/Nov/26/t1448539042wt2gixl1llfutp2.htm/, Retrieved Tue, 14 May 2024 03:54:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=284194, Retrieved Tue, 14 May 2024 03:54:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact81
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Central Tendency] [Arabica Price in ...] [2008-01-06 21:28:17] [74be16979710d4c4e7c6647856088456]
- R  D  [Central Tendency] [Rekenkundig gemid...] [2015-11-25 11:25:04] [2e6b1bdc398efa0639617f5108875d85]
- RMPD      [(Partial) Autocorrelation Function] [Partiele autocorr...] [2015-11-26 11:57:02] [417cd1fa2ccbc3df120e1b65b71e6aee] [Current]
Feedback Forum

Post a new message
Dataseries X:
221
219
214
210
207
206
217
231
234
233
228
226
227
225
219
215
210
206
215
228
229
222
215
212
211
208
205
201
198
198
210
224
226
222
216
215
215
214
211
207
203
200
209
223
225
216
206
203
203
201
197
192
187
184
194
203
197
191
182
175
163
155
151
156
154
153
167
177
171
169
160
151
139
130
126
130
127
122
129
135
142
156
157
165
170
169
162
148
143
146
175
181
178
166
161
164
173
174
167
156
148
150
174
181
183
178
176
184
193
192
182
163
157
167
205
219
214
198
183
184
192
196
194
185
181
184
206
210
208
197
189
190
191
190
187
184
183
184
203
208
205
195
189
188
190
190
190
193
185
173
176
170
163
170
171
173
171
162
152
142
136
146
179
191
181
170
161
168
180
182
176
164
154
160
189
196
186
171
169
181
198
202
196
183
173
175
198
203
197
191
182
172
158
147
143
146
147
152
177
184
174
162
157
155
159
158
156
157
156
158
173
179
172
169
168
172
180
182
182
181
178
178
196
199
192
187
184
184
188
183
176
168
163
166
189
195
192
189
187
187
190
187
179
168
160
161
177
182
176




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284194&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'Gwilym Jenkins' @ jenkins.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.92410114.58210
20.785412.39340
30.67750910.69090
40.64073910.11070
50.65398410.31970
60.66200810.44630
70.6249719.86190
80.5650088.91570
90.5313548.38460
100.5483338.65260
110.5980769.43750
120.6135349.68140
130.5382828.4940
140.4310426.80170
150.3543925.59220
160.3256365.13850
170.3273455.16540
180.3195725.04280
190.2753574.34511e-05
200.2154433.39960.000393
210.182832.8850.002129
220.1976493.11890.001015
230.2426083.82838.2e-05

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.924101 & 14.5821 & 0 \tabularnewline
2 & 0.7854 & 12.3934 & 0 \tabularnewline
3 & 0.677509 & 10.6909 & 0 \tabularnewline
4 & 0.640739 & 10.1107 & 0 \tabularnewline
5 & 0.653984 & 10.3197 & 0 \tabularnewline
6 & 0.662008 & 10.4463 & 0 \tabularnewline
7 & 0.624971 & 9.8619 & 0 \tabularnewline
8 & 0.565008 & 8.9157 & 0 \tabularnewline
9 & 0.531354 & 8.3846 & 0 \tabularnewline
10 & 0.548333 & 8.6526 & 0 \tabularnewline
11 & 0.598076 & 9.4375 & 0 \tabularnewline
12 & 0.613534 & 9.6814 & 0 \tabularnewline
13 & 0.538282 & 8.494 & 0 \tabularnewline
14 & 0.431042 & 6.8017 & 0 \tabularnewline
15 & 0.354392 & 5.5922 & 0 \tabularnewline
16 & 0.325636 & 5.1385 & 0 \tabularnewline
17 & 0.327345 & 5.1654 & 0 \tabularnewline
18 & 0.319572 & 5.0428 & 0 \tabularnewline
19 & 0.275357 & 4.3451 & 1e-05 \tabularnewline
20 & 0.215443 & 3.3996 & 0.000393 \tabularnewline
21 & 0.18283 & 2.885 & 0.002129 \tabularnewline
22 & 0.197649 & 3.1189 & 0.001015 \tabularnewline
23 & 0.242608 & 3.8283 & 8.2e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=284194&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.924101[/C][C]14.5821[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]0.7854[/C][C]12.3934[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.677509[/C][C]10.6909[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.640739[/C][C]10.1107[/C][C]0[/C][/ROW]
[ROW][C]5[/C][C]0.653984[/C][C]10.3197[/C][C]0[/C][/ROW]
[ROW][C]6[/C][C]0.662008[/C][C]10.4463[/C][C]0[/C][/ROW]
[ROW][C]7[/C][C]0.624971[/C][C]9.8619[/C][C]0[/C][/ROW]
[ROW][C]8[/C][C]0.565008[/C][C]8.9157[/C][C]0[/C][/ROW]
[ROW][C]9[/C][C]0.531354[/C][C]8.3846[/C][C]0[/C][/ROW]
[ROW][C]10[/C][C]0.548333[/C][C]8.6526[/C][C]0[/C][/ROW]
[ROW][C]11[/C][C]0.598076[/C][C]9.4375[/C][C]0[/C][/ROW]
[ROW][C]12[/C][C]0.613534[/C][C]9.6814[/C][C]0[/C][/ROW]
[ROW][C]13[/C][C]0.538282[/C][C]8.494[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.431042[/C][C]6.8017[/C][C]0[/C][/ROW]
[ROW][C]15[/C][C]0.354392[/C][C]5.5922[/C][C]0[/C][/ROW]
[ROW][C]16[/C][C]0.325636[/C][C]5.1385[/C][C]0[/C][/ROW]
[ROW][C]17[/C][C]0.327345[/C][C]5.1654[/C][C]0[/C][/ROW]
[ROW][C]18[/C][C]0.319572[/C][C]5.0428[/C][C]0[/C][/ROW]
[ROW][C]19[/C][C]0.275357[/C][C]4.3451[/C][C]1e-05[/C][/ROW]
[ROW][C]20[/C][C]0.215443[/C][C]3.3996[/C][C]0.000393[/C][/ROW]
[ROW][C]21[/C][C]0.18283[/C][C]2.885[/C][C]0.002129[/C][/ROW]
[ROW][C]22[/C][C]0.197649[/C][C]3.1189[/C][C]0.001015[/C][/ROW]
[ROW][C]23[/C][C]0.242608[/C][C]3.8283[/C][C]8.2e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=284194&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284194&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.92410114.58210
20.785412.39340
30.67750910.69090
40.64073910.11070
50.65398410.31970
60.66200810.44630
70.6249719.86190
80.5650088.91570
90.5313548.38460
100.5483338.65260
110.5980769.43750
120.6135349.68140
130.5382828.4940
140.4310426.80170
150.3543925.59220
160.3256365.13850
170.3273455.16540
180.3195725.04280
190.2753574.34511e-05
200.2154433.39960.000393
210.182832.8850.002129
220.1976493.11890.001015
230.2426083.82838.2e-05







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.92410114.58210
2-0.469482-7.40830
30.3937156.21270
40.2109473.32870.000502
50.0752281.18710.118165
6-0.075353-1.1890.117777
7-0.098139-1.54860.061373
80.145532.29640.011241
90.1580182.49350.00665
100.1140761.80010.036528
110.0827521.30580.096412
12-0.255535-4.03233.7e-05
13-0.368474-5.81440
140.3365425.31050
15-0.124945-1.97160.024881
16-0.204361-3.22480.000715
170.022770.35930.359837
18-0.010126-0.15980.43659
190.0033290.05250.479074
20-0.00186-0.02930.488305
210.0544140.85860.195681
220.0761591.20180.115299
23-0.014635-0.23090.408775

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.924101 & 14.5821 & 0 \tabularnewline
2 & -0.469482 & -7.4083 & 0 \tabularnewline
3 & 0.393715 & 6.2127 & 0 \tabularnewline
4 & 0.210947 & 3.3287 & 0.000502 \tabularnewline
5 & 0.075228 & 1.1871 & 0.118165 \tabularnewline
6 & -0.075353 & -1.189 & 0.117777 \tabularnewline
7 & -0.098139 & -1.5486 & 0.061373 \tabularnewline
8 & 0.14553 & 2.2964 & 0.011241 \tabularnewline
9 & 0.158018 & 2.4935 & 0.00665 \tabularnewline
10 & 0.114076 & 1.8001 & 0.036528 \tabularnewline
11 & 0.082752 & 1.3058 & 0.096412 \tabularnewline
12 & -0.255535 & -4.0323 & 3.7e-05 \tabularnewline
13 & -0.368474 & -5.8144 & 0 \tabularnewline
14 & 0.336542 & 5.3105 & 0 \tabularnewline
15 & -0.124945 & -1.9716 & 0.024881 \tabularnewline
16 & -0.204361 & -3.2248 & 0.000715 \tabularnewline
17 & 0.02277 & 0.3593 & 0.359837 \tabularnewline
18 & -0.010126 & -0.1598 & 0.43659 \tabularnewline
19 & 0.003329 & 0.0525 & 0.479074 \tabularnewline
20 & -0.00186 & -0.0293 & 0.488305 \tabularnewline
21 & 0.054414 & 0.8586 & 0.195681 \tabularnewline
22 & 0.076159 & 1.2018 & 0.115299 \tabularnewline
23 & -0.014635 & -0.2309 & 0.408775 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=284194&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.924101[/C][C]14.5821[/C][C]0[/C][/ROW]
[ROW][C]2[/C][C]-0.469482[/C][C]-7.4083[/C][C]0[/C][/ROW]
[ROW][C]3[/C][C]0.393715[/C][C]6.2127[/C][C]0[/C][/ROW]
[ROW][C]4[/C][C]0.210947[/C][C]3.3287[/C][C]0.000502[/C][/ROW]
[ROW][C]5[/C][C]0.075228[/C][C]1.1871[/C][C]0.118165[/C][/ROW]
[ROW][C]6[/C][C]-0.075353[/C][C]-1.189[/C][C]0.117777[/C][/ROW]
[ROW][C]7[/C][C]-0.098139[/C][C]-1.5486[/C][C]0.061373[/C][/ROW]
[ROW][C]8[/C][C]0.14553[/C][C]2.2964[/C][C]0.011241[/C][/ROW]
[ROW][C]9[/C][C]0.158018[/C][C]2.4935[/C][C]0.00665[/C][/ROW]
[ROW][C]10[/C][C]0.114076[/C][C]1.8001[/C][C]0.036528[/C][/ROW]
[ROW][C]11[/C][C]0.082752[/C][C]1.3058[/C][C]0.096412[/C][/ROW]
[ROW][C]12[/C][C]-0.255535[/C][C]-4.0323[/C][C]3.7e-05[/C][/ROW]
[ROW][C]13[/C][C]-0.368474[/C][C]-5.8144[/C][C]0[/C][/ROW]
[ROW][C]14[/C][C]0.336542[/C][C]5.3105[/C][C]0[/C][/ROW]
[ROW][C]15[/C][C]-0.124945[/C][C]-1.9716[/C][C]0.024881[/C][/ROW]
[ROW][C]16[/C][C]-0.204361[/C][C]-3.2248[/C][C]0.000715[/C][/ROW]
[ROW][C]17[/C][C]0.02277[/C][C]0.3593[/C][C]0.359837[/C][/ROW]
[ROW][C]18[/C][C]-0.010126[/C][C]-0.1598[/C][C]0.43659[/C][/ROW]
[ROW][C]19[/C][C]0.003329[/C][C]0.0525[/C][C]0.479074[/C][/ROW]
[ROW][C]20[/C][C]-0.00186[/C][C]-0.0293[/C][C]0.488305[/C][/ROW]
[ROW][C]21[/C][C]0.054414[/C][C]0.8586[/C][C]0.195681[/C][/ROW]
[ROW][C]22[/C][C]0.076159[/C][C]1.2018[/C][C]0.115299[/C][/ROW]
[ROW][C]23[/C][C]-0.014635[/C][C]-0.2309[/C][C]0.408775[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=284194&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=284194&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.92410114.58210
2-0.469482-7.40830
30.3937156.21270
40.2109473.32870.000502
50.0752281.18710.118165
6-0.075353-1.1890.117777
7-0.098139-1.54860.061373
80.145532.29640.011241
90.1580182.49350.00665
100.1140761.80010.036528
110.0827521.30580.096412
12-0.255535-4.03233.7e-05
13-0.368474-5.81440
140.3365425.31050
15-0.124945-1.97160.024881
16-0.204361-3.22480.000715
170.022770.35930.359837
18-0.010126-0.15980.43659
190.0033290.05250.479074
20-0.00186-0.02930.488305
210.0544140.85860.195681
220.0761591.20180.115299
23-0.014635-0.23090.408775



Parameters (Session):
par1 = 12 ;
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')