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 computationSun, 01 Dec 2013 12:09:13 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2013/Dec/01/t1385917843ykq19ovqq5bj15i.htm/, Retrieved Fri, 19 Apr 2024 15:06:17 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=229826, Retrieved Fri, 19 Apr 2024 15:06:17 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact74
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Workshop 9 autoco...] [2013-12-01 17:09:13] [37aff36f52ac1d7cbcd609d857f1662d] [Current]
Feedback Forum

Post a new message
Dataseries X:
46
62
66
59
58
61
41
27
58
70
49
59
44
36
72
45
56
54
53
35
61
52
47
51
52
63
74
45
51
64
36
30
55
64
39
40
63
45
59
55
40
64
27
28
45
57
45
69
60
56
58
50
51
53
37
22
55
70
62
58
39
49
58
47
42
62
39
40
72
70
54
65




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=229826&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 time4 seconds
R Server'Sir Ronald Aylmer Fisher' @ fisher.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.32741-2.75880.003687
2-0.339512-2.86080.002773
30.2750332.31750.011683
4-0.054891-0.46250.32256
5-0.18859-1.58910.058242
60.2226181.87580.032396
7-0.109603-0.92350.179429
8-0.059735-0.50330.308144
90.2145041.80740.037465
10-0.24925-2.10020.019631
11-0.056729-0.4780.317057
120.4447883.74790.00018
13-0.152034-1.28110.10217
14-0.297798-2.50930.00719
150.2823352.3790.010026
16-0.052136-0.43930.330886
17-0.157278-1.32520.094669
180.1898641.59980.05704

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & -0.32741 & -2.7588 & 0.003687 \tabularnewline
2 & -0.339512 & -2.8608 & 0.002773 \tabularnewline
3 & 0.275033 & 2.3175 & 0.011683 \tabularnewline
4 & -0.054891 & -0.4625 & 0.32256 \tabularnewline
5 & -0.18859 & -1.5891 & 0.058242 \tabularnewline
6 & 0.222618 & 1.8758 & 0.032396 \tabularnewline
7 & -0.109603 & -0.9235 & 0.179429 \tabularnewline
8 & -0.059735 & -0.5033 & 0.308144 \tabularnewline
9 & 0.214504 & 1.8074 & 0.037465 \tabularnewline
10 & -0.24925 & -2.1002 & 0.019631 \tabularnewline
11 & -0.056729 & -0.478 & 0.317057 \tabularnewline
12 & 0.444788 & 3.7479 & 0.00018 \tabularnewline
13 & -0.152034 & -1.2811 & 0.10217 \tabularnewline
14 & -0.297798 & -2.5093 & 0.00719 \tabularnewline
15 & 0.282335 & 2.379 & 0.010026 \tabularnewline
16 & -0.052136 & -0.4393 & 0.330886 \tabularnewline
17 & -0.157278 & -1.3252 & 0.094669 \tabularnewline
18 & 0.189864 & 1.5998 & 0.05704 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=229826&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.32741[/C][C]-2.7588[/C][C]0.003687[/C][/ROW]
[ROW][C]2[/C][C]-0.339512[/C][C]-2.8608[/C][C]0.002773[/C][/ROW]
[ROW][C]3[/C][C]0.275033[/C][C]2.3175[/C][C]0.011683[/C][/ROW]
[ROW][C]4[/C][C]-0.054891[/C][C]-0.4625[/C][C]0.32256[/C][/ROW]
[ROW][C]5[/C][C]-0.18859[/C][C]-1.5891[/C][C]0.058242[/C][/ROW]
[ROW][C]6[/C][C]0.222618[/C][C]1.8758[/C][C]0.032396[/C][/ROW]
[ROW][C]7[/C][C]-0.109603[/C][C]-0.9235[/C][C]0.179429[/C][/ROW]
[ROW][C]8[/C][C]-0.059735[/C][C]-0.5033[/C][C]0.308144[/C][/ROW]
[ROW][C]9[/C][C]0.214504[/C][C]1.8074[/C][C]0.037465[/C][/ROW]
[ROW][C]10[/C][C]-0.24925[/C][C]-2.1002[/C][C]0.019631[/C][/ROW]
[ROW][C]11[/C][C]-0.056729[/C][C]-0.478[/C][C]0.317057[/C][/ROW]
[ROW][C]12[/C][C]0.444788[/C][C]3.7479[/C][C]0.00018[/C][/ROW]
[ROW][C]13[/C][C]-0.152034[/C][C]-1.2811[/C][C]0.10217[/C][/ROW]
[ROW][C]14[/C][C]-0.297798[/C][C]-2.5093[/C][C]0.00719[/C][/ROW]
[ROW][C]15[/C][C]0.282335[/C][C]2.379[/C][C]0.010026[/C][/ROW]
[ROW][C]16[/C][C]-0.052136[/C][C]-0.4393[/C][C]0.330886[/C][/ROW]
[ROW][C]17[/C][C]-0.157278[/C][C]-1.3252[/C][C]0.094669[/C][/ROW]
[ROW][C]18[/C][C]0.189864[/C][C]1.5998[/C][C]0.05704[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=229826&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=229826&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.32741-2.75880.003687
2-0.339512-2.86080.002773
30.2750332.31750.011683
4-0.054891-0.46250.32256
5-0.18859-1.58910.058242
60.2226181.87580.032396
7-0.109603-0.92350.179429
8-0.059735-0.50330.308144
90.2145041.80740.037465
10-0.24925-2.10020.019631
11-0.056729-0.4780.317057
120.4447883.74790.00018
13-0.152034-1.28110.10217
14-0.297798-2.50930.00719
150.2823352.3790.010026
16-0.052136-0.43930.330886
17-0.157278-1.32520.094669
180.1898641.59980.05704







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.32741-2.75880.003687
2-0.500345-4.2163.6e-05
3-0.083018-0.69950.243257
4-0.179429-1.51190.067499
5-0.252623-2.12860.018377
6-0.039617-0.33380.369751
7-0.229299-1.93210.028669
8-0.137548-1.1590.12517
90.0132290.11150.455778
10-0.301959-2.54430.006562
11-0.312158-2.63030.005227
120.0990020.83420.203481
130.1410951.18890.119223
14-0.041969-0.35360.36233
150.0610640.51450.304238
160.0362680.30560.380402
170.0558030.47020.319824
180.1080370.91030.182864

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & -0.32741 & -2.7588 & 0.003687 \tabularnewline
2 & -0.500345 & -4.216 & 3.6e-05 \tabularnewline
3 & -0.083018 & -0.6995 & 0.243257 \tabularnewline
4 & -0.179429 & -1.5119 & 0.067499 \tabularnewline
5 & -0.252623 & -2.1286 & 0.018377 \tabularnewline
6 & -0.039617 & -0.3338 & 0.369751 \tabularnewline
7 & -0.229299 & -1.9321 & 0.028669 \tabularnewline
8 & -0.137548 & -1.159 & 0.12517 \tabularnewline
9 & 0.013229 & 0.1115 & 0.455778 \tabularnewline
10 & -0.301959 & -2.5443 & 0.006562 \tabularnewline
11 & -0.312158 & -2.6303 & 0.005227 \tabularnewline
12 & 0.099002 & 0.8342 & 0.203481 \tabularnewline
13 & 0.141095 & 1.1889 & 0.119223 \tabularnewline
14 & -0.041969 & -0.3536 & 0.36233 \tabularnewline
15 & 0.061064 & 0.5145 & 0.304238 \tabularnewline
16 & 0.036268 & 0.3056 & 0.380402 \tabularnewline
17 & 0.055803 & 0.4702 & 0.319824 \tabularnewline
18 & 0.108037 & 0.9103 & 0.182864 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=229826&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.32741[/C][C]-2.7588[/C][C]0.003687[/C][/ROW]
[ROW][C]2[/C][C]-0.500345[/C][C]-4.216[/C][C]3.6e-05[/C][/ROW]
[ROW][C]3[/C][C]-0.083018[/C][C]-0.6995[/C][C]0.243257[/C][/ROW]
[ROW][C]4[/C][C]-0.179429[/C][C]-1.5119[/C][C]0.067499[/C][/ROW]
[ROW][C]5[/C][C]-0.252623[/C][C]-2.1286[/C][C]0.018377[/C][/ROW]
[ROW][C]6[/C][C]-0.039617[/C][C]-0.3338[/C][C]0.369751[/C][/ROW]
[ROW][C]7[/C][C]-0.229299[/C][C]-1.9321[/C][C]0.028669[/C][/ROW]
[ROW][C]8[/C][C]-0.137548[/C][C]-1.159[/C][C]0.12517[/C][/ROW]
[ROW][C]9[/C][C]0.013229[/C][C]0.1115[/C][C]0.455778[/C][/ROW]
[ROW][C]10[/C][C]-0.301959[/C][C]-2.5443[/C][C]0.006562[/C][/ROW]
[ROW][C]11[/C][C]-0.312158[/C][C]-2.6303[/C][C]0.005227[/C][/ROW]
[ROW][C]12[/C][C]0.099002[/C][C]0.8342[/C][C]0.203481[/C][/ROW]
[ROW][C]13[/C][C]0.141095[/C][C]1.1889[/C][C]0.119223[/C][/ROW]
[ROW][C]14[/C][C]-0.041969[/C][C]-0.3536[/C][C]0.36233[/C][/ROW]
[ROW][C]15[/C][C]0.061064[/C][C]0.5145[/C][C]0.304238[/C][/ROW]
[ROW][C]16[/C][C]0.036268[/C][C]0.3056[/C][C]0.380402[/C][/ROW]
[ROW][C]17[/C][C]0.055803[/C][C]0.4702[/C][C]0.319824[/C][/ROW]
[ROW][C]18[/C][C]0.108037[/C][C]0.9103[/C][C]0.182864[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=229826&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=229826&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.32741-2.75880.003687
2-0.500345-4.2163.6e-05
3-0.083018-0.69950.243257
4-0.179429-1.51190.067499
5-0.252623-2.12860.018377
6-0.039617-0.33380.369751
7-0.229299-1.93210.028669
8-0.137548-1.1590.12517
90.0132290.11150.455778
10-0.301959-2.54430.006562
11-0.312158-2.63030.005227
120.0990020.83420.203481
130.1410951.18890.119223
14-0.041969-0.35360.36233
150.0610640.51450.304238
160.0362680.30560.380402
170.0558030.47020.319824
180.1080370.91030.182864



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