Home » date » 2009 » Dec » 17 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 17 Dec 2009 15:51:12 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/17/t126109030750ma69svkdbd7x0.htm/, Retrieved Thu, 17 Dec 2009 23:51:50 +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/2009/Dec/17/t126109030750ma69svkdbd7x0.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 «
0.8 1.1 1.3 1.2 1.3 1.1 1.3 1.2 1.6 1.7 1.5 0.9 1.5 1.4 1.6 1.7 1.4 1.8 1.7 1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2 2.7 2.1 1.9 0.6 0.7 -0.2 -1 -1.7 -0.7
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.439872-4.05545.5e-05
2-0.029734-0.27410.392323
3-0.035386-0.32620.372522
40.1163831.0730.143154
5-0.041942-0.38670.349978
6-0.028945-0.26690.395111
70.0085210.07860.468784
80.1000630.92250.179431
9-0.134262-1.23780.109593
10-0.073187-0.67480.250832
110.4134833.81210.00013
12-0.490943-4.52631e-05
130.0569610.52520.300423
140.0335440.30930.378938
150.1036870.95590.170906
160.0103320.09530.462167
17-0.153021-1.41080.080979
180.0533180.49160.312145
190.1083170.99860.160404
20-0.135394-1.24830.10768
210.0231850.21380.415624
220.1103511.01740.155929
23-0.118269-1.09040.139313
240.0197310.18190.428044
250.0737480.67990.2492
260.0161210.14860.4411
27-0.049016-0.45190.326243
28-0.070175-0.6470.259694
290.086390.79650.213987
300.0626260.57740.282604
31-0.135766-1.25170.107057
320.0353590.3260.372616
330.0423880.39080.348464
340.0330480.30470.380673
35-0.122701-1.13120.130566
360.1262841.16430.123784
37-0.054418-0.50170.308585
38-0.009524-0.08780.465118
39-0.020713-0.1910.424506
400.0345220.31830.375529
410.048570.44780.32772
42-0.104787-0.96610.168371
430.0326840.30130.381947
440.0658080.60670.272828
45-0.052844-0.48720.313686
46-0.022749-0.20970.417186
470.04880.44990.326957
48-0.034232-0.31560.376537
49-0.027818-0.25650.399106
500.0910130.83910.201883
51-0.069828-0.64380.260726
520.0528970.48770.313515
53-0.086458-0.79710.213805
540.0630270.58110.281362
55-0.009347-0.08620.465764
56-0.037885-0.34930.363871
570.0496250.45750.324232
58-0.03677-0.3390.367723
590.0470220.43350.332866
60-0.027471-0.25330.400337


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.439872-4.05545.5e-05
2-0.276774-2.55170.006254
3-0.233414-2.1520.017118
4-0.02922-0.26940.394138
5-0.004915-0.04530.481981
6-0.026446-0.24380.403978
7-0.015651-0.14430.442803
80.112191.03430.151955
9-0.036646-0.33790.36815
10-0.183423-1.69110.047243
110.3800773.50410.000367
12-0.272589-2.51310.006927
13-0.295811-2.72720.003878
14-0.156035-1.43860.076971
15-0.149223-1.37580.086254
160.1038790.95770.17046
17-0.050638-0.46690.320896
18-0.05582-0.51460.304073
190.0410090.37810.353154
200.0412240.38010.352421
210.0037980.0350.486074
22-0.103296-0.95230.171811
230.1737241.60170.056471
24-0.134642-1.24130.108947
25-0.035457-0.32690.372273
26-0.014456-0.13330.447144
27-0.165189-1.5230.06574
280.1488691.37250.086758
29-0.044521-0.41050.34125
300.0080090.07380.470656
31-0.008822-0.08130.467683
32-0.041884-0.38620.350174
330.0225370.20780.417947
340.0433650.39980.34515
350.0155530.14340.443159
360.0092730.08550.466036
370.0565020.52090.301888
38-0.023341-0.21520.415067
39-0.053397-0.49230.31189
400.0366560.3380.368116
41-0.018383-0.16950.432909
420.006980.06440.474419
43-0.000243-0.00220.499107
44-0.020799-0.19180.424194
45-0.059717-0.55060.29169
460.1566391.44410.076188
47-0.03392-0.31270.377628
480.0030430.02810.488843
49-0.043582-0.40180.344419
500.078120.72020.236678
510.0288770.26620.395353
52-0.077581-0.71530.238202
530.0421880.3890.349142
54-0.041025-0.37820.353101
55-0.044064-0.40630.34279
56-0.029722-0.2740.392367
57-0.031258-0.28820.386954
580.0281730.25970.397846
590.0633060.58370.280499
600.0874440.80620.21119
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t126109030750ma69svkdbd7x0/12bhv1261090270.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t126109030750ma69svkdbd7x0/12bhv1261090270.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t126109030750ma69svkdbd7x0/24jdu1261090270.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t126109030750ma69svkdbd7x0/24jdu1261090270.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = 0.0 ; par3 = 2 ; par4 = 0 ; par5 = 1 ; par6 = 2 ; par7 = 0 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
 
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