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 computationThu, 08 Dec 2011 16:42:26 -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/2011/Dec/08/t1323380555126698tkd4z3n0o.htm/, Retrieved Fri, 03 May 2024 08:34:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=153151, Retrieved Fri, 03 May 2024 08:34:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact79
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [(Partial) Autocorrelation Function] [] [2011-12-08 21:42:26] [0956ee981dded61b2e7128dae94e5715] [Current]
Feedback Forum

Post a new message
Dataseries X:
52.6
65.0
67.5
63.6
57.3
54.9
54.3
58.9
65.9
82.7
100.1
100.7
97.5
92.3
85.1
91.6
93.6
90.4
99.3
107.7
106.2
98.8
99.6
98.9
92.7
91.8
92.6
98.4
94.6
85.8
84.6
83.5
84.7
80.1
84.4
85.9
87.1
84.5
83.1
75.9
70.1
78.1
83.1
87.9
90.2
89.9
97.1
102.1
100.6
97.7
97.6
100.3
102.0
107.8
111.5
110.2
110.1
117.4
119.8
118.8
113.2
122.8
120.4
129.2
132.5
135.7
141.5
122.4
137.1
144.8
154.6
148.0
152.8
172.0
169.0
179.7
190.4
233.2
231.4
244.9
299.1
385.0
381.5
321.6
317.3
323.1
392.7
372.4
386.5
412.8
404.9
406.7
392.4
363.3
357.9
375.1
369.7
386.1
353.4
346.9
362.5
349.9
347.0
332.9
327.5
327.9
308.9
285.7
318.8
284.8
301.0
315.2
388.3
383.4
416.8
423.2
429.9
486.1
394.4
410.9
430.9
447.3
431.7
456.5
452.9
440.9
416.5
451.5
432.0
436.2
428.6
421.4
425.2
437.2
431.9
412.7
419.4
436.4
421.4
423.7
402.4
402.8
400.5
425.7
417.9
403.4
405.0
393.6
400.0
375.9
366.6
353.9
347.5
364.1
328.6
348.0
329.6
351.0
336.2
332.2
349.5
383.6
369.8
345.5
337.8
334.8
338.0
346.7
371.8
375.9
373.3
391.9
374.3
384.7
372.2
372.0
351.8
352.9
330.5
347.7
345.6
360.8
364.4
374.6
369.1
341.8
337.9
336.6
332.7
335.7
321.6
329.4
321.8
324.6
330.9
310.9
318.1
312.4
315.2
332.9
310.7
321.3
316.2
283.9
280.6
280.2
265.9
267.8
278.0
291.9
262.6
264.8
265.7
251.1
256.1
279.7
282.5
288.9
308.5
292.9
280.8
273.6
276.7
277.9
250.3
264.7
268.9
261.7
258.0
251.3
243.1
246.8
224.5
241.2
255.0
261.4
266.7
264.3
270.4
275.0
281.1
300.7
321.1
354.8
319.0
298.7
318.9
327.9
348.2
335.2
333.0
331.0
317.5
325.3
317.6
313.4
313.0
314.8
298.4
311.1
308.8
297.3
293.6
291.3
291.5
289.9
287.1
280.7
294.9
289.0
285.6
294.6
290.7
314.8
306.5
304.5
308.7
307.0
298.6
293.5
294.9
296.1
294.2
291.7
290.5
288.7
310.1
297.4
300.8
301.6
296.9
305.2
298.5
298.7
273.0
266.6
266.1
284.5
275.7
284.2
284.8
267.3
273.0
262.3
246.3
251.0
247.5
254.8
245.1
251.3
261.5
258.8
270.9
257.6
253.1
238.8
241.2
280.8
284.6
289.4
289.6
289.6
305.0
289.2
301.8
293.6
300.6
298.7
311.6
310.1
312.1
309.1
292.3
284.4
290.0
291.5
296.8
315.6
319.6
303.9
300.5
321.8
309.5
307.7
310.5
327.9
343.2
345.5
342.0
349.6
322.5
310.7
319.0
327.5
320.0
320.7
330.9
342.3
322.4
306.9
301.7
307.3
301.3
315.2
342.1
333.2
332.3
332.3
330.0
321.8
318.6
344.8
324.1
322.0
325.3
325.1
335.1
334.7
334.5
341.1
320.5
323.8
328.1
328.9
337.5
335.7
361.0
353.2
352.3
392.5
393.0
420.4
434.9
468.4
466.3
480.9
511.3
508.4
479.8
495.6
487.1
473.1
473.0
487.9
479.3
500.6
502.8
497.1
496.1
489.8
481.7
486.2
492.9
522.4
545.7
533.8
570.3
623.6
639.9
589.1
559.4
570.0
590.4
588.4
565.8
629.7
576.3
641.9
625.7
717.5
749.6
690.3
666.6
689.2
666.2
662.3
665.8
681.2
704.9
783.1
758.0
775.9
812.1
824.4
886.9
984.1
1.015.6
897.3
980.4
957.4
969.0
1.062.8
1.047.7
967.9
1.021.6
1.014.0
1.035.0
1.068.8
1.038.4
1.133.3
1.259.6
1.207.4
1.234.6
1.297.0




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

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



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