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 computationSun, 01 Apr 2012 12:13:00 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Apr/01/t1333296862gqjplx97cwbnfax.htm/, Retrieved Wed, 01 May 2024 02:00:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=164251, Retrieved Wed, 01 May 2024 02:00:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact228
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [Kleding en kledin...] [2012-04-01 16:13:00] [675223405f94cd8491f4a89fc80aa26c] [Current]
Feedback Forum

Post a new message
Dataseries X:
219.20
232.50
235.60
171.00
165.90
187.60
218.20
249.80
256.50
224.90
200.00
182.50
230.30
252.80
270.60
196.90
184.70
202.50
258.20
283.10
268.50
283.80
231.10
212.10
238.50
262.80
245.50
198.20
167.20
184.20
254.90
246.40
264.50
242.40
186.70
254.70
230.10
253.60
228.00
183.80
150.00
178.50
228.40
228.70
236.70
218.20
173.50
189.10
194.60
213.70
216.30
173.90
156.90
182.90
216.40
234.00
257.30
225.70
201.70
189.20




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

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







Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1088850.83640.203164
2-0.245371-1.88470.032197
3-0.488711-3.75392e-04
4-0.341795-2.62540.005503
50.2530591.94380.028348
60.4091363.14260.00131
70.2537291.94890.028032
8-0.265559-2.03980.022928
9-0.408402-3.1370.001331
10-0.305319-2.34520.0112
110.2306391.77160.040815
120.6166484.73667e-06
130.1484291.14010.129425
14-0.146317-1.12390.132807
15-0.459696-3.5310.000405
16-0.20218-1.5530.062888
170.1823751.40080.083249

