Home » date » 2007 » Nov » 29 » attachments

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

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:26:12 -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/t1196331419g70uvh4nkibwq0p.htm/, Retrieved Thu, 29 Nov 2007 11:17:01 +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 time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.92820
10.2081611.44220.077873
20.1557421.0790.142987
30.2298661.59260.058912
4-0.091995-0.63740.736541
50.0687610.47640.31798
60.0215740.14950.440906
7-0.098793-0.68450.751511
80.0606110.41990.338207
9-0.051415-0.35620.638378
10-0.003748-0.0260.510304
11-0.010892-0.07550.529919
12-0.217817-1.50910.931083
13-0.085052-0.58930.720774
14-0.002692-0.01870.507403
15-0.040372-0.27970.609548
16-0.144278-0.99960.838739
170.069870.48410.315266
180.0672250.46570.321752
19-0.082745-0.57330.715432
200.009350.06480.474311
210.0736450.51020.306115
22-0.105684-0.73220.766197
230.1001990.69420.245452
24-0.042541-0.29470.615266
25-0.142777-0.98920.836234
26-0.002426-0.01680.50667
27-0.150759-1.04450.849254
28-0.027563-0.1910.575319
29-0.019033-0.13190.55218
30-0.162358-1.12480.866876
310.0773570.53590.297237
32-0.029122-0.20180.579523
33-0.202211-1.4010.916171
34-0.058175-0.4030.655649
35-0.074744-0.51780.696525
360.0425040.29450.384832
370.1188310.82330.20721
380.0773050.53560.297358
390.0099380.06890.472697
400.0450680.31220.378106
410.0347910.2410.405275
42-0.013553-0.09390.537209
43-0.050883-0.35250.637006
44-0.0671-0.46490.677941
45-0.013504-0.09360.537077
460.0258080.17880.429421
47-0.004375-0.03030.512027
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2081611.44220.077873
10.1175030.81410.209809
20.1873921.29830.100196
3-0.198946-1.37830.912755
40.081650.56570.287121
5-0.020486-0.14190.556135
6-0.056439-0.3910.651243
70.0460740.31920.375476
8-0.042417-0.29390.61494
90.0415390.28780.387372
10-0.067222-0.46570.678243
11-0.184969-1.28150.896914
12-0.028566-0.19790.578025
130.0923810.640.262596
140.0477160.33060.371199
15-0.236788-1.64050.946282
160.1765561.22320.11361
170.0958470.6640.254919
18-0.141341-0.97920.833813
19-0.081808-0.56680.713249
200.1946841.34880.091864
21-0.101551-0.70360.757448
220.0323740.22430.411741
23-0.127583-0.88390.809428
24-0.092074-0.63790.736718
250.0318340.22060.413187
26-0.074512-0.51620.695969
27-0.071599-0.4960.688938
280.0270540.18740.426054
290.0281110.19480.423203
30-0.003278-0.02270.509012
31-0.14296-0.99050.83654
32-0.065196-0.45170.673238
33-0.070488-0.48840.686238
340.0514160.35620.361617
350.1134270.78580.21791
360.0741910.5140.304802
37-0.040809-0.28270.610702
38-0.09063-0.62790.733478
390.0044430.03080.487784
40-0.020876-0.14460.557196
41-0.020637-0.1430.556546
42-0.029488-0.20430.580507
43-0.07962-0.55160.708116
440.0107570.07450.470451
45-0.057759-0.40020.654596
460.0288870.20010.421111
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196331419g70uvh4nkibwq0p/1adp51196331964.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196331419g70uvh4nkibwq0p/1adp51196331964.ps (open in new window)


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


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