Home » date » 2007 » Nov » 29 » attachments

Q2_T1

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 08:47:46 -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/29/t11963506549fq8isb4oqhzt4c.htm/, Retrieved Thu, 29 Nov 2007 16:37:34 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,22 5,09 4,77 4,54 4,56 4,39 4,73 4,44 4,3 4,24 4,01 3,5 3,23 3,28 3,49 3,7 3,63 3,95 3,73 3,87 3,66 3,49 3,4 3,32 3,11 3,06 2,68 2,55 2,34 2,34 2,39 2,21 2,09 2,14 2,31 2,14 2,45 2,52 2,3 2,25 2,06 1,99 2,25 2,26 2,36 2,3 2,19 2,31 2,21 2,21 2,26 2,18 2,21 2,33 2,12 2,08 1,97 2,09 2,11 2,24 2,45 2,68 2,73 2,76 2,83 3,16 3,22 3,22 3,34 3,35 3,42 3,58 3,71 3,68 3,83 3,94 3,88 4,03 4,15 4,32 4,4 4,37 4,14 4,11 4,16
 
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
019.16520
10.1860141.70480.045959
20.2238222.05140.021674
30.1011380.92690.178304
40.0081960.07510.47015
50.0442920.40590.342907
60.104430.95710.170628
70.0249140.22830.409967
80.1910681.75120.041784
90.1265111.15950.12477
100.055160.50560.307248
110.0840050.76990.221755
12-0.102219-0.93690.82424
130.1451451.33030.093514
140.0459980.42160.337206
150.1176261.07810.142046
160.0640320.58690.279434
170.1502461.3770.086081
180.0206310.18910.425239
190.2038541.86840.0326
200.0406110.37220.355339
210.0256830.23540.40724
22-0.012186-0.11170.544329
230.0482930.44260.329591
240.039230.35960.360042
25-0.01666-0.15270.560497
26-0.055578-0.50940.69409
270.0733850.67260.251529
280.179011.64070.052304
29-0.007758-0.07110.528256
300.1115131.0220.154851
31-0.082832-0.75920.77506
32-0.084156-0.77130.778655
33-0.07714-0.7070.759239
34-0.137022-1.25580.893669
35-0.058412-0.53540.70309
360.0587260.53820.295921
37-0.103556-0.94910.827355
380.0466580.42760.33501
39-0.193271-1.77140.959936
40-0.17046-1.56230.939011
41-0.064506-0.59120.722014
42-0.057488-0.52690.70017
430.0411160.37680.353624
440.0427770.39210.348003
45-0.049021-0.44930.672809
46-0.041406-0.37950.647359
47-0.018508-0.16960.567144


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1860141.70480.045959
10.1960031.79640.038013
20.0336150.30810.379389
3-0.059596-0.54620.706814
40.0262920.2410.405083
50.1103261.01120.157422
6-0.015029-0.13770.554612
70.1549181.41990.079676
80.0731080.670.252333
9-0.038407-0.3520.637142
100.0210620.1930.423697
11-0.139757-1.28090.898122
120.1860381.70510.045939
130.0132660.12160.45176
140.0651820.59740.275924
15-0.031858-0.2920.61449
160.0993210.91030.182636
17-0.024225-0.2220.587582
180.1454911.33340.092995
190.0183180.16790.433538
20-0.078248-0.71720.762365
21-0.080726-0.73990.769277
220.0557740.51120.305283
230.0106320.09740.461303
24-0.065276-0.59830.724364
25-0.112931-1.0350.848187
260.1130821.03640.151492
270.1666341.52720.065231
28-0.081539-0.74730.77152
290.0064140.05880.47663
30-0.066138-0.60620.72698
31-0.149698-1.3720.913143
32-0.06649-0.60940.728044
33-0.111721-1.02390.845599
340.0622990.5710.28477
350.0031340.02870.488575
36-0.153456-1.40640.918359
370.0215440.19750.421973
38-0.152895-1.40130.917597
39-0.039226-0.35950.639942
400.0181360.16620.434194
410.0986960.90460.184142
420.0252440.23140.408796
43-0.031769-0.29120.614178
44-0.016707-0.15310.560664
45-0.051258-0.46980.680138
460.0102440.09390.462712
470.0097320.08920.464571
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963506549fq8isb4oqhzt4c/1u8rb1196351261.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963506549fq8isb4oqhzt4c/1u8rb1196351261.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963506549fq8isb4oqhzt4c/2jr0w1196351261.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963506549fq8isb4oqhzt4c/2jr0w1196351261.ps (open in new window)


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