Home » date » 2008 » Dec » 21 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 21 Dec 2008 15:15:42 -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/21/t1229897780bsrhxp4xib65mrd.htm/, Retrieved Sun, 21 Dec 2008 23:16:22 +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/21/t1229897780bsrhxp4xib65mrd.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 «
1.8 1.7 1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1115930.86440.195408
2-0.13546-1.04930.149132
30.0672990.52130.302041
40.0026210.02030.491935
50.0550720.42660.335605
6-0.03383-0.2620.397092
7-0.054247-0.42020.337923
8-0.05934-0.45960.323717
9-0.122981-0.95260.172306
100.0611490.47370.318732
110.1262430.97790.166032
12-0.383488-2.97050.002136
13-0.253384-1.96270.027161
140.0317690.24610.40323
150.0624390.48360.315198
16-0.026597-0.2060.418738
17-0.143171-1.1090.135927
180.040290.31210.378028
190.0599060.4640.322152
20-0.055777-0.4320.333629
210.0411660.31890.375466
220.0398410.30860.379345
23-0.124926-0.96770.168547
24-0.075186-0.58240.281244
250.1516891.1750.122322
260.0130490.10110.459913
27-0.057953-0.44890.327561
280.0238230.18450.427108
290.0103080.07980.468314
300.0182720.14150.44396
310.0011380.00880.496497
320.0783920.60720.272996
330.0261690.20270.420025
34-0.035841-0.27760.391129
35-0.057637-0.44650.328437
360.0770230.59660.276504
370.0264410.20480.419205
38-0.019392-0.15020.440551
390.0132090.10230.459423
40-0.002243-0.01740.493097
410.0471140.36490.358219
420.0605380.46890.32041
430.0885590.6860.247687
44-0.043536-0.33720.368561
45-0.094733-0.73380.232965
46-0.014624-0.11330.455095
470.0661450.51240.305142
48-0.014-0.10840.457002


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1115930.86440.195408
2-0.149778-1.16020.125287
30.1050280.81350.209562
4-0.042846-0.33190.370566
50.0902250.69890.243663
6-0.071893-0.55690.289841
7-0.013494-0.10450.45855
8-0.083803-0.64910.259364
9-0.107443-0.83220.204284
100.0782070.60580.27347
110.0922790.71480.238755
12-0.404554-3.13370.001335
13-0.141876-1.0990.138086
14-0.041409-0.32070.374758
150.0822680.63720.263194
16-0.077543-0.60060.275168
17-0.112799-0.87370.192873
180.0395030.3060.380337
190.0152940.11850.453046
20-0.111707-0.86530.195166
21-0.07793-0.60360.274178
220.0185520.14370.443109
23-0.023063-0.17860.429409
24-0.228571-1.77050.040861
25-0.020697-0.16030.436583
26-0.117764-0.91220.182657
270.0505770.39180.348308
28-0.017138-0.13280.447417
29-0.182532-1.41390.081281
30-0.032991-0.25550.399587
310.0493410.38220.351835
320.0219280.16990.432847
33-0.129665-1.00440.159615
34-0.025981-0.20120.420593
35-0.10682-0.82740.205637
36-0.067001-0.5190.30284
37-0.069627-0.53930.295829
38-0.056563-0.43810.331431
39-0.015501-0.12010.452415
40-0.02139-0.16570.434481
41-0.077214-0.59810.276013
420.0380160.29450.384707
430.0690290.53470.297419
44-0.045294-0.35080.363467
45-0.100213-0.77630.220325
46-0.075575-0.58540.280237
47-0.034412-0.26660.395363
48-0.048883-0.37860.353143
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229897780bsrhxp4xib65mrd/1zeju1229897740.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229897780bsrhxp4xib65mrd/1zeju1229897740.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229897780bsrhxp4xib65mrd/2zxi71229897740.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229897780bsrhxp4xib65mrd/2zxi71229897740.ps (open in new window)


 
Parameters (Session):
par1 = FALSE ; par2 = 0.0 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
Parameters (R input):
par1 = 48 ; par2 = 0.5 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 3 ; par7 = 1 ; par8 = 2 ; par9 = 1 ;
 
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