Home » date » 2007 » Dec » 10 » attachments

Autocorrelation Function 2 d=1 D=1

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 10 Dec 2007 12:40:13 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/10/t11973147895hv17f2a1nv730z.htm/, Retrieved Mon, 10 Dec 2007 20:26:30 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106,22 106,31 107,38 109,31 110,82 111,22 110,66 110,76 110,69 111,08 110,97 110,24 112,51 111,52 112,13 112,23 112,92 111,89 111,99 111,51 112,33 112,04 112,09 111,41 112,61 113,14 113,65 114,26 114,4 114,93 114,86 114,95 116,17 114,6 114,62 113,82 115,02 115,18 115,59 116,6 117,07 116,96 116,66 116,07 116,04 115,81 116,22 115,85 116,43 117,39 119,17 119,24 120,03 119,34 118,49 118,59 117,5 117,56 118,25 118,01
 
Text written by user:
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.85570
1-0.166753-1.14320.870627
20.2341461.60520.057572
3-0.020158-0.13820.554661
4-0.010971-0.07520.529819
50.0620750.42560.336184
6-0.16645-1.14110.8702
70.0935260.64120.262259
8-0.17317-1.18720.879442
90.1291880.88570.190154
10-0.044102-0.30240.61814
110.078760.540.295889
12-0.219691-1.50610.930636
13-0.029648-0.20330.580094
14-0.124881-0.85610.801869
15-0.094003-0.64450.738792
16-0.034927-0.23940.594099
17-0.099277-0.68060.750271
180.1462121.00240.160646
19-0.066485-0.45580.674682
200.2517981.72620.045437
210.0389940.26730.395192
22-0.078115-0.53550.702595
230.0414270.2840.388826
24-0.058358-0.40010.654545
250.0429040.29410.384975
26-0.053512-0.36690.642315
270.1258220.86260.196371
280.0109010.07470.470373
290.025540.17510.43088
300.0266750.18290.42784
31-0.116539-0.7990.785832
320.0207570.14230.443724
33-0.107357-0.7360.767306
34-0.080569-0.55240.708339
35-0.038904-0.26670.604571
36-0.046601-0.31950.624612
370.0138030.09460.462506
380.0059660.04090.483775
390.056420.38680.350327
40-0.010546-0.07230.528664
410.0435210.29840.383369
42-0.055873-0.3830.648294
430.0013440.00920.496345
44-0.03027-0.20750.58175
45-0.015268-0.10470.541459
46-0.007351-0.05040.51999
47NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.166753-1.14320.870627
10.2122411.45510.076151
20.0495390.33960.367828
3-0.06132-0.42040.661941
40.0492540.33770.368557
5-0.145514-0.99760.838208
60.0300740.20620.418771
7-0.098253-0.67360.748064
80.0826420.56660.286852
90.0325440.22310.412207
100.0590350.40470.343758
11-0.266435-1.82660.962941
12-0.096369-0.66070.743977
13-0.110883-0.76020.774528
14-0.050322-0.3450.634181
15-0.048125-0.32990.628541
16-0.014177-0.09720.538508
170.0920620.63110.265503
180.0082410.05650.477592
190.1348010.92410.180065
200.1289820.88430.190529
21-0.169159-1.15970.873984
22-0.040097-0.27490.607698
23-0.016662-0.11420.545228
24-0.008894-0.0610.52418
25-0.00282-0.01930.50767
260.1124120.77070.222384
270.0196410.13470.446731
28-0.075818-0.51980.697173
29-0.055707-0.38190.647875
30-0.163746-1.12260.866342
310.0632780.43380.333204
320.0793730.54420.294454
33-0.110878-0.76010.774517
340.0180750.12390.450956
35-0.0209-0.14330.55666
36-0.037667-0.25820.601322
37-0.040898-0.28040.609792
380.0661450.45350.32615
390.009630.0660.473821
400.0011330.00780.496919
41-0.007384-0.05060.52008
42-0.030802-0.21120.583166
43-0.031688-0.21720.58552
44-0.047438-0.32520.626771
45-0.098785-0.67720.749212
46NANANA
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t11973147895hv17f2a1nv730z/1parg1197315608.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t11973147895hv17f2a1nv730z/1parg1197315608.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t11973147895hv17f2a1nv730z/2l4w81197315608.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t11973147895hv17f2a1nv730z/2l4w81197315608.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1.2 ; par3 = 1 ; par4 = 1 ; 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 1:par1) {
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(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-1,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(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:

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