Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_autocorrelation.wasp
Title produced by software(Partial) Autocorrelation Function
Date of computationMon, 02 Mar 2015 17:01:54 +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/Mar/02/t1425315771q6koqujh7ud8x0v.htm/, Retrieved Sun, 19 May 2024 09:38:00 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=277828, Retrieved Sun, 19 May 2024 09:38:00 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact69
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Autocorrelatie tr...] [2015-03-02 17:01:54] [bc7b6c6baf6d03f57c49dbed118965bb] [Current]
Feedback Forum

Post a new message
Dataseries X:
6.81
6.80
6.80
6.85
6.85
6.85
6.85
6.85
6.85
6.86
6.86
6.88
6.88
6.88
6.91
6.91
6.91
6.91
6.99
6.99
6.99
7.02
7.02
7.05
7.05
7.05
7.05
7.10
7.10
7.10
7.10
7.12
7.13
7.18
7.24
7.24
7.24
7.27
7.27
7.27
7.27
7.30
7.30
7.57
7.76
7.94
7.94
7.96
7.96
7.98
7.99
8.00
8.00
8.04
8.04
8.04
8.04
8.04
8.07
8.07
8.07
8.07
8.11
8.11
8.11
8.12
8.11
8.13
8.15
8.16
8.20
8.20
8.20
8.20
8.23
8.25
8.26
8.31
8.33
8.33
8.36
8.39
8.41
8.50
8.58
8.58
8.66
8.67
8.70
8.71
8.73
8.75
8.76
8.76
8.77
8.78




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=277828&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'Sir Maurice George Kendall' @ kendall.wessa.net







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.397513.87459.8e-05
20.2483462.42060.008698
3-0.027305-0.26610.395356
4-0.025583-0.24940.401814
5-0.103915-1.01280.156855
6-0.00404-0.03940.484336
7-0.051371-0.50070.308868
8-0.057009-0.55570.289877
90.0310690.30280.381345
100.0685040.66770.252974
11-0.028456-0.27740.391055
12-0.048767-0.47530.317824
13-0.067791-0.66070.255188
14-0.083272-0.81160.209516
15-0.066556-0.64870.259048
16-0.015688-0.15290.439396
17-0.074863-0.72970.233692
18-0.049755-0.48490.314414
19-0.062752-0.61160.271122
20-0.084004-0.81880.207483
21-0.104453-1.01810.155613
22-0.044892-0.43760.331351
23-0.091511-0.89190.187339
24-0.027121-0.26430.396045

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.39751 & 3.8745 & 9.8e-05 \tabularnewline
2 & 0.248346 & 2.4206 & 0.008698 \tabularnewline
3 & -0.027305 & -0.2661 & 0.395356 \tabularnewline
4 & -0.025583 & -0.2494 & 0.401814 \tabularnewline
5 & -0.103915 & -1.0128 & 0.156855 \tabularnewline
6 & -0.00404 & -0.0394 & 0.484336 \tabularnewline
7 & -0.051371 & -0.5007 & 0.308868 \tabularnewline
8 & -0.057009 & -0.5557 & 0.289877 \tabularnewline
9 & 0.031069 & 0.3028 & 0.381345 \tabularnewline
10 & 0.068504 & 0.6677 & 0.252974 \tabularnewline
11 & -0.028456 & -0.2774 & 0.391055 \tabularnewline
12 & -0.048767 & -0.4753 & 0.317824 \tabularnewline
13 & -0.067791 & -0.6607 & 0.255188 \tabularnewline
14 & -0.083272 & -0.8116 & 0.209516 \tabularnewline
15 & -0.066556 & -0.6487 & 0.259048 \tabularnewline
16 & -0.015688 & -0.1529 & 0.439396 \tabularnewline
17 & -0.074863 & -0.7297 & 0.233692 \tabularnewline
18 & -0.049755 & -0.4849 & 0.314414 \tabularnewline
19 & -0.062752 & -0.6116 & 0.271122 \tabularnewline
20 & -0.084004 & -0.8188 & 0.207483 \tabularnewline
21 & -0.104453 & -1.0181 & 0.155613 \tabularnewline
22 & -0.044892 & -0.4376 & 0.331351 \tabularnewline
23 & -0.091511 & -0.8919 & 0.187339 \tabularnewline
24 & -0.027121 & -0.2643 & 0.396045 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=277828&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.39751[/C][C]3.8745[/C][C]9.8e-05[/C][/ROW]
[ROW][C]2[/C][C]0.248346[/C][C]2.4206[/C][C]0.008698[/C][/ROW]
[ROW][C]3[/C][C]-0.027305[/C][C]-0.2661[/C][C]0.395356[/C][/ROW]
[ROW][C]4[/C][C]-0.025583[/C][C]-0.2494[/C][C]0.401814[/C][/ROW]
[ROW][C]5[/C][C]-0.103915[/C][C]-1.0128[/C][C]0.156855[/C][/ROW]
[ROW][C]6[/C][C]-0.00404[/C][C]-0.0394[/C][C]0.484336[/C][/ROW]
[ROW][C]7[/C][C]-0.051371[/C][C]-0.5007[/C][C]0.308868[/C][/ROW]
[ROW][C]8[/C][C]-0.057009[/C][C]-0.5557[/C][C]0.289877[/C][/ROW]
[ROW][C]9[/C][C]0.031069[/C][C]0.3028[/C][C]0.381345[/C][/ROW]
[ROW][C]10[/C][C]0.068504[/C][C]0.6677[/C][C]0.252974[/C][/ROW]
[ROW][C]11[/C][C]-0.028456[/C][C]-0.2774[/C][C]0.391055[/C][/ROW]
[ROW][C]12[/C][C]-0.048767[/C][C]-0.4753[/C][C]0.317824[/C][/ROW]
[ROW][C]13[/C][C]-0.067791[/C][C]-0.6607[/C][C]0.255188[/C][/ROW]
[ROW][C]14[/C][C]-0.083272[/C][C]-0.8116[/C][C]0.209516[/C][/ROW]
[ROW][C]15[/C][C]-0.066556[/C][C]-0.6487[/C][C]0.259048[/C][/ROW]
[ROW][C]16[/C][C]-0.015688[/C][C]-0.1529[/C][C]0.439396[/C][/ROW]
[ROW][C]17[/C][C]-0.074863[/C][C]-0.7297[/C][C]0.233692[/C][/ROW]
[ROW][C]18[/C][C]-0.049755[/C][C]-0.4849[/C][C]0.314414[/C][/ROW]
[ROW][C]19[/C][C]-0.062752[/C][C]-0.6116[/C][C]0.271122[/C][/ROW]
[ROW][C]20[/C][C]-0.084004[/C][C]-0.8188[/C][C]0.207483[/C][/ROW]
[ROW][C]21[/C][C]-0.104453[/C][C]-1.0181[/C][C]0.155613[/C][/ROW]
[ROW][C]22[/C][C]-0.044892[/C][C]-0.4376[/C][C]0.331351[/C][/ROW]
[ROW][C]23[/C][C]-0.091511[/C][C]-0.8919[/C][C]0.187339[/C][/ROW]
[ROW][C]24[/C][C]-0.027121[/C][C]-0.2643[/C][C]0.396045[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=277828&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=277828&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.397513.87459.8e-05
20.2483462.42060.008698
3-0.027305-0.26610.395356
4-0.025583-0.24940.401814
5-0.103915-1.01280.156855
6-0.00404-0.03940.484336
7-0.051371-0.50070.308868
8-0.057009-0.55570.289877
90.0310690.30280.381345
100.0685040.66770.252974
11-0.028456-0.27740.391055
12-0.048767-0.47530.317824
13-0.067791-0.66070.255188
14-0.083272-0.81160.209516
15-0.066556-0.64870.259048
16-0.015688-0.15290.439396
17-0.074863-0.72970.233692
18-0.049755-0.48490.314414
19-0.062752-0.61160.271122
20-0.084004-0.81880.207483
21-0.104453-1.01810.155613
22-0.044892-0.43760.331351
23-0.091511-0.89190.187339
24-0.027121-0.26430.396045







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.397513.87459.8e-05
20.1072841.04570.149182
3-0.189933-1.85120.033621
40.0209170.20390.419443
5-0.060779-0.59240.277494
60.0596920.58180.281039
7-0.050406-0.49130.312175
8-0.07007-0.6830.248146
90.1227511.19640.117254
100.0364220.3550.361688
11-0.133476-1.3010.098208
12-0.022902-0.22320.411922
130.0009220.0090.496425
14-0.042406-0.41330.34015
15-0.026051-0.25390.400057
160.0108140.10540.45814
17-0.070385-0.6860.247184
18-0.009322-0.09090.463898
19-0.052314-0.50990.305653
20-0.074308-0.72430.235341
21-0.030579-0.2980.38316
220.0091360.0890.464618
23-0.087749-0.85530.197277
240.0236470.23050.409107

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.39751 & 3.8745 & 9.8e-05 \tabularnewline
2 & 0.107284 & 1.0457 & 0.149182 \tabularnewline
3 & -0.189933 & -1.8512 & 0.033621 \tabularnewline
4 & 0.020917 & 0.2039 & 0.419443 \tabularnewline
5 & -0.060779 & -0.5924 & 0.277494 \tabularnewline
6 & 0.059692 & 0.5818 & 0.281039 \tabularnewline
7 & -0.050406 & -0.4913 & 0.312175 \tabularnewline
8 & -0.07007 & -0.683 & 0.248146 \tabularnewline
9 & 0.122751 & 1.1964 & 0.117254 \tabularnewline
10 & 0.036422 & 0.355 & 0.361688 \tabularnewline
11 & -0.133476 & -1.301 & 0.098208 \tabularnewline
12 & -0.022902 & -0.2232 & 0.411922 \tabularnewline
13 & 0.000922 & 0.009 & 0.496425 \tabularnewline
14 & -0.042406 & -0.4133 & 0.34015 \tabularnewline
15 & -0.026051 & -0.2539 & 0.400057 \tabularnewline
16 & 0.010814 & 0.1054 & 0.45814 \tabularnewline
17 & -0.070385 & -0.686 & 0.247184 \tabularnewline
18 & -0.009322 & -0.0909 & 0.463898 \tabularnewline
19 & -0.052314 & -0.5099 & 0.305653 \tabularnewline
20 & -0.074308 & -0.7243 & 0.235341 \tabularnewline
21 & -0.030579 & -0.298 & 0.38316 \tabularnewline
22 & 0.009136 & 0.089 & 0.464618 \tabularnewline
23 & -0.087749 & -0.8553 & 0.197277 \tabularnewline
24 & 0.023647 & 0.2305 & 0.409107 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=277828&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.39751[/C][C]3.8745[/C][C]9.8e-05[/C][/ROW]
[ROW][C]2[/C][C]0.107284[/C][C]1.0457[/C][C]0.149182[/C][/ROW]
[ROW][C]3[/C][C]-0.189933[/C][C]-1.8512[/C][C]0.033621[/C][/ROW]
[ROW][C]4[/C][C]0.020917[/C][C]0.2039[/C][C]0.419443[/C][/ROW]
[ROW][C]5[/C][C]-0.060779[/C][C]-0.5924[/C][C]0.277494[/C][/ROW]
[ROW][C]6[/C][C]0.059692[/C][C]0.5818[/C][C]0.281039[/C][/ROW]
[ROW][C]7[/C][C]-0.050406[/C][C]-0.4913[/C][C]0.312175[/C][/ROW]
[ROW][C]8[/C][C]-0.07007[/C][C]-0.683[/C][C]0.248146[/C][/ROW]
[ROW][C]9[/C][C]0.122751[/C][C]1.1964[/C][C]0.117254[/C][/ROW]
[ROW][C]10[/C][C]0.036422[/C][C]0.355[/C][C]0.361688[/C][/ROW]
[ROW][C]11[/C][C]-0.133476[/C][C]-1.301[/C][C]0.098208[/C][/ROW]
[ROW][C]12[/C][C]-0.022902[/C][C]-0.2232[/C][C]0.411922[/C][/ROW]
[ROW][C]13[/C][C]0.000922[/C][C]0.009[/C][C]0.496425[/C][/ROW]
[ROW][C]14[/C][C]-0.042406[/C][C]-0.4133[/C][C]0.34015[/C][/ROW]
[ROW][C]15[/C][C]-0.026051[/C][C]-0.2539[/C][C]0.400057[/C][/ROW]
[ROW][C]16[/C][C]0.010814[/C][C]0.1054[/C][C]0.45814[/C][/ROW]
[ROW][C]17[/C][C]-0.070385[/C][C]-0.686[/C][C]0.247184[/C][/ROW]
[ROW][C]18[/C][C]-0.009322[/C][C]-0.0909[/C][C]0.463898[/C][/ROW]
[ROW][C]19[/C][C]-0.052314[/C][C]-0.5099[/C][C]0.305653[/C][/ROW]
[ROW][C]20[/C][C]-0.074308[/C][C]-0.7243[/C][C]0.235341[/C][/ROW]
[ROW][C]21[/C][C]-0.030579[/C][C]-0.298[/C][C]0.38316[/C][/ROW]
[ROW][C]22[/C][C]0.009136[/C][C]0.089[/C][C]0.464618[/C][/ROW]
[ROW][C]23[/C][C]-0.087749[/C][C]-0.8553[/C][C]0.197277[/C][/ROW]
[ROW][C]24[/C][C]0.023647[/C][C]0.2305[/C][C]0.409107[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=277828&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=277828&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.397513.87459.8e-05
20.1072841.04570.149182
3-0.189933-1.85120.033621
40.0209170.20390.419443
5-0.060779-0.59240.277494
60.0596920.58180.281039
7-0.050406-0.49130.312175
8-0.07007-0.6830.248146
90.1227511.19640.117254
100.0364220.3550.361688
11-0.133476-1.3010.098208
12-0.022902-0.22320.411922
130.0009220.0090.496425
14-0.042406-0.41330.34015
15-0.026051-0.25390.400057
160.0108140.10540.45814
17-0.070385-0.6860.247184
18-0.009322-0.09090.463898
19-0.052314-0.50990.305653
20-0.074308-0.72430.235341
21-0.030579-0.2980.38316
220.0091360.0890.464618
23-0.087749-0.85530.197277
240.0236470.23050.409107



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