Home » date » 2007 » Nov » 25 » attachments

Q2 Autocorrelation (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: Sun, 25 Nov 2007 09:29:47 -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/Nov/25/t1196007680rsrwrcl9pbn52pz.htm/, Retrieved Sun, 25 Nov 2007 17:21:22 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105.1 113.3 99.1 100.3 93.5 98.8 106.2 98.3 102.1 117.1 101.5 80.5 105.9 109.5 97.2 114.5 93.5 100.9 121.1 116.5 109.3 118.1 108.3 105.4 116.2 111.2 105.8 122.7 99.5 107.9 124.6 115 110.3 132.7 99.7 96.5 118.7 112.9 130.5 137.9 115 116.8 140.9 120.7 134.2 147.3 112.4 107.1 128.4 137.7 135 151 137.4 132.4 161.3 139.8 146 154.6 142.1 120.5
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.85570
1-0.41033-2.81310.99643
2-0.167141-1.14590.871173
30.0542330.37180.355855
40.0473830.32480.37337
50.0304110.20850.417874
6-0.004065-0.02790.511058
7-0.000191-0.00130.500519
8-0.129492-0.88770.810402
90.1446550.99170.16321
10-0.083704-0.57380.715596
110.1075420.73730.232311
12-0.152392-1.04470.849258
13-0.029969-0.20550.58095
140.1352060.92690.17935
15-0.06552-0.44920.672318
160.1466881.00560.159869
17-0.207457-1.42230.919222
180.0637910.43730.331937
19-0.02071-0.1420.556149
200.02390.16390.435275
210.030350.20810.418038
220.0156920.10760.457394
230.0468990.32150.37462
24-0.212685-1.45810.924268
250.1379210.94550.17461
260.0882510.6050.274039
27-0.088411-0.60610.726323
28-0.094208-0.64590.739244
290.1216660.83410.204222
30-0.014359-0.09840.538998
31-0.001351-0.00930.503674
320.0131430.09010.464295
33-0.085507-0.58620.71973
340.0554980.38050.352653
350.0383460.26290.396895
36-0.022699-0.15560.5615
370.0266470.18270.427917
38-0.084925-0.58220.718397
390.0406560.27870.390839
400.063990.43870.331446
41-0.045004-0.30850.620479
42-0.079929-0.5480.706847
430.1148870.78760.217434
44-0.037663-0.25820.601311
45-0.025008-0.17140.567697
460.0149660.10260.459358
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.41033-2.81310.99643
1-0.403439-2.76580.995955
2-0.298105-2.04370.976695
3-0.210134-1.44060.921838
4-0.092995-0.63750.736568
5-0.004865-0.03340.513234
60.0675270.46290.322772
7-0.112938-0.77430.778674
80.0137690.09440.462598
9-0.125746-0.86210.803487
100.0612250.41970.338296
11-0.128204-0.87890.808043
12-0.204306-1.40070.916057
13-0.117214-0.80360.787158
14-0.176679-1.21120.884072
150.1266630.86840.194805
16-0.040349-0.27660.608358
170.0139870.09590.462008
18-0.097288-0.6670.745974
19-0.203602-1.39580.915337
20-0.144586-0.99120.836676
21-0.064118-0.43960.668868
220.1567851.07490.143961
23-0.07208-0.49420.68825
24-0.135326-0.92770.82086
250.0422510.28970.386676
26-0.077637-0.53230.701471
27-0.088189-0.60460.72582
28-0.045062-0.30890.62063
29-0.12714-0.87160.806078
30-0.027305-0.18720.573844
31-0.116004-0.79530.784776
32-0.009838-0.06740.526742
33-0.015512-0.10630.542121
340.0698740.4790.317069
35-0.026021-0.17840.570407
36-0.053161-0.36450.641423
37-0.087522-0.60.724314
38-0.072691-0.49830.689717
390.081240.5570.290102
400.0522630.35830.360864
41-0.100679-0.69020.753274
420.0539490.36990.356577
43-0.036939-0.25320.599407
44-0.028972-0.19860.578292
45-0.006596-0.04520.517939
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007680rsrwrcl9pbn52pz/1587b1196008185.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007680rsrwrcl9pbn52pz/1587b1196008185.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007680rsrwrcl9pbn52pz/2r9qi1196008185.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007680rsrwrcl9pbn52pz/2r9qi1196008185.ps (open in new window)


 
Parameters:
par1 = 60 ; par2 = 1 ; 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