Home » date » 2010 » May » 05 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 05 May 2010 16:27:58 +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/May/05/t1273076967f039g7jg7wus2iv.htm/, Retrieved Wed, 05 May 2010 18:29:29 +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/May/05/t1273076967f039g7jg7wus2iv.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 «
8027.7 8059.6 8059.5 7988.9 7950.2 8003.8 8037.5 8069 8157.6 8244.3 8329.4 8417 8432.5 8486.4 8531.1 8643.8 8727.9 8847.3 8904.3 9003.2 9025.3 9044.7 9120.7 9184.3 9247.2 9407.1 9488.9 9592.5 9666.2 9809.6 9932.7 10008.9 10103.4 10194.3 10328.8 10507.6 10601.2 10684 10819.9 11014.3 11043 11258.5 11267.9 11334.5 11297.2 11371.3 11340.1 11380.1 11477.9 11538.8 11596.4 11598.8 11645.8 11738.7 11935.5 12042.8 12127.6 12213.8 12303.5 12410.3 12534.1 12587.5 12683.2 12748.7 12915.9 12962.5 12965.9 13060.7 13099.9 13204 13321.1 13391.2 13366.9 13415.3 13324.6 13141.9 12925.4 12901.5 12973 13155
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4673034.15354.1e-05
20.3452713.06880.001472
30.0473890.42120.337376
40.0703650.62540.266751
5-0.045368-0.40320.34393
60.0453590.40320.343961
7-0.029667-0.26370.396355
8-0.012729-0.11310.455105
90.0809760.71970.236907
100.0465930.41410.339952
11-0.072319-0.64280.261113
12-0.141771-1.26010.105674
13-0.095138-0.84560.200164
14-0.05066-0.45030.326871
15-0.014235-0.12650.449821
16-0.022847-0.20310.419803
17-0.073743-0.65540.257043
18-0.09362-0.83210.203928
190.0278950.24790.402414
20-0.053559-0.4760.31768
21-0.098334-0.8740.19238
22-0.089094-0.79190.215401
230.0163190.1450.442523
240.1008350.89620.186424
250.1084720.96410.168963
260.0563290.50070.309
27-0.097228-0.86420.195052
280.0501850.44610.328388
290.0857220.76190.22419
300.1511061.34310.091549
310.0292080.25960.397922
320.0500550.44490.328804
33-0.09409-0.83630.202757
34-0.097489-0.86650.19442
35-0.17798-1.58190.058831
36-0.18856-1.6760.04885
37-0.18368-1.63260.053268
38-0.091802-0.8160.208491
39-0.060987-0.54210.294649
40-0.046507-0.41340.340231
41-0.090965-0.80850.210611
42-0.073367-0.65210.258113
43-0.017899-0.15910.437003
440.0059980.05330.47881
45-0.012153-0.1080.457129
46-0.084575-0.75170.227227
47-0.082265-0.73120.233414
48-0.036233-0.3220.374134


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4673034.15354.1e-05
20.1623531.4430.076484
3-0.215013-1.91110.029811
40.090270.80230.212382
5-0.058365-0.51880.30269
60.0691280.61440.27035
7-0.044302-0.39380.347408
8-0.04324-0.38430.350886
90.1934111.71910.044758
10-0.084032-0.74690.228672
11-0.187485-1.66640.049797
12-0.035512-0.31560.376554
130.0702270.62420.26715
140.0421750.37490.354384
15-0.062696-0.55730.289464
16-0.030224-0.26860.394454
17-0.030772-0.27350.39259
18-0.062683-0.55710.289503
190.1358751.20770.115387
20-0.11723-1.0420.150303
21-0.095919-0.85250.198244
220.0775450.68920.246348
230.0631070.56090.288223
240.1097230.97520.16621
25-0.078485-0.69760.243742
26-0.023775-0.21130.416591
27-0.097065-0.86270.195447
280.1650141.46670.073217
290.0998750.88770.188696
300.0066570.05920.476484
31-0.072013-0.64010.261991
32-0.041939-0.37280.355161
33-0.147449-1.31060.096902
34-0.074653-0.66350.25446
35-0.041809-0.37160.355591
360.012180.10830.457031
37-0.006247-0.05550.477931
38-0.125118-1.11210.13474
39-0.043285-0.38470.350736
400.0638190.56720.28608
41-0.027746-0.24660.402923
420.0007730.00690.497267
430.0696640.61920.268787
44-0.022209-0.19740.422012
45-0.056379-0.50110.308846
46-0.050838-0.45190.326303
47-0.053293-0.47370.318517
480.0113660.1010.459894
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273076967f039g7jg7wus2iv/1xyre1273076874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273076967f039g7jg7wus2iv/1xyre1273076874.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273076967f039g7jg7wus2iv/2xyre1273076874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273076967f039g7jg7wus2iv/2xyre1273076874.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 4 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 4 ; 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