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 computationMon, 11 Jan 2016 09:33:40 +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/2016/Jan/11/t1452504842s0rkd2odxw51554.htm/, Retrieved Tue, 07 May 2024 15:13:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=289049, Retrieved Tue, 07 May 2024 15:13:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact59
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2016-01-11 09:33:40] [6cf57776255494a6af833f6d307616b2] [Current]
Feedback Forum

Post a new message
Dataseries X:
3035
2552
2704
2554
2014
1655
1721
1524
1596
2074
2199
2512
2933
2889
2938
2497
1870
1726
1607
1545
1396
1787
2076
2837
2787
3891
3179
2011
1636
1580
1489
1300
1356
1653
2013
2823
3102
2294
2385
2444
1748
1554
1498
1361
1346
1564
1640
2293
2815
3137
2679
1969
1870
1633
1529
1366
1357
1570
1535
2491
3084
2605
2573
2143
1693
1504
1461
1354
1333
1492
1781
1915




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.067080.51960.302626
2-0.303305-2.34940.011057
3-0.045585-0.35310.362624
40.0073020.05660.477543
5-0.113995-0.8830.19038
6-0.013263-0.10270.459258
70.0369040.28590.387986
8-0.070992-0.54990.292215
90.1066350.8260.206042
100.407063.15310.001262
110.002030.01570.493752
12-0.522428-4.04677.5e-05
130.0135440.10490.458397
140.1088490.84310.201249
15-0.091634-0.70980.24029
160.0196520.15220.439761
170.0964030.74670.229071
18-0.011563-0.08960.464464

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.06708 & 0.5196 & 0.302626 \tabularnewline
2 & -0.303305 & -2.3494 & 0.011057 \tabularnewline
3 & -0.045585 & -0.3531 & 0.362624 \tabularnewline
4 & 0.007302 & 0.0566 & 0.477543 \tabularnewline
5 & -0.113995 & -0.883 & 0.19038 \tabularnewline
6 & -0.013263 & -0.1027 & 0.459258 \tabularnewline
7 & 0.036904 & 0.2859 & 0.387986 \tabularnewline
8 & -0.070992 & -0.5499 & 0.292215 \tabularnewline
9 & 0.106635 & 0.826 & 0.206042 \tabularnewline
10 & 0.40706 & 3.1531 & 0.001262 \tabularnewline
11 & 0.00203 & 0.0157 & 0.493752 \tabularnewline
12 & -0.522428 & -4.0467 & 7.5e-05 \tabularnewline
13 & 0.013544 & 0.1049 & 0.458397 \tabularnewline
14 & 0.108849 & 0.8431 & 0.201249 \tabularnewline
15 & -0.091634 & -0.7098 & 0.24029 \tabularnewline
16 & 0.019652 & 0.1522 & 0.439761 \tabularnewline
17 & 0.096403 & 0.7467 & 0.229071 \tabularnewline
18 & -0.011563 & -0.0896 & 0.464464 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=289049&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.06708[/C][C]0.5196[/C][C]0.302626[/C][/ROW]
[ROW][C]2[/C][C]-0.303305[/C][C]-2.3494[/C][C]0.011057[/C][/ROW]
[ROW][C]3[/C][C]-0.045585[/C][C]-0.3531[/C][C]0.362624[/C][/ROW]
[ROW][C]4[/C][C]0.007302[/C][C]0.0566[/C][C]0.477543[/C][/ROW]
[ROW][C]5[/C][C]-0.113995[/C][C]-0.883[/C][C]0.19038[/C][/ROW]
[ROW][C]6[/C][C]-0.013263[/C][C]-0.1027[/C][C]0.459258[/C][/ROW]
[ROW][C]7[/C][C]0.036904[/C][C]0.2859[/C][C]0.387986[/C][/ROW]
[ROW][C]8[/C][C]-0.070992[/C][C]-0.5499[/C][C]0.292215[/C][/ROW]
[ROW][C]9[/C][C]0.106635[/C][C]0.826[/C][C]0.206042[/C][/ROW]
[ROW][C]10[/C][C]0.40706[/C][C]3.1531[/C][C]0.001262[/C][/ROW]
[ROW][C]11[/C][C]0.00203[/C][C]0.0157[/C][C]0.493752[/C][/ROW]
[ROW][C]12[/C][C]-0.522428[/C][C]-4.0467[/C][C]7.5e-05[/C][/ROW]
[ROW][C]13[/C][C]0.013544[/C][C]0.1049[/C][C]0.458397[/C][/ROW]
[ROW][C]14[/C][C]0.108849[/C][C]0.8431[/C][C]0.201249[/C][/ROW]
[ROW][C]15[/C][C]-0.091634[/C][C]-0.7098[/C][C]0.24029[/C][/ROW]
[ROW][C]16[/C][C]0.019652[/C][C]0.1522[/C][C]0.439761[/C][/ROW]
[ROW][C]17[/C][C]0.096403[/C][C]0.7467[/C][C]0.229071[/C][/ROW]
[ROW][C]18[/C][C]-0.011563[/C][C]-0.0896[/C][C]0.464464[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=289049&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=289049&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.067080.51960.302626
2-0.303305-2.34940.011057
3-0.045585-0.35310.362624
40.0073020.05660.477543
5-0.113995-0.8830.19038
6-0.013263-0.10270.459258
70.0369040.28590.387986
8-0.070992-0.54990.292215
90.1066350.8260.206042
100.407063.15310.001262
110.002030.01570.493752
12-0.522428-4.04677.5e-05
130.0135440.10490.458397
140.1088490.84310.201249
15-0.091634-0.70980.24029
160.0196520.15220.439761
170.0964030.74670.229071
18-0.011563-0.08960.464464







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.067080.51960.302626
2-0.309196-2.3950.009879
30.0019910.01540.493874
4-0.091783-0.71090.239937
5-0.135333-1.04830.149357
6-0.021527-0.16670.434065
7-0.049629-0.38440.35101
8-0.10434-0.80820.21108
90.1216690.94240.174872
100.3721472.88260.002733
110.0258750.20040.420914
12-0.379091-2.93640.002351
130.1341221.03890.151509
14-0.095038-0.73620.232251
15-0.049049-0.37990.352668
160.0458280.3550.361923
17-0.022865-0.17710.430009
18-0.005445-0.04220.483248

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.06708 & 0.5196 & 0.302626 \tabularnewline
2 & -0.309196 & -2.395 & 0.009879 \tabularnewline
3 & 0.001991 & 0.0154 & 0.493874 \tabularnewline
4 & -0.091783 & -0.7109 & 0.239937 \tabularnewline
5 & -0.135333 & -1.0483 & 0.149357 \tabularnewline
6 & -0.021527 & -0.1667 & 0.434065 \tabularnewline
7 & -0.049629 & -0.3844 & 0.35101 \tabularnewline
8 & -0.10434 & -0.8082 & 0.21108 \tabularnewline
9 & 0.121669 & 0.9424 & 0.174872 \tabularnewline
10 & 0.372147 & 2.8826 & 0.002733 \tabularnewline
11 & 0.025875 & 0.2004 & 0.420914 \tabularnewline
12 & -0.379091 & -2.9364 & 0.002351 \tabularnewline
13 & 0.134122 & 1.0389 & 0.151509 \tabularnewline
14 & -0.095038 & -0.7362 & 0.232251 \tabularnewline
15 & -0.049049 & -0.3799 & 0.352668 \tabularnewline
16 & 0.045828 & 0.355 & 0.361923 \tabularnewline
17 & -0.022865 & -0.1771 & 0.430009 \tabularnewline
18 & -0.005445 & -0.0422 & 0.483248 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=289049&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.06708[/C][C]0.5196[/C][C]0.302626[/C][/ROW]
[ROW][C]2[/C][C]-0.309196[/C][C]-2.395[/C][C]0.009879[/C][/ROW]
[ROW][C]3[/C][C]0.001991[/C][C]0.0154[/C][C]0.493874[/C][/ROW]
[ROW][C]4[/C][C]-0.091783[/C][C]-0.7109[/C][C]0.239937[/C][/ROW]
[ROW][C]5[/C][C]-0.135333[/C][C]-1.0483[/C][C]0.149357[/C][/ROW]
[ROW][C]6[/C][C]-0.021527[/C][C]-0.1667[/C][C]0.434065[/C][/ROW]
[ROW][C]7[/C][C]-0.049629[/C][C]-0.3844[/C][C]0.35101[/C][/ROW]
[ROW][C]8[/C][C]-0.10434[/C][C]-0.8082[/C][C]0.21108[/C][/ROW]
[ROW][C]9[/C][C]0.121669[/C][C]0.9424[/C][C]0.174872[/C][/ROW]
[ROW][C]10[/C][C]0.372147[/C][C]2.8826[/C][C]0.002733[/C][/ROW]
[ROW][C]11[/C][C]0.025875[/C][C]0.2004[/C][C]0.420914[/C][/ROW]
[ROW][C]12[/C][C]-0.379091[/C][C]-2.9364[/C][C]0.002351[/C][/ROW]
[ROW][C]13[/C][C]0.134122[/C][C]1.0389[/C][C]0.151509[/C][/ROW]
[ROW][C]14[/C][C]-0.095038[/C][C]-0.7362[/C][C]0.232251[/C][/ROW]
[ROW][C]15[/C][C]-0.049049[/C][C]-0.3799[/C][C]0.352668[/C][/ROW]
[ROW][C]16[/C][C]0.045828[/C][C]0.355[/C][C]0.361923[/C][/ROW]
[ROW][C]17[/C][C]-0.022865[/C][C]-0.1771[/C][C]0.430009[/C][/ROW]
[ROW][C]18[/C][C]-0.005445[/C][C]-0.0422[/C][C]0.483248[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=289049&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=289049&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.067080.51960.302626
2-0.309196-2.3950.009879
30.0019910.01540.493874
4-0.091783-0.71090.239937
5-0.135333-1.04830.149357
6-0.021527-0.16670.434065
7-0.049629-0.38440.35101
8-0.10434-0.80820.21108
90.1216690.94240.174872
100.3721472.88260.002733
110.0258750.20040.420914
12-0.379091-2.93640.002351
130.1341221.03890.151509
14-0.095038-0.73620.232251
15-0.049049-0.37990.352668
160.0458280.3550.361923
17-0.022865-0.17710.430009
18-0.005445-0.04220.483248



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = 3 ; par4 = TRUE ;
Parameters (R input):
par1 = Default ; par2 = 0.0 ; par3 = 0 ; 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 <- '1'
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')