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 09:53:44 -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/t122987846210ivn1jhodlqxu4.htm/, Retrieved Sun, 21 Dec 2008 17:54:24 +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/t122987846210ivn1jhodlqxu4.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 «
87.0 96.3 107.1 115.2 106.1 89.5 91.3 97.6 100.7 104.6 94.7 101.8 102.5 105.3 110.3 109.8 117.3 118.8 131.3 125.9 133.1 147.0 145.8 164.4 149.8 137.7 151.7 156.8 180.0 180.4 170.4 191.6 199.5 218.2 217.5 205.0 194.0 199.3 219.3 211.1 215.2 240.2 242.2 240.7 255.4 253.0 218.2 203.7 205.6 215.6 188.5 202.9 214.0 230.3 230.0 241.0 259.6 247.8 270.3 289.7
 
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.9208427.13280
20.8539246.61450
30.8104976.27810
40.7589395.87870
50.7109425.50690
60.657695.09442e-06
70.6110074.73287e-06
80.570894.42212.1e-05
90.5444554.21734.2e-05
100.538264.16935e-05
110.499583.86970.000136
120.458933.55490.000372
130.4200113.25340.000937
140.3799492.94310.002308
150.3182452.46510.008288
160.2452841.90.031124
170.1875711.45290.075728
180.1283570.99430.162046
190.073410.56860.285865
200.0366060.28360.388865
21-0.00363-0.02810.48883
22-0.049841-0.38610.350406
23-0.086151-0.66730.253561
24-0.107716-0.83440.203692
25-0.1411-1.0930.139391
26-0.196572-1.52260.066551
27-0.250272-1.93860.028629
28-0.292786-2.26790.013474
29-0.319989-2.47860.008009
30-0.330872-2.56290.006453
31-0.359782-2.78690.003558
32-0.383851-2.97330.002119
33-0.392478-3.04010.001751
34-0.390873-3.02770.001814
35-0.375598-2.90940.002537
36-0.377645-2.92520.002426
37-0.394611-3.05660.00167
38-0.399774-3.09660.001487
39-0.401433-3.10950.001433
40-0.396505-3.07130.0016
41-0.389317-3.01560.001878
42-0.378574-2.93240.002378
43-0.364845-2.82610.003196
44-0.35003-2.71130.004364
45-0.322218-2.49590.007665
46-0.296859-2.29950.012487
47-0.283468-2.19570.015995
48-0.274834-2.12890.01869
49-0.262586-2.0340.023191
50-0.240885-1.86590.033474
51-0.238635-1.84850.034733
52-0.227965-1.76580.041258
53-0.212747-1.64790.052297
54-0.186763-1.44670.076598
55-0.158189-1.22530.11262
56-0.13504-1.0460.149875
57-0.110693-0.85740.197312
58-0.088802-0.68790.247097
59-0.051458-0.39860.345803
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9208427.13280
20.0392970.30440.380939
30.1243760.96340.169604
4-0.05513-0.4270.335441
50.0112670.08730.465373
6-0.070721-0.54780.292931
70.0174840.13540.446362
80.0072640.05630.477658
90.089420.69260.245601
100.1389131.0760.143114
11-0.177517-1.3750.087116
12-0.033405-0.25880.398356
13-0.085487-0.66220.255195
14-0.019168-0.14850.441232
15-0.198329-1.53630.064867
16-0.110476-0.85570.197771
170.0031410.02430.490336
18-0.047772-0.370.356328
19-0.017977-0.13920.44486
200.0226870.17570.430549
21-0.011459-0.08880.464785
22-0.097365-0.75420.226843
23-0.012477-0.09660.461666
240.015580.12070.452174
25-0.046-0.35630.361426
26-0.14123-1.0940.139172
27-0.087094-0.67460.251251
280.0183580.14220.4437
290.1049590.8130.209713
300.1186340.91890.180905
31-0.125152-0.96940.168113
320.0180010.13940.444787
330.0159270.12340.451113
34-0.00715-0.05540.478008
350.0680860.52740.299934
36-0.025181-0.19510.423005
37-0.08048-0.62340.267694
38-0.00309-0.02390.490493
390.0072720.05630.477634
400.041850.32420.37347
410.0810550.62780.266243
420.0164990.12780.449367
43-0.030707-0.23790.406401
44-0.072704-0.56320.28771
450.0217920.16880.43326
460.0068580.05310.478906
47-0.066608-0.51590.303895
48-0.085385-0.66140.255448
49-0.026272-0.20350.419716
500.0617040.4780.31721
51-0.073781-0.57150.284896
520.0728780.56450.287256
53-0.052841-0.40930.341886
540.0581770.45060.326937
55-0.074928-0.58040.281913
56-0.017812-0.1380.445361
570.036870.28560.388085
580.0143390.11110.455967
590.0842510.65260.258253
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t122987846210ivn1jhodlqxu4/1bgc31229878423.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t122987846210ivn1jhodlqxu4/1bgc31229878423.ps (open in new window)


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


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