Home » date » 2009 » Nov » 24 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 24 Nov 2009 10:53:19 -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/Nov/24/t1259085395svtspwmvr5f4br5.htm/, Retrieved Tue, 24 Nov 2009 18:56:37 +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/Nov/24/t1259085395svtspwmvr5f4br5.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 «
90398 90269 90390 88219 87032 87175 92603 93571 94118 92159 89528 89955 89587 89488 88521 86587 85159 84915 91378 92729 92194 89664 86285 86858 87184 86629 85220 84816 84831 84957 90951 92134 91790 86625 83324 82719 83614 81640 78665 77828 75728 72187 79357 81329 77304 75576 72932 74291 74988 73302 70483 69848 66466 67610 75091 76207 73454 72008 71362 74250
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1996511.53360.065243
2-0.285103-2.18990.016248
3-0.325974-2.50390.007535
4-0.204735-1.57260.060579
50.1371921.05380.148137
60.2362071.81430.037356
70.0694160.53320.297951
8-0.229051-1.75940.041849
9-0.32796-2.51910.007247
10-0.204204-1.56850.061054
110.2616212.00960.02453
120.6846715.25911e-06
130.0774070.59460.2772
14-0.260856-2.00370.024852
15-0.273833-2.10340.019854
16-0.133326-1.02410.154984
170.1348921.03610.152185
180.1443311.10860.136044
190.0551070.42330.336815
20-0.25978-1.99540.025311
21-0.270238-2.07570.021143
22-0.078474-0.60280.274486
230.1753341.34680.091603
240.4537243.48510.000467
250.0781210.60010.275383
26-0.20422-1.56860.06104
27-0.203975-1.56680.061259
28-0.069218-0.53170.298474
290.1220040.93710.176256
300.1230990.94550.17412
310.0215920.16590.43442
32-0.191208-1.46870.073614
33-0.168951-1.29770.099714
34-0.028518-0.2190.413684
350.1063740.81710.208586
360.2931112.25140.014048


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1996511.53360.065243
2-0.338455-2.59970.005885
3-0.214331-1.64630.052509
4-0.220254-1.69180.04798
50.0656070.50390.30809
60.0245230.18840.425618
7-0.017011-0.13070.448244
8-0.207641-1.59490.058036
9-0.22054-1.6940.047769
10-0.285918-2.19620.016011
110.0979310.75220.227454
120.5161583.96470.000101
13-0.120223-0.92340.179767
140.0664430.51040.305851
15-0.000409-0.00310.498751
160.0039670.03050.487898
17-0.106788-0.82030.207687
18-0.146765-1.12730.132084
190.0506750.38920.349249
20-0.175666-1.34930.091195
210.0381120.29270.385371
22-0.012009-0.09220.463409
23-0.22357-1.71730.045588
24-0.018847-0.14480.442694
250.0439420.33750.368461
26-0.043065-0.33080.370988
27-0.053363-0.40990.341685
280.0041750.03210.487262
290.0192620.1480.441443
30-0.03785-0.29070.386139
31-0.056558-0.43440.332781
320.1091080.83810.202686
33-0.040993-0.31490.376985
340.0070510.05420.478494
35-0.00633-0.04860.480692
36-0.087224-0.670.252742
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085395svtspwmvr5f4br5/1ou2z1259085198.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085395svtspwmvr5f4br5/1ou2z1259085198.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085395svtspwmvr5f4br5/2afxq1259085198.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085395svtspwmvr5f4br5/2afxq1259085198.ps (open in new window)


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