Home » date » 2010 » Jun » 04 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 04 Jun 2010 17:17:50 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jun/04/t1275671942mmhnivuluftbe98.htm/, Retrieved Fri, 04 Jun 2010 19:19:04 +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/2010/Jun/04/t1275671942mmhnivuluftbe98.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1664.81 2397.53 2840.71 3547.29 3752.96 3714.74 4349.61 3566.34 5021.82 6423.48 7600.60 19756.21 2499.81 5198.24 7225.14 4806.03 5900.88 4951.34 6179.12 4752.15 5496.43 5835.10 12600.08 28541.72 4717.02 5702.63 9957.58 5304.78 6492.43 6630.80 7349.62 8176.62 8573.17 9690.50 15151.84 34061.01 5921.10 5814.58 12421.25 6369.77 7609.12 7224.75 8121.22 7979.25 8093.06 8476.70 17914.66 30114.41 4826.64 6470.23 9638.77 8821.17 8722.37 10209.48 11276.55 12552.22 11637.39 13606.89 21822.11 45060.69 7615.03 9849.69 14558.40 11587.33 9332.56 13082.09 16732.78 19888.61 23933.38 25391.35 36024.80 80721.71 10243.24 11266.88 21826.84 17357.33 15997.79 18601.53 26155.15 28586.52 30505.41 30821.33 46634.38 104660.67
 
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.232473-2.11790.018586
2-0.15713-1.43150.078018
30.10730.97750.165569
40.0061140.05570.477856
50.0016180.01470.494136
6-0.036806-0.33530.369115
7-0.021614-0.19690.422189
8-0.007174-0.06540.474024
90.1108851.01020.157664
10-0.159509-1.45320.074969
11-0.384755-3.50530.000369
120.6452785.87880
13-0.122238-1.11360.134324
14-0.111192-1.0130.157001
150.0658760.60020.275019
160.0157170.14320.443245
170.0014820.01350.494629
18-0.018174-0.16560.434449
19-0.011251-0.10250.459304
20-0.014313-0.13040.448285
210.0712790.64940.258941
22-0.102031-0.92950.177652
23-0.240201-2.18830.015728
240.4318163.9348.6e-05
25-0.078193-0.71240.239115
26-0.090973-0.82880.204797
270.0339330.30910.378994
280.0027330.02490.490099
29-0.007202-0.06560.473922
30-0.019255-0.17540.430587
310.0019210.01750.493038
32-0.023239-0.21170.416423
330.0787450.71740.23757
34-0.092068-0.83880.202
35-0.184211-1.67820.048531
360.348453.17450.001053
37-0.085998-0.78350.217787
38-0.063105-0.57490.283453
390.0235520.21460.415316
40-0.002098-0.01910.492397
41-0.012253-0.11160.455693
42-0.022076-0.20110.420549
430.0033850.03080.487737
44-0.034188-0.31150.378115
450.0639760.58280.280788
46-0.06494-0.59160.277853
47-0.169668-1.54570.062985
480.2782472.5350.006562


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.232473-2.11790.018586
2-0.223238-2.03380.022583
30.0119270.10870.456867
40.0050850.04630.481582
50.0334850.30510.380541
6-0.03026-0.27570.391738
7-0.039795-0.36260.35893
8-0.043422-0.39560.346711
90.1029340.93780.175541
10-0.117662-1.0720.143424
11-0.47529-4.33012.1e-05
120.5098134.64466e-06
13-0.008187-0.07460.470363
140.0742060.6760.250445
15-0.023964-0.21830.413857
160.0214890.19580.422634
17-0.046061-0.41960.337918
18-0.000736-0.00670.497335
190.0134840.12280.451263
20-0.007689-0.07010.472161
21-0.150689-1.37280.08675
22-0.098434-0.89680.186215
230.2475962.25570.01336
240.0829160.75540.226075
250.0294980.26870.394399
26-0.048728-0.44390.329123
27-0.021815-0.19870.421476
28-0.073468-0.66930.252573
29-0.0146-0.1330.447252
30-0.005226-0.04760.481071
31-0.007582-0.06910.472547
32-0.125232-1.14090.128593
330.0568450.51790.302958
340.10870.99030.162453
350.0199120.18140.428244
360.108740.99070.162363
37-0.116278-1.05930.146258
38-0.028179-0.25670.399014
39-0.080539-0.73370.232586
400.0078480.07150.471586
41-0.022801-0.20770.417975
42-0.026427-0.24080.405169
43-0.065245-0.59440.276927
440.054460.49620.310549
450.0184010.16760.433636
460.061320.55870.288952
47-0.003048-0.02780.488956
48-0.085362-0.77770.219484
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275671942mmhnivuluftbe98/1jb251275671869.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275671942mmhnivuluftbe98/1jb251275671869.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/04/t1275671942mmhnivuluftbe98/2u2jq1275671869.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275671942mmhnivuluftbe98/2u2jq1275671869.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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