Home » date » 2008 » Dec » 20 »

ACF paper

*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, 20 Dec 2008 10:35:22 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/20/t1229794641vrcw3gbmg642j5e.htm/, Retrieved Sat, 20 Dec 2008 18:37:23 +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/2008/Dec/20/t1229794641vrcw3gbmg642j5e.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
2175 2197 2350 2440 2409 2473 2408 2455 2448 2498 2646 2757 2849 2921 2982 3081 3106 3119 3061 3097 3162 3257 3277 3295 3364 3494 3667 3813 3918 3896 3801 3570 3702 3862 3970 4139 4200 4291 4444 4503 4357 4591 4697 4621 4563 4203 4296 4435 4105 4117 3844 3721 3674 3858 3801 3504 3033 3047 2962 2198 2014
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2889822.23840.014457
20.0649920.50340.308254
30.2278021.76450.041365
40.189391.4670.073798
50.2207621.710.046215
60.0824490.63860.262742
70.0539430.41780.338777
80.1665721.29030.100955
90.1244570.9640.169447
100.0601420.46590.321503
110.2593282.00870.024535
120.0443380.34340.366233
13-0.026738-0.20710.418313
140.1896791.46930.073494
150.0517810.40110.344887
160.036870.28560.388087
17-0.068945-0.5340.297641
18-0.1549-1.19990.117457
190.0216850.1680.433584
20-0.033057-0.25610.39939
21-0.104319-0.80810.211126
22-0.11235-0.87030.193814
23-0.099339-0.76950.222314
24-0.09304-0.72070.236951
250.0322710.250.401732
26-0.031827-0.24650.403055
27-0.042081-0.3260.372794
280.0272240.21090.416851
29-0.036826-0.28530.388216
30-0.050234-0.38910.349285
31-0.074937-0.58050.281889
32-0.068305-0.52910.299348
33-0.115128-0.89180.188038
34-0.104772-0.81160.210126
35-0.129107-1.00010.16065
36-0.040095-0.31060.3786


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2889822.23840.014457
2-0.020206-0.15650.438076
30.234121.81350.03738
40.0684770.53040.298889
50.1767491.36910.088037
6-0.070492-0.5460.293535
70.0193180.14960.440776
80.0730720.5660.286749
90.0286030.22160.412704
10-0.007914-0.06130.47566
110.2480221.92120.029733
12-0.170033-1.31710.096412
13-0.02012-0.15590.438336
140.1163050.90090.185623
15-0.076912-0.59580.276788
16-0.007436-0.05760.47713
17-0.133874-1.0370.151953
18-0.141266-1.09420.139111
19-0.001854-0.01440.494294
20-0.046565-0.36070.359798
210.0029690.0230.490865
22-0.146991-1.13860.129701
230.0170390.1320.447719
24-0.048823-0.37820.353316
250.0787160.60970.272172
260.053480.41430.340083
270.0716080.55470.29059
280.057120.44240.329878
290.0564140.4370.331846
30-0.107597-0.83340.203951
310.0188140.14570.442311
320.0136970.10610.457929
33-0.100879-0.78140.218819
34-0.028735-0.22260.412311
35-0.126103-0.97680.166298
360.0298590.23130.40894
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229794641vrcw3gbmg642j5e/1j2p11229794520.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229794641vrcw3gbmg642j5e/1j2p11229794520.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229794641vrcw3gbmg642j5e/2jbv81229794520.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/20/t1229794641vrcw3gbmg642j5e/2jbv81229794520.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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