Home » date » 2007 » Nov » 30 » attachments

Workshop8_q1b

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Nov 2007 07:47:04 -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/30/t1196433446wqcm3w8synsr0tr.htm/, Retrieved Fri, 30 Nov 2007 15:37:26 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
48527 44446 46380 48950 38883 42928 37107 30186 32602 39892 32194 21629 59968 45694 55756 48554 41052 49822 39191 31994 35735 38930 33658 23849 58972 59249 63955 53785 52760 44795 37348 32370 32717 40974 33591 21124 58608 46865 51378 46235 47206 45382 41227 33795 31295 42625 33625 21538 56421 53152 53536 52408 41454 38271 35306 26414 31917 38030 27534 18387 50556 43901 48572 43899 37532 40357 35489 29027 34485 42598 30306 26451 47460 50104 61465 53726 39477 43895 31481 29896 33842 39120 33702 25094 51442 45594 52518 48564 41745 49585 32747 33379 35645 37034 35681 20972
 
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 time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
019.16520
10.2183162.00090.024316
20.2711622.48520.007465
30.2534822.32320.011293
40.208131.90750.029934
50.157161.44040.076737
60.1137641.04270.150047
7-0.101923-0.93410.823544
8-0.041187-0.37750.646617
9-0.039409-0.36120.640568
10-0.182959-1.67680.951355
11-0.058004-0.53160.701803
12-0.387893-3.55510.999688
13-0.224421-2.05690.978598
14-0.107517-0.98540.836375
15-0.079921-0.73250.767044
16-0.279516-2.56180.993901
17-0.030679-0.28120.610368
18-0.055931-0.51260.695218
190.0156810.14370.443032
200.1406361.2890.100477
210.0257310.23580.40707
220.0583740.5350.297028
230.1098711.0070.158417
24-0.037852-0.34690.63524
250.0108560.09950.460491
260.0661960.60670.272846
27-0.052029-0.47690.682647
280.0278630.25540.39953
290.0148460.13610.446048
30-0.097164-0.89050.812137
31-0.08266-0.75760.774593
32-0.132893-1.2180.88668
33-0.123592-1.13270.869726
34-0.107542-0.98560.836429
35-0.116239-1.06540.855115
36-0.204401-1.87340.967752
37-0.019231-0.17630.569741
38-0.062752-0.57510.716629
39-0.127323-1.16690.87673
400.0237170.21740.414222
41-0.050167-0.45980.676573
42-0.027328-0.25050.598581
430.0779280.71420.238535
44-0.009605-0.0880.534969
45-0.002002-0.01830.507298
460.0624180.57210.284402
47-0.016402-0.15030.559565
480.1366571.25250.106936
490.0489980.44910.327268
50-0.003837-0.03520.513984
510.0900170.8250.20585
520.0305360.27990.390133
53-0.002007-0.01840.507315
540.0555120.50880.30612
550.0233360.21390.415579
560.0201750.18490.426875
570.0752250.68950.246219
580.0269260.24680.40284
590.0422860.38760.349663


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2183162.00090.024316
10.2346862.15090.017177
20.17441.59840.056854
30.0943730.86490.194767
40.0259940.23820.406138
5-0.013202-0.1210.548009
6-0.236742-2.16980.983576
7-0.095281-0.87330.807496
8-0.005524-0.05060.520129
9-0.130578-1.19680.882617
100.0665590.610.271747
11-0.326593-2.99330.998188
12-0.072857-0.66770.746936
130.0983250.90120.185039
140.1467911.34540.091065
15-0.156366-1.43310.922233
160.0852710.78150.218347
170.0932190.85440.197666
18-0.021496-0.1970.577852
190.1350011.23730.109711
200.0128460.11770.453281
21-0.08697-0.79710.786178
22-0.026087-0.23910.594192
23-0.303265-2.77950.996641
24-0.147592-1.35270.91011
250.0587270.53820.295918
260.1325921.21520.113843
27-0.082295-0.75420.773594
280.0526020.48210.315494
290.0144360.13230.447528
30-0.113776-1.04280.849978
31-0.068948-0.63190.735423
320.0632380.57960.281873
33-0.075459-0.69160.75445
34-0.001051-0.00960.503832
35-0.246424-2.25850.986747
36-0.053152-0.48710.686289
370.0834860.76520.223159
38-0.015625-0.14320.556766
39-0.067274-0.61660.730409
40-0.03189-0.29230.614601
41-0.005993-0.05490.521837
420.0111530.10220.459414
43-0.047582-0.43610.668056
440.0660050.60490.273424
45-0.064667-0.59270.722507
46-0.080094-0.73410.767526
47-0.123696-1.13370.869926
48-0.075521-0.69220.754629
490.0750840.68820.246626
500.1028840.94290.174206
51-0.122755-1.12510.868117
52-0.017477-0.16020.563436
530.0558170.51160.305147
540.0158060.14490.442581
550.0193450.17730.429849
560.0754940.69190.245448
57-0.051246-0.46970.6801
58-0.037132-0.34030.632768
59-0.126569-1.160.875337
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196433446wqcm3w8synsr0tr/1o99n1196434020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196433446wqcm3w8synsr0tr/1o99n1196434020.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196433446wqcm3w8synsr0tr/24ri91196434020.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t1196433446wqcm3w8synsr0tr/24ri91196434020.ps (open in new window)


 
Parameters:
par1 = 60 ; par2 = -1.8 ; par3 = 0 ; 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