Home » date » 2009 » Dec » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 19 Dec 2009 08:26:00 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t12612364037fdv5xjdviict69.htm/, Retrieved Sat, 19 Dec 2009 16:26:45 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t12612364037fdv5xjdviict69.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1920 2218 3032 2375 2446 2916 2434 2540 2349 2310 2189 2660 2194 2419 2742 2137 2710 2173 2363 2126 1905 2121 1983 1734 2074 2049 2406 2558 2251 2059 2397 1747 1707 2319 1631 1627 1791 2034 1997 2169 2028 2253 2218 1855 2187 1852 1570 1851 1954 1828 2251 2277 2085 2282 2266 1878 2267 2069 1746 2299 2360 2214 2825 2355 2333 3016 2155 2172 2150 2533 2058 2160 2260 2498 2695 2799 2947 2930 2318 2540 2570 2669 2450 2842 3440 2678 2981 2260 2844 2546 2456 2295 2379 2479 2057 2280 2351 2276 2548 2311 2201 2725 2408 2139 1898 2537 2069 2063 2526 2440 2191 2797 2074 2628 2287 2146 2430 2141 1827 2082 1788
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4167074.58386e-06
20.4245654.67024e-06
30.4779625.25760
40.2411192.65230.004533
50.1948642.14350.017037
60.2072492.27970.012187
70.1387231.5260.064816
80.2374752.61220.005068
90.3183683.50210.000324
100.2323012.55530.005924
110.3136373.450.000386
120.3890214.27921.9e-05
130.2031782.2350.013628
140.2092392.30160.011533
150.1808461.98930.024462
160.0076590.08420.4665
170.0226040.24860.402028
18-0.080799-0.88880.187941
19-0.035392-0.38930.348864
20-0.029646-0.32610.372453
210.0654460.71990.236485
220.0238980.26290.396548
230.1146921.26160.104757
240.1069621.17660.120836
250.0484460.53290.297539
26-0.04764-0.5240.300604
27-0.123518-1.35870.088384
28-0.159106-1.75020.041312
29-0.246494-2.71140.003837
30-0.285344-3.13880.001066
31-0.26617-2.92790.002039
32-0.170985-1.88080.031199
33-0.194905-2.1440.017019
34-0.19687-2.16560.016153
35-0.151113-1.66220.049526
36-0.104358-1.14790.126628


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4167074.58386e-06
20.3036483.34010.000557
30.3042433.34670.000545
4-0.105232-1.15760.124663
5-0.101713-1.11880.132712
60.0140950.1550.438521
70.0548130.60290.273836
80.2109662.32060.010991
90.2381572.61970.004963
10-0.001449-0.01590.493653
110.003980.04380.482576
120.122551.34810.09008
13-0.0857-0.94270.173856
14-0.067642-0.74410.229142
15-0.051563-0.56720.285817
16-0.138948-1.52840.064508
17-0.076024-0.83630.202326
18-0.179074-1.96980.025572
190.0543560.59790.275505
20-0.037786-0.41560.339202
210.1375441.5130.066445
22-0.024917-0.27410.392244
230.0368750.40560.342868
24-0.033457-0.3680.356748
250.0191540.21070.416738
26-0.152614-1.67880.04789
27-0.144542-1.590.057226
28-0.0263-0.28930.386422
29-0.069912-0.7690.221686
30-0.065743-0.72320.235485
31-0.092031-1.01230.156698
320.0980391.07840.141494
33-0.057248-0.62970.265031
34-0.118874-1.30760.096741
35-0.091568-1.00730.157912
360.053290.58620.279421
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t12612364037fdv5xjdviict69/1gs8h1261236354.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t12612364037fdv5xjdviict69/1gs8h1261236354.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t12612364037fdv5xjdviict69/2mfj61261236354.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t12612364037fdv5xjdviict69/2mfj61261236354.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; 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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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