Home » date » 2007 » Nov » 29 » attachments

WS 4 - Q2 - methode 2 - reeks 2 (1)

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 03:21:37 -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/t1196331096rf65x7kql17sqhm.htm/, Retrieved Thu, 29 Nov 2007 11:11:41 +0100
 
User-defined keywords:
Christel Stuer, Steven Coomans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100,6 101,2 93,1 84,2 85,8 91,8 92,4 80,3 79,7 62,5 57,1 100,8 100,7 86,2 83,2 71,7 77,5 89,8 80,3 78,7 93,8 57,6 60,6 91 85,3 77,4 77,3 68,3 69,9 81,7 75,1 69,9 84 54,3 60 89,9 77 85,3 77,6 69,2 75,5 85,7 72,2 79,9 85,3 52,2 61,2 82,4 85,4 78,2 70,2 70,2 69,3 77,5 66,1 69 79,2 58,2 64,5 76,4
 
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.2975832.30510.012319
2-0.107937-0.83610.796785
30.0927460.71840.237647
4-0.039306-0.30450.619087
50.1646871.27570.103496
60.3989323.09010.001516
70.0753960.5840.2807
8-0.073207-0.56710.713604
9-0.010405-0.08060.531986
10-0.219053-1.69680.952539
110.2086991.61660.055608
120.6101994.72667e-06
130.0692310.53630.29688
14-0.13891-1.0760.856881
15-0.025764-0.19960.578752
16-0.124036-0.96080.82974
170.051710.40050.34509
180.2322821.79920.038505
190.0095030.07360.470782
20-0.082685-0.64050.737848
21-0.072144-0.55880.71082
22-0.237079-1.83640.964374
230.1194590.92530.179252
240.3719112.88080.002747
25-0.007958-0.06160.524475
26-0.110842-0.85860.803006
27-0.103058-0.79830.786074
28-0.145543-1.12740.867963
290.0034060.02640.489519
300.0737740.57150.284915
31-0.052261-0.40480.656471
32-0.079258-0.61390.729208
33-0.142198-1.10150.862453
34-0.211002-1.63440.946296
350.0586550.45430.325611
360.2036771.57770.059949
370.0135230.10470.458462
38-0.115327-0.89330.812371
39-0.114542-0.88720.810753
40-0.11073-0.85770.802767
41-0.053172-0.41190.659048
42-0.00427-0.03310.513137
43-0.058569-0.45370.67415
44-0.102648-0.79510.785158
45-0.146969-1.13840.870265
46-0.13085-1.01360.842568
470.0072840.05640.477597
480.0351340.27210.393222
49-0.050784-0.39340.65228
50-0.085139-0.65950.743946
51-0.095596-0.74050.769054
52-0.103977-0.80540.788116
53-0.089064-0.68990.753537
54-0.081434-0.63080.734712
55-0.065307-0.50590.692597
56-0.074051-0.57360.715807
57-0.090512-0.70110.757026
58-0.038759-0.30020.617479
59-0.003445-0.02670.5106


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2975832.30510.012319
1-0.215584-1.66990.949926
20.2254611.74640.042928
3-0.214-1.65760.948695
40.3984943.08670.001531
50.1306111.01170.15787
6-0.00978-0.07580.530068
7-0.044444-0.34430.634073
8-0.048438-0.37520.645584
9-0.278669-2.15860.982553
100.4978523.85630.000142
110.235711.82580.036429
12-0.112942-0.87480.807426
13-0.103245-0.79970.786489
14-0.046886-0.36320.641126
15-0.056667-0.43890.668858
16-0.180721-1.39990.916648
170.0089320.06920.472534
180.0936170.72520.235587
19-0.013032-0.10090.540036
200.0887760.68770.247159
21-0.077568-0.60080.724894
220.0235920.18270.427809
23-0.054407-0.42140.662528
240.0214580.16620.434274
25-0.017911-0.13870.554939
26-0.122989-0.95270.827711
270.113960.88270.190453
28-0.094-0.72810.765314
29-0.105643-0.81830.79179
30-0.001913-0.01480.505888
31-0.006667-0.05160.520506
32-0.030634-0.23730.593379
330.0615660.47690.317587
34-0.065337-0.50610.692678
350.1328891.02940.153722
36-0.059269-0.45910.676087
37-0.040032-0.31010.621214
380.0287760.22290.412186
39-0.120857-0.93620.823527
400.0040610.03150.487506
41-0.066706-0.51670.696369
42-0.0233-0.18050.571307
43-0.02829-0.21910.586356
440.0198460.15370.439171
450.1199090.92880.178354
46-0.12615-0.97720.833792
47-0.173995-1.34780.908599
480.0182150.14110.444135
490.0501070.38810.349647
50-0.049011-0.37960.647223
51-0.05746-0.44510.671069
520.0481130.37270.355349
53-0.041156-0.31880.624505
54-0.04651-0.36030.640044
550.0316380.24510.403619
560.0149320.11570.454153
57-0.032384-0.25080.598604
580.0901610.69840.243818
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196331096rf65x7kql17sqhm/1pych1196331695.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196331096rf65x7kql17sqhm/1pych1196331695.ps (open in new window)


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


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