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:59:39 -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/t1229878821uz3ofocjaeuat1p.htm/, Retrieved Sun, 21 Dec 2008 18:00: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/21/t1229878821uz3ofocjaeuat1p.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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0029910.0230.490875
2-0.165491-1.27120.10433
3-0.089633-0.68850.246924
4-0.099115-0.76130.224751
50.2039191.56630.06131
6-0.124029-0.95270.172318
70.0360770.27710.391331
8-0.163181-1.25340.1075
9-0.18878-1.450.076171
100.2115491.62490.054753
110.0974090.74820.228653
12-0.004257-0.03270.487012
13-0.169962-1.30550.098395
140.020630.15850.437316
150.151791.16590.12417
16-0.164955-1.2670.10506
17-0.026944-0.2070.418377
18-0.102733-0.78910.216605
19-0.094927-0.72910.234399
200.234461.80090.038413
210.045230.34740.364756
22-0.050338-0.38670.350202
23-0.174249-1.33840.092946
24-0.069059-0.53050.298895
250.1759621.35160.090833
260.0263020.2020.420295
27-0.037863-0.29080.3861
28-0.106663-0.81930.207958
29-0.09283-0.7130.239315
300.1381241.0610.146518
310.0873960.67130.252325
320.0024980.01920.492378
33-0.036367-0.27930.390481
34-0.131193-1.00770.158853
350.07050.54150.295094
36-0.021957-0.16870.433323
370.0160950.12360.451015
380.0660710.50750.306847
39-0.079389-0.60980.27217
400.0946980.72740.234932
410.0849660.65260.258264
420.133151.02270.155302
43-0.039341-0.30220.381788
44-0.062334-0.47880.316927
450.0295230.22680.410692
46-0.029967-0.23020.409373
47-0.025041-0.19230.424065
48-0.089732-0.68920.246685
49-0.035472-0.27250.393108
500.0189120.14530.442497
51-0.01099-0.08440.466507
520.0448130.34420.365955
53-0.008422-0.06470.47432
54-0.043553-0.33450.36958
55-0.009789-0.07520.470158
560.0096370.0740.470621
570.0324370.24920.402055
580.0134150.1030.45914
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0029910.0230.490875
2-0.165501-1.27120.104316
3-0.091056-0.69940.243521
4-0.131895-1.01310.157574
50.1792591.37690.08687
6-0.183019-1.40580.082515
70.1000590.76860.222608
8-0.237722-1.8260.036457
9-0.13686-1.05120.148717
100.0923510.70940.240448
110.0884590.67950.249749
12-0.081544-0.62630.266751
13-0.087585-0.67280.251865
140.0741170.56930.285657
150.0373150.28660.387704
16-0.207188-1.59140.058427
17-0.05347-0.41070.341385
18-0.117191-0.90020.185848
19-0.097883-0.75190.227564
200.2004331.53960.064508
21-0.025259-0.1940.423413
22-0.151288-1.16210.124944
23-0.064734-0.49720.310436
24-0.061827-0.47490.318306
25-0.083481-0.64120.261928
260.0113210.0870.465498
27-0.068047-0.52270.301578
28-0.067735-0.52030.302408
29-0.066658-0.5120.305276
300.0712830.54750.293039
31-0.088514-0.67990.249618
32-0.114646-0.88060.19105
330.092550.71090.239976
34-0.165215-1.2690.104705
35-0.10557-0.81090.210342
36-0.066957-0.51430.304479
37-0.041878-0.32170.374419
380.0202010.15520.43861
390.0191680.14720.441726
40-0.080616-0.61920.269078
410.0182280.140.444563
420.1786131.3720.087636
43-0.033133-0.25450.399997
440.0057880.04450.482345
45-0.07709-0.59210.278011
460.0406230.3120.378059
47-0.09872-0.75830.225651
48-0.028592-0.21960.413462
49-0.008194-0.06290.475014
50-0.066234-0.50880.306411
51-0.047397-0.36410.358556
52-0.028447-0.21850.413896
53-0.124752-0.95820.170927
540.0136010.10450.458576
55-0.045304-0.3480.364543
56-0.07489-0.57520.283658
57-0.002512-0.01930.492335
580.0451080.34650.365107
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229878821uz3ofocjaeuat1p/14gw91229878777.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229878821uz3ofocjaeuat1p/14gw91229878777.ps (open in new window)


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


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