Home » date » 2009 » Jul » 28 »

*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, 28 Jul 2009 08:01:47 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jul/28/t1248790179x7afcle7gbxxia2.htm/, Retrieved Tue, 28 Jul 2009 16:09:41 +0200
 
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/Jul/28/t1248790179x7afcle7gbxxia2.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 «
6430 5124 4836 4629 4597 4490 4517 4560 4135 4559 4739 4886 5605 4616 4997 4607 4882 4555 4462 4476 4277 4369 4492 5183 6039 4923 4953 4892 4614 4363 4675 4556 4217 4664 4601 5428 5607 4869 5174 5031 4671 4491 4504 4615 4582 4800 4775 5791 5818 4714 4915 4598 4407 4383 4412 4274 4236 4637 4534 5271 5467 5204 5752 4724 4623 4451 4138 4140 4169 4603 4434 5185
 
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
1-0.184494-1.55460.062247
20.0378290.31870.375426
30.0755130.63630.263319
4-0.187015-1.57580.059756
5-0.006847-0.05770.477078
6-0.184935-1.55830.061805
70.0236010.19890.421468
8-0.209749-1.76740.040731
90.0703970.59320.277474
10-0.100661-0.84820.199593
11-0.09725-0.81940.207639
120.6444445.43020
13-0.216651-1.82550.036063
140.1461361.23140.111125
150.0518780.43710.331671
16-0.186865-1.57450.059903
170.0548040.46180.322822
18-0.125383-1.05650.147162
19-0.018921-0.15940.436892
20-0.14988-1.26290.105376
210.0739340.6230.267647
22-0.210256-1.77170.040372
230.0122720.10340.458967
240.5039924.24673.2e-05
25-0.189682-1.59830.05721
260.1330731.12130.13297
270.0219610.18510.426859
28-0.137496-1.15860.125259
290.0341280.28760.387257
30-0.123618-1.04160.15056
310.0173080.14580.442229
32-0.113111-0.95310.17189
330.0361770.30480.380694
34-0.137925-1.16220.124527
350.0519320.43760.331506
360.2980762.51160.007147
37-0.146759-1.23660.110153
380.2098591.76830.040653
39-0.059315-0.49980.30938
40-0.090903-0.7660.223119
410.0483610.40750.342435
42-0.116515-0.98180.164773
430.0009080.00770.496959
44-0.107173-0.90310.184774
450.0524030.44160.330075
46-0.128856-1.08580.140628
470.0502990.42380.336487
480.228411.92460.029143


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.184494-1.55460.062247
20.0039240.03310.486857
30.0861210.72570.235212
4-0.164762-1.38830.084691
5-0.078123-0.65830.256246
6-0.208288-1.75510.041781
7-0.024001-0.20220.420154
8-0.255313-2.15130.017428
9-0.016313-0.13750.445531
10-0.204-1.71890.044992
11-0.193752-1.63260.053493
120.564824.75935e-06
13-0.054299-0.45750.324343
140.0118360.09970.460418
15-0.02187-0.18430.427158
16-0.13657-1.15080.126846
170.0732750.61740.269465
180.0377220.31780.375766
19-0.112026-0.94390.174199
200.015190.1280.449258
21-0.017133-0.14440.442811
22-0.135611-1.14270.128505
230.0699210.58920.27881
240.1834581.54580.063294
250.0421280.3550.36183
26-0.141475-1.19210.118598
27-0.061923-0.52180.301725
280.0170720.14380.443014
29-0.025927-0.21850.413847
30-0.05249-0.44230.329812
310.0460720.38820.349512
32-0.067902-0.57220.284512
33-0.026831-0.22610.410894
340.1803571.51970.066512
35-0.035749-0.30120.38206
36-0.119925-1.01050.157841
370.0068610.05780.477031
380.0744260.62710.266296
39-0.062687-0.52820.2995
400.0409960.34540.365393
41-0.020497-0.17270.431686
42-0.059119-0.49810.309961
43-0.011745-0.0990.460724
44-0.0332-0.27980.390241
450.0489570.41250.340602
460.0333320.28090.389818
47-0.064474-0.54330.294325
48-0.012271-0.10340.458968
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248790179x7afcle7gbxxia2/16h6b1248789706.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248790179x7afcle7gbxxia2/16h6b1248789706.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248790179x7afcle7gbxxia2/2zcyi1248789706.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jul/28/t1248790179x7afcle7gbxxia2/2zcyi1248789706.ps (open in new window)


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