Home » date » 2007 » Nov » 28 » attachments

Autocorrelation (D=0;d=1)

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 11:32:34 -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/28/t1196274147x8eafddw0r8uagm.htm/, Retrieved Wed, 28 Nov 2007 19:22:29 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4.68 4.68 4.67 4.58 4.48 4.46 4.46 4.46 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.45 4.44 4.44 4.44 4.44 4.44 4.43 4.38 4.23 4.2 4.2 4.2 4.2 4.2 4.19 4.16 4.06 4 3.99 3.95 3.81 3.8 3.8 3.8 3.8 3.79 3.79 3.78 3.69 3.69 3.69 3.69 3.69 3.69 3.69 3.69 3.68 3.63 3.61 3.61 3.61 3.6 3.58 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.52 3.51 3.47 3.43 3.42 3.42 3.42 3.42 3.42 3.42 3.42 3.42 3.42 3.42 3.42
 
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
018.94430
10.3486543.11850.001263
2-0.058725-0.52530.69957
3-0.04657-0.41650.660933
40.0026680.02390.490512
5-0.088023-0.78730.783285
6-0.118718-1.06180.85425
7-0.069167-0.61870.731048
80.1892421.69260.047208
90.0757940.67790.249889
10-0.066493-0.59470.723148
110.0351870.31470.376897
120.2205281.97250.026006
13-0.044258-0.39590.653368
14-0.153224-1.37050.912814
15-0.109942-0.98340.835801
16-0.144931-1.29630.900701
17-0.059019-0.52790.700479
18-0.030783-0.27530.608115
190.1090440.97530.166171
200.1999721.78860.038732
21-0.03187-0.28510.611831
22-0.126668-1.13290.86969
23-0.056961-0.50950.694089
24-0.127936-1.14430.872042
25-0.091456-0.8180.792108
260.0069950.06260.475135
270.1092070.97680.165812
280.0649080.58060.281586
290.032270.28860.386805
30-0.010587-0.09470.537603
310.0750120.67090.2521
320.0448810.40140.344587
33-0.026469-0.23670.593272
340.004650.04160.483464
350.0592790.53020.298718
36-0.022102-0.19770.578104
37-0.02772-0.24790.59759
38-0.011803-0.10560.541907
390.0334530.29920.382776
40-0.011567-0.10350.54107
41-0.110502-0.98840.837021
42-0.11916-1.06580.85514
43-0.107005-0.95710.829295
44-0.075008-0.67090.747889
45-0.017213-0.1540.560984
460.0161010.1440.442927
47-0.012964-0.1160.54601


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3486543.11850.001263
1-0.205233-1.83570.964938
20.0590210.52790.299516
3-0.013459-0.12040.54776
4-0.109184-0.97660.834138
5-0.046153-0.41280.659574
6-0.032001-0.28620.612278
70.2422542.16680.016613
8-0.132458-1.18470.880185
9-0.006102-0.05460.521695
100.0925150.82750.205214
110.164531.47160.072525
12-0.218416-1.95360.972876
130.0178970.16010.436614
14-0.046201-0.41320.65973
15-0.22306-1.99510.975282
160.1315791.17690.121366
17-0.059567-0.53280.702169
180.1957021.75040.04194
19-0.085264-0.76260.776035
20-0.080261-0.71790.762538
210.019740.17660.43015
22-0.114675-1.02570.845933
23-0.09142-0.81770.792016
240.0823410.73650.231797
250.0618180.55290.29093
260.0205350.18370.427369
270.015910.14230.4436
280.003180.02840.48869
29-0.015011-0.13430.553233
30-0.005718-0.05110.52033
31-0.009581-0.08570.534039
320.1320941.18150.120456
33-0.025827-0.2310.591051
340.0652270.58340.28063
350.0369480.33050.370952
36-0.121802-1.08940.860383
37-0.012285-0.10990.543612
38-0.081899-0.73250.767007
39-0.020473-0.18310.572416
40-0.07408-0.66260.745252
41-0.034824-0.31150.621877
42-0.085422-0.7640.776454
430.032980.2950.384386
44-0.050735-0.45380.674393
45-0.063031-0.56380.712754
46-0.029493-0.26380.603691
47-0.002939-0.02630.510454
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196274147x8eafddw0r8uagm/1zenl1196274752.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196274147x8eafddw0r8uagm/1zenl1196274752.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196274147x8eafddw0r8uagm/267ya1196274752.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196274147x8eafddw0r8uagm/267ya1196274752.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; 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