Home » date » 2007 » Nov » 28 » attachments

Autocorrelation - opdracht 3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 11:26:27 -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/28/t1196273822klusi0u2658kha3.htm/, Retrieved Wed, 28 Nov 2007 19:17:04 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,68 4,68 4,67 4,58 4,48 4,46 4,46 4,46 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,44 4,44 4,44 4,44 4,44 4,43 4,38 4,23 4,2 4,2 4,2 4,2 4,2 4,19 4,16 4,06 4 3,99 3,95 3,81 3,8 3,8 3,8 3,8 3,79 3,79 3,78 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,68 3,63 3,61 3,61 3,61 3,6 3,58 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,51 3,47 3,43 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42 3,42
 
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
0190
10.9670368.70330
20.9306648.3760
30.8937318.04360
40.8605697.74510
50.8315357.48380
60.8028287.22540
70.7735226.96170
80.7433216.68990
90.7112916.40160
100.6775186.09770
110.6427925.78510
120.6068855.4620
130.5698435.12861e-06
140.5331944.79874e-06
150.4964814.46831.3e-05
160.4590864.13184.4e-05
170.4217393.79570.000142
180.3833973.45060.000446
190.3438823.09490.001351
200.3023812.72140.003977
210.2583622.32530.01128
220.2136751.92310.028993
230.1710541.53950.063791
240.1378611.24080.109139
250.1066310.95970.170035
260.0751740.67660.250304
270.0425580.3830.351354
280.0081840.07370.470733
29-0.026978-0.24280.595614
30-0.061085-0.54980.708004
31-0.094212-0.84790.800506
32-0.123325-1.10990.864842
33-0.150364-1.35330.910134
34-0.177631-1.59870.943107
35-0.203655-1.83290.964754
36-0.223207-2.00890.976058
37-0.242851-2.18570.984136
38-0.263114-2.3680.989867
39-0.280798-2.52720.993278
40-0.299014-2.69110.995676
41-0.317331-2.8560.997276
42-0.335376-3.01840.998302
43-0.352925-3.17630.998945
44-0.36564-3.29080.999259
45-0.378584-3.40730.999488
46-0.391733-3.52560.999651
47-0.400508-3.60460.999731


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9670368.70330
1-0.069307-0.62380.732731
2-0.024925-0.22430.588464
30.0397210.35750.360829
40.040380.36340.358619
5-0.018131-0.16320.564607
6-0.023674-0.21310.584094
7-0.023161-0.20850.5823
8-0.040886-0.3680.643075
9-0.043766-0.39390.652653
10-0.033807-0.30430.619146
11-0.04143-0.37290.644892
12-0.043719-0.39350.652496
13-0.019809-0.17830.570527
14-0.028503-0.25650.600903
15-0.039028-0.35120.636843
16-0.024647-0.22180.587495
17-0.040208-0.36190.640806
18-0.045144-0.40630.657203
19-0.058988-0.53090.701526
20-0.069125-0.62210.732196
21-0.045412-0.40870.658085
22-0.008598-0.07740.530745
230.1038430.93460.17639
24-0.015536-0.13980.555428
25-0.034033-0.30630.619919
26-0.026774-0.2410.594904
27-0.035874-0.32290.626186
28-0.038543-0.34690.635211
29-0.016521-0.14870.558916
30-0.023742-0.21370.584331
310.0195570.1760.430361
32-0.00951-0.08560.533997
33-0.040238-0.36210.640904
34-0.011428-0.10280.540832
350.0759040.68310.248234
36-0.033179-0.29860.616999
37-0.040674-0.36610.642365
380.0222890.20060.420756
39-0.031214-0.28090.610258
40-0.042323-0.38090.647865
41-0.032929-0.29640.616142
42-0.033042-0.29740.616531
430.0250920.22580.410951
44-0.050035-0.45030.673157
45-0.03244-0.2920.614468
460.0615270.55370.29064
47-0.011079-0.09970.539591
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273822klusi0u2658kha3/1e2741196274385.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273822klusi0u2658kha3/1e2741196274385.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273822klusi0u2658kha3/2v08h1196274385.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273822klusi0u2658kha3/2v08h1196274385.ps (open in new window)


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