Home » date » 2011 » Apr » 11 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 11 Apr 2011 12:49:28 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga.htm/, Retrieved Mon, 11 Apr 2011 14:50:44 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
814 1150 1225 1691 1759 1754 2100 2062 2012 1897 1964 2186 966 1549 1538 1612 2078 2137 2907 2249 1883 1739 1828 1868 1138 1430 1809 1763 2200 2067 2503 2141 2103 1972 2181 2344 970 1199 1718 1683 2025 2051 2439 2353 2230 1852 2147 2286 1007 1665 1642 1518 1831 2207 2822 2393 2306 1785 2047 2171 1212 1335 2011 1860 1954 2152 2835 2224 2182 1992 2389 2724 891 1247 2017 2257 2255 2255 3057 3330 1896 2096 2374 2535 1041 1728 2201 2455 2204 2660 3670 2665 2639 2226 2586 2684 1185 1749 2459 2618 2585 3310 3923
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4660354.72974e-06
20.1664611.68940.047085
30.13821.40260.081875
40.0655730.66550.253612
5-0.159509-1.61880.05427
6-0.395995-4.01895.6e-05
7-0.059992-0.60890.271981
80.122411.24230.108469
90.1429441.45070.074948
100.1660631.68540.047474
110.3997184.05674.8e-05
120.7015397.11980
130.2989223.03370.001529
140.0636850.64630.259752
150.0663190.67310.251208
16-0.005502-0.05580.47779
17-0.217219-2.20450.014856
18-0.410667-4.16783.2e-05
19-0.070532-0.71580.237859
200.0470.4770.317187
210.0935260.94920.172373
220.1210081.22810.111105
230.3243563.29190.000682
240.531255.39160
250.2037032.06740.020603
260.0055630.05650.477544
27-0.01067-0.10830.456988
28-0.087438-0.88740.188467
29-0.224899-2.28250.012258
30-0.335825-3.40820.000467
31-0.091746-0.93110.176984
32-0.009868-0.10010.46021
330.0289050.29340.384919
340.0536890.54490.293506
350.2008162.03810.022053
360.4422954.48889e-06
370.1512421.53490.063932
38-0.017051-0.1730.431478
39-0.053917-0.54720.292714
40-0.105824-1.0740.142667
41-0.222049-2.25360.013171
42-0.331647-3.36590.000537
43-0.116198-1.17930.120502
44-0.030275-0.30730.379633
450.0304890.30940.378809
460.0681860.6920.245243
470.1564371.58770.057713
480.3237863.28610.000695


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4660354.72974e-06
2-0.064803-0.65770.256107
30.1100631.1170.133294
4-0.045978-0.46660.320876
5-0.229463-2.32880.010911
6-0.315484-3.20180.000908
70.3682643.73750.000153
80.1242721.26120.105039
90.1665181.690.047029
100.0226620.230.409276
110.2594552.63320.004881
120.4864844.93732e-06
13-0.169306-1.71830.044376
14-0.074478-0.75590.225728
15-0.020587-0.20890.417454
16-0.033539-0.34040.367131
17-0.01189-0.12070.452095
18-0.150978-1.53230.064262
19-0.021191-0.21510.415071
20-0.153621-1.55910.061022
210.1209081.22710.111294
22-0.079367-0.80550.211196
230.0423830.43010.333997
240.0466910.47390.318299
250.0581490.59020.27819
26-0.054999-0.55820.288967
270.0006170.00630.497508
28-0.082248-0.83470.202901
290.1685461.71060.045087
300.0514230.52190.301435
31-0.134456-1.36460.08768
32-0.137448-1.39490.083016
33-0.029306-0.29740.38337
34-0.058433-0.5930.27723
350.015240.15470.438693
360.2022212.05230.021337
37-0.13341-1.3540.089355
38-0.036498-0.37040.355918
39-0.00211-0.02140.491478
400.0180040.18270.427689
410.0839390.85190.198126
42-0.013116-0.13310.447183
43-0.034935-0.35460.361823
44-0.056074-0.56910.285266
450.0864910.87780.19105
460.02890.29330.384941
476.4e-056e-040.499742
48-0.156186-1.58510.058003
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga/1t5g81302526164.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga/1t5g81302526164.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga/2otew1302526164.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga/2otew1302526164.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga/3oita1302526164.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302526243rwa9oteppbeexga/3oita1302526164.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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('http://www.xycoon.com/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('http://www.xycoon.com/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')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by