Home » date » 2009 » Dec » 12 »

(partial) autocorrelation function

*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, 12 Dec 2009 03:03:05 -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/12/t1260612259htrdy2j6w3hqcyv.htm/, Retrieved Sat, 12 Dec 2009 11:04:21 +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/12/t1260612259htrdy2j6w3hqcyv.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 «
10,9 10 9,2 9,2 9,5 9,6 9,5 9,1 8,9 9 10,1 10,3 10,2 9,6 9,2 9,3 9,4 9,4 9,2 9 9 9 9,8 10 9,8 9,3 9 9 9,1 9,1 9,1 9,2 8,8 8,3 8,4 8,1 7,7 7,9 7,9 8 7,9 7,6 7,1 6,8 6,5 6,9 8,2 8,7 8,3 7,9 7,5 7,8 8,3 8,4 8,2 7,7 7,2 7,3 8,1 8,5
 
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.4143773.18290.001164
2-0.249016-1.91270.03032
3-0.510345-3.920.000117
4-0.344392-2.64530.005222
50.0929680.71410.23899
60.3882292.9820.002079
70.2465841.8940.031562
8-0.125756-0.9660.169005
9-0.336133-2.58190.006165
10-0.249552-1.91680.030052
110.0581010.44630.328514
120.3767952.89420.00266
130.1044580.80240.212784
14-0.109888-0.84410.201021
15-0.102212-0.78510.217766
16-0.060246-0.46280.322621
170.0569070.43710.331813
180.0930030.71440.238908
190.01120.0860.465868
20-0.14207-1.09130.139797
21-0.191835-1.47350.072965
22-0.088925-0.6830.248625
230.1080830.83020.204885
240.2343091.79980.038506
250.0129910.09980.460425
26-0.159559-1.22560.112611
27-0.100647-0.77310.221279
28-0.036632-0.28140.389705
290.0976160.74980.228176
300.1574791.20960.115625
310.087050.66860.253165
32-0.155949-1.19790.117879
33-0.242673-1.8640.033649
34-0.066879-0.51370.304688
350.168391.29340.100453
360.2926472.24790.014168
370.1186790.91160.182846
38-0.131675-1.01140.157974
39-0.162743-1.25010.108108
40-0.043439-0.33370.369909
410.1679961.29040.100972
420.2424691.86240.033761
430.0772070.5930.27771
44-0.226218-1.73760.043749
45-0.322848-2.47980.008009
46-0.117017-0.89880.186201
470.1134820.87170.19346
480.2097871.61140.056215
490.0874220.67150.252262
50-0.089715-0.68910.246726
51-0.11608-0.89160.188108
52-0.035769-0.27470.392234
530.0597350.45880.324021
540.1080060.82960.205052
550.0464670.35690.361213
56-0.072946-0.56030.288694
57-0.104014-0.79890.213763
58-0.037263-0.28620.387854
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4143773.18290.001164
2-0.507943-3.90160.000124
3-0.234736-1.8030.038245
4-0.136108-1.04550.150037
50.1082820.83170.204457
60.0960960.73810.23168
7-0.07692-0.59080.278444
8-0.114486-0.87940.19138
9-0.058426-0.44880.327619
10-0.057642-0.44280.32978
110.0280240.21530.415154
120.1823021.40030.083332
13-0.397019-3.04960.001715
140.2699192.07330.021261
150.1020170.78360.218203
16-0.07569-0.58140.281599
170.0194350.14930.440919
18-0.0981-0.75350.227066
190.0668190.51320.304848
20-0.145226-1.11550.13458
21-0.145012-1.11390.134928
22-0.034675-0.26630.395451
230.0881880.67740.250405
24-0.06941-0.53310.297967
25-0.024856-0.19090.424621
26-0.11087-0.85160.198937
270.0721620.55430.290739
28-0.017887-0.13740.445595
29-0.045945-0.35290.362708
300.0325510.250.401718
31-0.015547-0.11940.452674
32-0.175763-1.35010.091077
330.0408030.31340.377536
340.0695210.5340.297675
35-0.012847-0.09870.460863
360.1322291.01570.156967
370.006850.05260.479108
380.0008940.00690.497271
390.0605020.46470.321919
400.1406541.08040.142183
410.0991280.76140.224721
420.0171080.13140.447948
43-0.121782-0.93540.176692
440.0699470.53730.296551
45-0.052735-0.40510.343448
46-0.123036-0.94510.174242
47-0.037034-0.28450.388526
48-0.09259-0.71120.239881
490.0529740.40690.342777
500.0215680.16570.434492
51-0.065402-0.50240.30864
520.027850.21390.415675
53-0.06117-0.46990.320096
54-0.03243-0.24910.402076
550.0867660.66650.253857
56-0.030757-0.23620.40703
570.0027390.0210.491644
58-0.023439-0.180.428869
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260612259htrdy2j6w3hqcyv/11ocf1260612183.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260612259htrdy2j6w3hqcyv/11ocf1260612183.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/12/t1260612259htrdy2j6w3hqcyv/22d5z1260612183.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260612259htrdy2j6w3hqcyv/22d5z1260612183.ps (open in new window)


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