\begin{tabular}{lllllllll}
\hline
Autocorrelation Function \tabularnewline
Time lag k & ACF(k) & T-STAT & P-value \tabularnewline
1 & 0.108885 & 0.8364 & 0.203164 \tabularnewline
2 & -0.245371 & -1.8847 & 0.032197 \tabularnewline
3 & -0.488711 & -3.7539 & 2e-04 \tabularnewline
4 & -0.341795 & -2.6254 & 0.005503 \tabularnewline
5 & 0.253059 & 1.9438 & 0.028348 \tabularnewline
6 & 0.409136 & 3.1426 & 0.00131 \tabularnewline
7 & 0.253729 & 1.9489 & 0.028032 \tabularnewline
8 & -0.265559 & -2.0398 & 0.022928 \tabularnewline
9 & -0.408402 & -3.137 & 0.001331 \tabularnewline
10 & -0.305319 & -2.3452 & 0.0112 \tabularnewline
11 & 0.230639 & 1.7716 & 0.040815 \tabularnewline
12 & 0.616648 & 4.7366 & 7e-06 \tabularnewline
13 & 0.148429 & 1.1401 & 0.129425 \tabularnewline
14 & -0.146317 & -1.1239 & 0.132807 \tabularnewline
15 & -0.459696 & -3.531 & 0.000405 \tabularnewline
16 & -0.20218 & -1.553 & 0.062888 \tabularnewline
17 & 0.182375 & 1.4008 & 0.083249 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=164251&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.108885[/C][C]0.8364[/C][C]0.203164[/C][/ROW]
[ROW][C]2[/C][C]-0.245371[/C][C]-1.8847[/C][C]0.032197[/C][/ROW]
[ROW][C]3[/C][C]-0.488711[/C][C]-3.7539[/C][C]2e-04[/C][/ROW]
[ROW][C]4[/C][C]-0.341795[/C][C]-2.6254[/C][C]0.005503[/C][/ROW]
[ROW][C]5[/C][C]0.253059[/C][C]1.9438[/C][C]0.028348[/C][/ROW]
[ROW][C]6[/C][C]0.409136[/C][C]3.1426[/C][C]0.00131[/C][/ROW]
[ROW][C]7[/C][C]0.253729[/C][C]1.9489[/C][C]0.028032[/C][/ROW]
[ROW][C]8[/C][C]-0.265559[/C][C]-2.0398[/C][C]0.022928[/C][/ROW]
[ROW][C]9[/C][C]-0.408402[/C][C]-3.137[/C][C]0.001331[/C][/ROW]
[ROW][C]10[/C][C]-0.305319[/C][C]-2.3452[/C][C]0.0112[/C][/ROW]
[ROW][C]11[/C][C]0.230639[/C][C]1.7716[/C][C]0.040815[/C][/ROW]
[ROW][C]12[/C][C]0.616648[/C][C]4.7366[/C][C]7e-06[/C][/ROW]
[ROW][C]13[/C][C]0.148429[/C][C]1.1401[/C][C]0.129425[/C][/ROW]
[ROW][C]14[/C][C]-0.146317[/C][C]-1.1239[/C][C]0.132807[/C][/ROW]
[ROW][C]15[/C][C]-0.459696[/C][C]-3.531[/C][C]0.000405[/C][/ROW]
[ROW][C]16[/C][C]-0.20218[/C][C]-1.553[/C][C]0.062888[/C][/ROW]
[ROW][C]17[/C][C]0.182375[/C][C]1.4008[/C][C]0.083249[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=164251&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=164251&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.1088850.83640.203164
2-0.245371-1.88470.032197
3-0.488711-3.75392e-04
4-0.341795-2.62540.005503
50.2530591.94380.028348
60.4091363.14260.00131
70.2537291.94890.028032
8-0.265559-2.03980.022928
9-0.408402-3.1370.001331
10-0.305319-2.34520.0112
110.2306391.77160.040815
120.6166484.73667e-06
130.1484291.14010.129425
14-0.146317-1.12390.132807
15-0.459696-3.5310.000405
16-0.20218-1.5530.062888
170.1823751.40080.083249







Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1088850.83640.203164
2-0.260313-1.99950.025083
3-0.463202-3.55790.000373
4-0.458162-3.51920.00042
5-0.027796-0.21350.415834
60.0388580.29850.383196
70.0482770.37080.356049
8-0.235242-1.80690.037937
9-0.192144-1.47590.072646
10-0.375656-2.88550.002725
11-0.173345-1.33150.094075
120.2323951.78510.039696
13-0.064347-0.49430.31148
14-0.004053-0.03110.487634
150.0074790.05740.477192
160.1676551.28780.101425
170.0623330.47880.31693

\begin{tabular}{lllllllll}
\hline
Partial Autocorrelation Function \tabularnewline
Time lag k & PACF(k) & T-STAT & P-value \tabularnewline
1 & 0.108885 & 0.8364 & 0.203164 \tabularnewline
2 & -0.260313 & -1.9995 & 0.025083 \tabularnewline
3 & -0.463202 & -3.5579 & 0.000373 \tabularnewline
4 & -0.458162 & -3.5192 & 0.00042 \tabularnewline
5 & -0.027796 & -0.2135 & 0.415834 \tabularnewline
6 & 0.038858 & 0.2985 & 0.383196 \tabularnewline
7 & 0.048277 & 0.3708 & 0.356049 \tabularnewline
8 & -0.235242 & -1.8069 & 0.037937 \tabularnewline
9 & -0.192144 & -1.4759 & 0.072646 \tabularnewline
10 & -0.375656 & -2.8855 & 0.002725 \tabularnewline
11 & -0.173345 & -1.3315 & 0.094075 \tabularnewline
12 & 0.232395 & 1.7851 & 0.039696 \tabularnewline
13 & -0.064347 & -0.4943 & 0.31148 \tabularnewline
14 & -0.004053 & -0.0311 & 0.487634 \tabularnewline
15 & 0.007479 & 0.0574 & 0.477192 \tabularnewline
16 & 0.167655 & 1.2878 & 0.101425 \tabularnewline
17 & 0.062333 & 0.4788 & 0.31693 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=164251&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.108885[/C][C]0.8364[/C][C]0.203164[/C][/ROW]
[ROW][C]2[/C][C]-0.260313[/C][C]-1.9995[/C][C]0.025083[/C][/ROW]
[ROW][C]3[/C][C]-0.463202[/C][C]-3.5579[/C][C]0.000373[/C][/ROW]
[ROW][C]4[/C][C]-0.458162[/C][C]-3.5192[/C][C]0.00042[/C][/ROW]
[ROW][C]5[/C][C]-0.027796[/C][C]-0.2135[/C][C]0.415834[/C][/ROW]
[ROW][C]6[/C][C]0.038858[/C][C]0.2985[/C][C]0.383196[/C][/ROW]
[ROW][C]7[/C][C]0.048277[/C][C]0.3708[/C][C]0.356049[/C][/ROW]
[ROW][C]8[/C][C]-0.235242[/C][C]-1.8069[/C][C]0.037937[/C][/ROW]
[ROW][C]9[/C][C]-0.192144[/C][C]-1.4759[/C][C]0.072646[/C][/ROW]
[ROW][C]10[/C][C]-0.375656[/C][C]-2.8855[/C][C]0.002725[/C][/ROW]
[ROW][C]11[/C][C]-0.173345[/C][C]-1.3315[/C][C]0.094075[/C][/ROW]
[ROW][C]12[/C][C]0.232395[/C][C]1.7851[/C][C]0.039696[/C][/ROW]
[ROW][C]13[/C][C]-0.064347[/C][C]-0.4943[/C][C]0.31148[/C][/ROW]
[ROW][C]14[/C][C]-0.004053[/C][C]-0.0311[/C][C]0.487634[/C][/ROW]
[ROW][C]15[/C][C]0.007479[/C][C]0.0574[/C][C]0.477192[/C][/ROW]
[ROW][C]16[/C][C]0.167655[/C][C]1.2878[/C][C]0.101425[/C][/ROW]
[ROW][C]17[/C][C]0.062333[/C][C]0.4788[/C][C]0.31693[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=164251&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=164251&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.1088850.83640.203164
2-0.260313-1.99950.025083
3-0.463202-3.55790.000373
4-0.458162-3.51920.00042
5-0.027796-0.21350.415834
60.0388580.29850.383196
70.0482770.37080.356049
8-0.235242-1.80690.037937
9-0.192144-1.47590.072646
10-0.375656-2.88550.002725
11-0.173345-1.33150.094075
120.2323951.78510.039696
13-0.064347-0.49430.31148
14-0.004053-0.03110.487634
150.0074790.05740.477192
160.1676551.28780.101425
170.0623330.47880.31693



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')