Home » date » 2007 » Dec » 13 » attachments

paper tijdreeks 2: autocorrelation 1

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 13 Dec 2007 02:28:59 -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/13/t1197537218apaqof6tpd7n74f.htm/, Retrieved Thu, 13 Dec 2007 10:13:43 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15082.0 14772.7 16083.0 14272.5 15223.3 14897.3 13062.6 12603.8 13629.8 14421.1 13978.3 12927.9 13429.9 13470.1 14785.8 14292.0 14308.8 14013.0 13240.9 12153.4 14289.7 15669.2 14169.5 14569.8 14469.1 14264.9 15320.9 14433.5 13691.5 14194.1 13519.2 11857.9 14615.9 15643.4 14077.2 14887.5 14159.9 14643.0 17192.5 15386.1 14287.1 17526.6 14497.0 14398.3 16629.6 16670.7 16614.8 16869.2 15663.9 16359.9 18447.7 16889.0 16505.0 18320.9 15052.1 15699.8 18135.3 16768.7 18883.0 19021.0
 
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
017.7460
10.5803224.49521.6e-05
20.4253113.29440.000829
30.5693554.41022.2e-05
40.3461972.68160.004724
50.41843.24090.000973
60.5570784.31513e-05
70.3179692.4630.008333
80.3466762.68530.004678
90.3753892.90780.002548
100.1293711.00210.160159
110.2619982.02940.023429
120.4384823.39650.000608
130.1467391.13660.130105
140.0839450.65020.259012
150.1077470.83460.203626
16-0.05395-0.41790.661243
170.0656210.50830.306553
180.1156460.89580.186973
19-0.078316-0.60660.726808
200.0135930.10530.458249
21-0.008816-0.06830.527108
22-0.182437-1.41310.918611
23-0.051087-0.39570.653143
240.0011340.00880.496509
25-0.132086-1.02310.844825
26-0.166143-1.28690.89847
27-0.225267-1.74490.95694
28-0.272958-2.11430.980674
29-0.178653-1.38380.914233
30-0.169813-1.31540.903304
31-0.225979-1.75040.957422
32-0.186776-1.44680.923416
33-0.192692-1.49260.929607
34-0.260286-2.01620.975867
35-0.195984-1.51810.932877
36-0.148786-1.15250.873155
37-0.209676-1.62410.945206
38-0.256749-1.98880.974354
39-0.276861-2.14460.981976
40-0.310556-2.40560.990376
41-0.234206-1.81420.962673
42-0.185606-1.43770.922142
43-0.195403-1.51360.93231
44-0.188144-1.45740.924884
45-0.184665-1.43040.921106
46-0.203669-1.57760.940043
47-0.176812-1.36960.912039


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.5803224.49521.6e-05
10.1334951.0340.152631
20.4267933.30590.000801
3-0.226826-1.7570.957989
40.3844592.9780.002091
50.0882090.68330.248535
6-0.095019-0.7360.767706
70.0698270.54090.295297
8-0.096899-0.75060.77208
9-0.166985-1.29350.899595
100.1468581.13760.129915
110.2513891.94730.028095
12-0.332071-2.57220.993701
13-0.207316-1.60590.943222
14-0.084447-0.65410.742234
150.0785680.60860.272549
16-0.001978-0.01530.506086
17-0.034384-0.26630.604555
18-0.057783-0.44760.671968
190.0506230.39210.348179
200.0010150.00790.496878
210.0751550.58210.281324
22-0.082831-0.64160.738215
23-0.056048-0.43410.667129
240.0448270.34720.364816
25-0.185867-1.43970.922428
26-0.020904-0.16190.564046
27-0.034553-0.26760.605056
28-0.044209-0.34240.633393
29-0.010285-0.07970.531617
300.0898320.69580.244609
31-0.052966-0.41030.658466
320.0709140.54930.292421
33-0.010764-0.08340.533085
340.0551250.4270.335455
35-0.045599-0.35320.637416
36-0.100595-0.77920.780538
37-0.080683-0.6250.732818
380.0034340.02660.489435
39-0.141031-1.09240.860493
400.046570.36070.359784
41-0.032131-0.24890.59785
420.0913150.70730.241052
43-0.030606-0.23710.593295
44-0.003366-0.02610.510357
450.0709110.54930.292428
46-0.015917-0.12330.548857
470.0114950.0890.464674
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197537218apaqof6tpd7n74f/1ll9u1197538137.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197537218apaqof6tpd7n74f/1ll9u1197538137.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197537218apaqof6tpd7n74f/20ywd1197538137.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197537218apaqof6tpd7n74f/20ywd1197538137.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