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 computationFri, 18 Dec 2015 21:29:22 +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/Dec/18/t1450474238lf2xcfb350wo6tb.htm/, Retrieved Thu, 16 May 2024 14:54:51 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=286933, Retrieved Thu, 16 May 2024 14:54:51 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact80
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Autocorrelation H...] [2015-12-18 21:29:22] [07325d4e03e5d5deea478d79524d9715] [Current]
Feedback Forum

Post a new message
Dataseries X:
0.5215052
0.4248284
0.4250311
0.4771938
0.8280212
0.6156186
0.366627
0.4308883
0.2810287
0.4646245
0.2693951
0.5779049
0.5661151
0.5077584
0.7507175
0.6808395
0.7661091
0.4561473
0.4977496
0.4193273
0.6095514
0.457337
0.5705478
0.3478996
0.3874993
0.5824285
0.2391033
0.2367445
0.2626158
0.4240934
0.365275
0.3750758
0.4090056
0.3891676
0.240261
0.1589496
0.4393373
0.5094681
0.3743465
0.4339828
0.4130557
0.3288928
0.5186648
0.5486504
0.5469111
0.4963494
0.5308929
0.5957761
0.5570584
0.5731325
0.5005416
0.5431269
0.5593657
0.6911693
0.4403485
0.5676662
0.5969114
0.4735537
0.5923935
0.5975556
0.6334127
0.6057115
0.7046107
0.4805263
0.702686
0.7009017
0.6030854
0.6980919
0.597656
0.8023421
0.6017109
0.5993127
0.6025625
0.7016625
0.4995714
0.4980918
0.497569
0.600183
0.3339542
0.274437
0.3209428
0.5406671
0.4050209
0.2885961
0.3275942
0.3132606
0.2575562
0.2138386
0.1861856
0.1592713




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286933&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'George Udny Yule' @ yule.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.515895-4.5271.1e-05
20.1585751.39150.084042
3-0.161575-1.41780.08014
40.0950750.83430.203353
5-0.046465-0.40770.342303
6-0.074434-0.65320.257801
70.1987871.74430.042544
8-0.170806-1.49880.069005
90.1961781.72150.044592
10-0.27953-2.45290.008217
110.4417173.8760.000111
12-0.462379-4.05745.9e-05
130.1470461.29030.1004
14-0.030961-0.27170.393299
150.0465830.40880.341925
16-0.053914-0.47310.318743
170.0611480.53660.296555
180.0815450.71560.238216
19-0.17395-1.52640.065504

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.515895 & -4.527 & 1.1e-05 \tabularnewline
2 & 0.158575 & 1.3915 & 0.084042 \tabularnewline
3 & -0.161575 & -1.4178 & 0.08014 \tabularnewline
4 & 0.095075 & 0.8343 & 0.203353 \tabularnewline
5 & -0.046465 & -0.4077 & 0.342303 \tabularnewline
6 & -0.074434 & -0.6532 & 0.257801 \tabularnewline
7 & 0.198787 & 1.7443 & 0.042544 \tabularnewline
8 & -0.170806 & -1.4988 & 0.069005 \tabularnewline
9 & 0.196178 & 1.7215 & 0.044592 \tabularnewline
10 & -0.27953 & -2.4529 & 0.008217 \tabularnewline
11 & 0.441717 & 3.876 & 0.000111 \tabularnewline
12 & -0.462379 & -4.0574 & 5.9e-05 \tabularnewline
13 & 0.147046 & 1.2903 & 0.1004 \tabularnewline
14 & -0.030961 & -0.2717 & 0.393299 \tabularnewline
15 & 0.046583 & 0.4088 & 0.341925 \tabularnewline
16 & -0.053914 & -0.4731 & 0.318743 \tabularnewline
17 & 0.061148 & 0.5366 & 0.296555 \tabularnewline
18 & 0.081545 & 0.7156 & 0.238216 \tabularnewline
19 & -0.17395 & -1.5264 & 0.065504 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286933&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.515895[/C][C]-4.527[/C][C]1.1e-05[/C][/ROW]
[ROW][C]2[/C][C]0.158575[/C][C]1.3915[/C][C]0.084042[/C][/ROW]
[ROW][C]3[/C][C]-0.161575[/C][C]-1.4178[/C][C]0.08014[/C][/ROW]
[ROW][C]4[/C][C]0.095075[/C][C]0.8343[/C][C]0.203353[/C][/ROW]
[ROW][C]5[/C][C]-0.046465[/C][C]-0.4077[/C][C]0.342303[/C][/ROW]
[ROW][C]6[/C][C]-0.074434[/C][C]-0.6532[/C][C]0.257801[/C][/ROW]
[ROW][C]7[/C][C]0.198787[/C][C]1.7443[/C][C]0.042544[/C][/ROW]
[ROW][C]8[/C][C]-0.170806[/C][C]-1.4988[/C][C]0.069005[/C][/ROW]
[ROW][C]9[/C][C]0.196178[/C][C]1.7215[/C][C]0.044592[/C][/ROW]
[ROW][C]10[/C][C]-0.27953[/C][C]-2.4529[/C][C]0.008217[/C][/ROW]
[ROW][C]11[/C][C]0.441717[/C][C]3.876[/C][C]0.000111[/C][/ROW]
[ROW][C]12[/C][C]-0.462379[/C][C]-4.0574[/C][C]5.9e-05[/C][/ROW]
[ROW][C]13[/C][C]0.147046[/C][C]1.2903[/C][C]0.1004[/C][/ROW]
[ROW][C]14[/C][C]-0.030961[/C][C]-0.2717[/C][C]0.393299[/C][/ROW]
[ROW][C]15[/C][C]0.046583[/C][C]0.4088[/C][C]0.341925[/C][/ROW]
[ROW][C]16[/C][C]-0.053914[/C][C]-0.4731[/C][C]0.318743[/C][/ROW]
[ROW][C]17[/C][C]0.061148[/C][C]0.5366[/C][C]0.296555[/C][/ROW]
[ROW][C]18[/C][C]0.081545[/C][C]0.7156[/C][C]0.238216[/C][/ROW]
[ROW][C]19[/C][C]-0.17395[/C][C]-1.5264[/C][C]0.065504[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286933&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286933&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.515895-4.5271.1e-05
20.1585751.39150.084042
3-0.161575-1.41780.08014
40.0950750.83430.203353
5-0.046465-0.40770.342303
6-0.074434-0.65320.257801
70.1987871.74430.042544
8-0.170806-1.49880.069005
90.1961781.72150.044592
10-0.27953-2.45290.008217
110.4417173.8760.000111
12-0.462379-4.05745.9e-05
130.1470461.29030.1004
14-0.030961-0.27170.393299
150.0465830.40880.341925
16-0.053914-0.47310.318743
170.0611480.53660.296555
180.0815450.71560.238216
19-0.17395-1.52640.065504







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.515895-4.5271.1e-05
2-0.146586-1.28630.101099
3-0.199695-1.75230.04185
4-0.096127-0.84350.200777
5-0.059967-0.52620.300128
6-0.190561-1.67220.049275
70.0996650.87460.192267
8-0.02995-0.26280.3967
90.1306711.14660.127542
10-0.128667-1.1290.131192
110.3484823.05790.001532
12-0.133622-1.17250.122299
13-0.182912-1.6050.056289
14-0.063438-0.55670.289685
15-0.061901-0.54320.294287
16-0.169691-1.4890.070282
170.0837150.73460.232408
180.0113190.09930.460571
19-0.002493-0.02190.4913

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.515895 & -4.527 & 1.1e-05 \tabularnewline
2 & -0.146586 & -1.2863 & 0.101099 \tabularnewline
3 & -0.199695 & -1.7523 & 0.04185 \tabularnewline
4 & -0.096127 & -0.8435 & 0.200777 \tabularnewline
5 & -0.059967 & -0.5262 & 0.300128 \tabularnewline
6 & -0.190561 & -1.6722 & 0.049275 \tabularnewline
7 & 0.099665 & 0.8746 & 0.192267 \tabularnewline
8 & -0.02995 & -0.2628 & 0.3967 \tabularnewline
9 & 0.130671 & 1.1466 & 0.127542 \tabularnewline
10 & -0.128667 & -1.129 & 0.131192 \tabularnewline
11 & 0.348482 & 3.0579 & 0.001532 \tabularnewline
12 & -0.133622 & -1.1725 & 0.122299 \tabularnewline
13 & -0.182912 & -1.605 & 0.056289 \tabularnewline
14 & -0.063438 & -0.5567 & 0.289685 \tabularnewline
15 & -0.061901 & -0.5432 & 0.294287 \tabularnewline
16 & -0.169691 & -1.489 & 0.070282 \tabularnewline
17 & 0.083715 & 0.7346 & 0.232408 \tabularnewline
18 & 0.011319 & 0.0993 & 0.460571 \tabularnewline
19 & -0.002493 & -0.0219 & 0.4913 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=286933&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.515895[/C][C]-4.527[/C][C]1.1e-05[/C][/ROW]
[ROW][C]2[/C][C]-0.146586[/C][C]-1.2863[/C][C]0.101099[/C][/ROW]
[ROW][C]3[/C][C]-0.199695[/C][C]-1.7523[/C][C]0.04185[/C][/ROW]
[ROW][C]4[/C][C]-0.096127[/C][C]-0.8435[/C][C]0.200777[/C][/ROW]
[ROW][C]5[/C][C]-0.059967[/C][C]-0.5262[/C][C]0.300128[/C][/ROW]
[ROW][C]6[/C][C]-0.190561[/C][C]-1.6722[/C][C]0.049275[/C][/ROW]
[ROW][C]7[/C][C]0.099665[/C][C]0.8746[/C][C]0.192267[/C][/ROW]
[ROW][C]8[/C][C]-0.02995[/C][C]-0.2628[/C][C]0.3967[/C][/ROW]
[ROW][C]9[/C][C]0.130671[/C][C]1.1466[/C][C]0.127542[/C][/ROW]
[ROW][C]10[/C][C]-0.128667[/C][C]-1.129[/C][C]0.131192[/C][/ROW]
[ROW][C]11[/C][C]0.348482[/C][C]3.0579[/C][C]0.001532[/C][/ROW]
[ROW][C]12[/C][C]-0.133622[/C][C]-1.1725[/C][C]0.122299[/C][/ROW]
[ROW][C]13[/C][C]-0.182912[/C][C]-1.605[/C][C]0.056289[/C][/ROW]
[ROW][C]14[/C][C]-0.063438[/C][C]-0.5567[/C][C]0.289685[/C][/ROW]
[ROW][C]15[/C][C]-0.061901[/C][C]-0.5432[/C][C]0.294287[/C][/ROW]
[ROW][C]16[/C][C]-0.169691[/C][C]-1.489[/C][C]0.070282[/C][/ROW]
[ROW][C]17[/C][C]0.083715[/C][C]0.7346[/C][C]0.232408[/C][/ROW]
[ROW][C]18[/C][C]0.011319[/C][C]0.0993[/C][C]0.460571[/C][/ROW]
[ROW][C]19[/C][C]-0.002493[/C][C]-0.0219[/C][C]0.4913[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=286933&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=286933&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.515895-4.5271.1e-05
2-0.146586-1.28630.101099
3-0.199695-1.75230.04185
4-0.096127-0.84350.200777
5-0.059967-0.52620.300128
6-0.190561-1.67220.049275
70.0996650.87460.192267
8-0.02995-0.26280.3967
90.1306711.14660.127542
10-0.128667-1.1290.131192
110.3484823.05790.001532
12-0.133622-1.17250.122299
13-0.182912-1.6050.056289
14-0.063438-0.55670.289685
15-0.061901-0.54320.294287
16-0.169691-1.4890.070282
170.0837150.73460.232408
180.0113190.09930.460571
19-0.002493-0.02190.4913



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):
par8 <- ''
par7 <- '0.95'
par6 <- 'White Noise'
par5 <- '12'
par4 <- '0'
par3 <- '0'
par2 <- '1'
par1 <- 'Default'
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,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')