Home » date » 2008 » Dec » 07 »

*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, 07 Dec 2008 06:57:05 -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/07/t1228658278lxkbc7rc60321lb.htm/, Retrieved Sun, 07 Dec 2008 13:57:58 +0000
 
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/07/t1228658278lxkbc7rc60321lb.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},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
132.7 128.6 127.8 128.9 124.6 129.2 130.5 124.3 125.8 123.5 120.7 123.1 122.0 121.0 121.2 117.4 113.0 113.1 116.1 121.3 108.6 114.3 113.5 111.2 109.3 108.2 102.7 110.4 108.1 112.8 108.1 102.6 109.2 108.2 107.1 108.4 103.6 104.0 111.5 105.4 105.5 101.3 103.8 100.3 108.2 105.6 103.0 100.5 104.3 99.1 91.5
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.40228-2.84460.003214
2-0.067851-0.47980.316739
30.0248370.17560.430649
4-0.034838-0.24630.403214
5-0.018913-0.13370.447075
60.2214721.5660.061823
7-0.263246-1.86140.034284
80.1165230.82390.206943
9-0.125451-0.88710.189643
100.1623891.14830.128162
110.1532031.08330.141934
12-0.358438-2.53450.007218
130.1648531.16570.124636
14-0.081447-0.57590.283628
15-0.006078-0.0430.482945
160.1928631.36370.089378
17-0.043134-0.3050.380816
18-0.279658-1.97750.026756
190.2624921.85610.034669
20-0.151697-1.07270.144287
210.1330640.94090.175639
22-0.157156-1.11130.135885
230.0274030.19380.423572
240.0268570.18990.425075
25-0.041255-0.29170.385855
260.0410260.29010.386472
270.1515721.07180.144484
28-0.25416-1.79720.039174
290.0672310.47540.318289
300.128560.90910.18384
31-0.149811-1.05930.147271
320.0193580.13690.445836
330.0365760.25860.398491
34-0.011666-0.08250.467293
350.0234360.16570.434524
36-0.000526-0.00370.498522
37-0.032111-0.22710.410652
38-0.011179-0.0790.468654
390.0457340.32340.373875
400.0020430.01440.494266
41-0.028707-0.2030.419985
420.0221650.15670.438045
430.0284710.20130.420632
44-0.056558-0.39990.345456
45-0.00752-0.05320.478902
460.0227060.16060.436545
47-0.030979-0.21910.41375
480.015520.10970.456526


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.40228-2.84460.003214
2-0.274026-1.93770.029162
3-0.155015-1.09610.139139
4-0.141945-1.00370.160177
5-0.137522-0.97240.167759
60.1812861.28190.102898
7-0.110773-0.78330.218577
80.0205910.14560.44241
9-0.170746-1.20740.116488
100.0785620.55550.290508
110.3059822.16360.017649
12-0.234137-1.65560.052034
130.0908160.64220.261849
14-0.21124-1.49370.07077
15-0.019918-0.14080.44428
160.0948460.67070.252761
170.0500010.35360.362576
18-0.085508-0.60460.274078
19-0.053749-0.38010.352754
20-0.031852-0.22520.41136
21-0.075432-0.53340.298065
22-0.17922-1.26730.105464
23-0.003061-0.02160.491409
24-0.030484-0.21560.415106
25-0.110087-0.77840.21999
26-0.078579-0.55560.290468
270.0632770.44740.328247
280.0550410.38920.34939
29-0.056778-0.40150.344888
300.0747730.52870.299669
31-0.024659-0.17440.431142
32-0.200546-1.41810.081186
330.0191480.13540.44642
34-0.008777-0.06210.475381
350.0687350.4860.314536
36-0.079554-0.56250.288134
37-0.07156-0.5060.307538
38-0.058796-0.41580.339685
390.0939370.66420.254797
40-0.092081-0.65110.258977
410.0177750.12570.450243
420.069780.49340.311938
43-0.07528-0.53230.298435
44-0.0787-0.55650.290179
45-0.101597-0.71840.237928
46-0.065077-0.46020.323697
47-0.044185-0.31240.378004
480.0596270.42160.337553
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228658278lxkbc7rc60321lb/1jytb1228658220.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228658278lxkbc7rc60321lb/1jytb1228658220.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228658278lxkbc7rc60321lb/2keok1228658220.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t1228658278lxkbc7rc60321lb/2keok1228658220.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