Home » date » 2008 » Dec » 16 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 16 Dec 2008 13:20:51 -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/16/t12294589280w4tiwb1v1wczuw.htm/, Retrieved Tue, 16 Dec 2008 21:22:10 +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/16/t12294589280w4tiwb1v1wczuw.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 «
108.65 107.03 104.21 108.65 101.45 100.34 112.6 118.56 119.32 116.97 109.56 109.58 110.74 110.41 109.44 107.3 105.78 105.99 120.23 122.17 121.66 120.64 118.46 119.16 120.77 120.27 118.62 118.44 116.51 117.94 132.44 134.86 134.46 131.54 127.33 129.06 130.81 130.47 129.19 126.46 124.84 126.25 138.07 142.08 142.51 142.21 138.22 138.52 137.45 137.11 135.95 133.32 132.01 132.37 144.4 146.3 146.14 142.4 138.51 138.91 138.04 137.27 134.88 133.58 133.24 133.28 144.13 145.58 144.21 136.7 131.61 129.64 130.41 127.68 123.68 122.34 118.88 116 129.19 131.34 126 122.61 118.6 119.63
 
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
1-0.09268-0.78090.218718
2-0.010436-0.08790.465088
3-0.123033-1.03670.151699
40.093220.78550.21739
50.0840250.7080.24063
60.0650450.54810.292679
7-0.07141-0.60170.274642
80.0402730.33930.367675
90.1233791.03960.151024
10-0.1088-0.91680.181184
110.0448990.37830.353157
12-0.217018-1.82860.035828
130.0263890.22240.412337
140.1020540.85990.196364
150.0333620.28110.389721
16-0.008489-0.07150.471589
17-0.125057-1.05370.147786
180.0901750.75980.224938
190.0917090.77280.221117
200.0104720.08820.464966
21-0.001259-0.01060.495782
220.0569480.47990.316402
230.104260.87850.191316
24-0.043408-0.36580.357814
25-0.10789-0.90910.183188
26-0.244474-2.060.021534
270.1493461.25840.106183
28-0.026639-0.22450.41152
290.1224491.03180.152841
30-0.121809-1.02640.154099
31-0.079624-0.67090.252223
320.0233050.19640.42244
33-0.029444-0.24810.402388
34-0.028964-0.24410.403947
35-0.070261-0.5920.277855
360.0367030.30930.379012
370.0268630.22640.410788
380.1528981.28830.100905
39-0.152721-1.28680.101164
40-0.006435-0.05420.478454
41-0.042737-0.36010.359917
420.0361140.30430.380893
430.029760.25080.401362
44-0.111809-0.94210.174663
45-0.059084-0.49790.310063
46-0.003843-0.03240.487129
47-0.021694-0.18280.427738
48-0.081609-0.68770.246956
49-0.082207-0.69270.245382
500.0270440.22790.410198
511.6e-051e-040.499946
52-0.032163-0.2710.393585
53-0.131012-1.10390.136676
540.0733390.6180.269287
55-0.09109-0.76750.222654
560.0929640.78330.218019
57-0.030344-0.25570.399468
58-0.031633-0.26650.395295
590.0282460.2380.406282
60-0.018419-0.15520.43855


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.09268-0.78090.218718
2-0.01919-0.16170.436
3-0.126934-1.06960.14422
40.0709780.59810.275846
50.0968690.81620.208549
60.0728420.61380.270663
7-0.03655-0.3080.379501
80.0483680.40760.342414
90.1359061.14520.127994
10-0.122035-1.02830.153653
110.0358720.30230.381667
12-0.201333-1.69650.047089
13-0.060621-0.51080.305538
140.096310.81150.209888
150.0048450.04080.483776
160.0613950.51730.30327
17-0.102379-0.86270.195614
180.1156090.97410.166647
190.1054320.88840.188666
20-0.024837-0.20930.417416
210.1204081.01460.156877
220.0153620.12940.448687
230.113340.9550.171404
24-0.102195-0.86110.196039
25-0.150924-1.27170.103813
26-0.244089-2.05670.021694
27-0.016323-0.13750.445496
28-0.040858-0.34430.365829
290.0604920.50970.305915
300.0151660.12780.449337
310.0058690.04950.480347
320.0904390.7620.224277
33-0.017635-0.14860.441147
340.0092480.07790.469053
35-0.019146-0.16130.436148
36-0.057285-0.48270.315399
37-0.029139-0.24550.403377
380.0106860.090.464254
39-0.061671-0.51970.302461
40-0.016444-0.13860.445094
41-0.051636-0.43510.332407
42-0.029763-0.25080.401353
43-0.027053-0.2280.41017
44-0.032783-0.27620.391584
45-0.027067-0.22810.410123
460.00640.05390.478571
47-0.010855-0.09150.46369
48-0.034202-0.28820.387019
49-0.072191-0.60830.272468
500.0156180.13160.447836
51-0.098873-0.83310.203786
52-0.105939-0.89270.187528
53-0.068997-0.58140.281414
540.0819520.69050.246054
55-0.02942-0.24790.402465
560.0141220.1190.452809
570.0233760.1970.422206
58-0.037434-0.31540.376681
590.0121730.10260.459297
60-0.044968-0.37890.352944
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294589280w4tiwb1v1wczuw/1sza01229458849.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294589280w4tiwb1v1wczuw/1sza01229458849.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294589280w4tiwb1v1wczuw/2naoe1229458849.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t12294589280w4tiwb1v1wczuw/2naoe1229458849.ps (open in new window)


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