Home » date » 2007 » Nov » 27 » attachments

Workshop 3 Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 27 Nov 2007 06:21:35 -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/27/t1196169182ggqyrfy4bpm6v4c.htm/, Retrieved Tue, 27 Nov 2007 14:13:04 +0100
 
User-defined keywords:
Q2, reeks 4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99,4 102,7 109,3 93,9 95,3 101,8 85,6 81,1 109,5 104,0 94,5 79,0 92,8 95,6 101,7 90,8 89,5 91,8 83,8 77,4 112,7 98,8 85,7 72,8 96,9 95,0 94,2 87,3 80,6 87,9 79,6 71,9 94,6 91,4 86,6 68,5 90,1 91,6 95,4 85,4 81,6 88,9 84,1 74,7 97,1 95,3 85,1 67,3 80,6 87,9 89,2 81,3 79,7 83,7 82,1 69,3 91,2 85,7 85,2 70,0 85,8 91,4 97,5 87,1 85,1 94,1 85,8 74,7 99,9 90,7 86,8 74,8 91,8 97,6 100,8 85,4 84,0 90,6 80,5 73,9 93,6
 
Text written by user:
d=1 D=1
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.24620
1-0.298605-2.46240.991829
2-0.160809-1.32610.905372
3-0.068194-0.56230.712135
40.1787481.4740.072549
50.026570.21910.413613
6-0.047544-0.39210.65188
70.0951090.78430.217796
8-0.330622-2.72640.995931
90.2781052.29330.012464
10-0.073384-0.60510.726451
110.1382871.14030.129072
12-0.305587-2.51990.992954
130.0306830.2530.400507
140.0509260.41990.337925
15-0.041923-0.34570.634685
160.0902060.74390.229763
17-0.221235-1.82440.963754
180.1910641.57560.059885
19-0.102273-0.84340.79901
200.1007440.83080.20451
21-0.026699-0.22020.586798
220.0417230.34410.365932
23-0.048358-0.39880.654344
24-0.055906-0.4610.676869
250.2080021.71520.045429
26-0.166467-1.37270.912825
270.1426171.1760.121838
28-0.131379-1.08340.858766
290.1042040.85930.196601
30-0.092984-0.76680.777062
310.111610.92040.180319
32-0.041713-0.3440.634036
33-0.19932-1.64360.947566
340.2155921.77780.039952
350.002570.02120.491576
36-0.047786-0.39410.652613
37-0.139003-1.14620.872145
380.1457841.20220.116734
39-0.045522-0.37540.645727
400.0073930.0610.475782
41-0.010755-0.08870.535206
42-0.03039-0.25060.598561
43-0.005948-0.04910.519489
440.0460110.37940.352782
450.0573870.47320.318784
46-0.097948-0.80770.788961
470.0025080.02070.491781


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.298605-2.46240.991829
1-0.274444-2.26310.986588
2-0.25093-2.06920.978836
30.0173360.1430.443372
40.0600960.49560.3109
50.0465830.38410.35104
60.1935661.59620.057542
7-0.300995-2.48210.992231
80.1035520.85390.198077
9-0.105555-0.87040.806436
100.136621.12660.131936
11-0.193746-1.59770.942624
12-0.126578-1.04380.84986
13-0.145986-1.20380.883585
14-0.15276-1.25970.893957
15-0.041865-0.34520.634504
16-0.129561-1.06840.855438
170.0556930.45930.323756
180.037530.30950.378951
19-0.077747-0.64110.738199
200.1425691.17570.121917
210.0313020.25810.398546
220.0538250.44390.32928
23-0.074873-0.61740.73049
240.0284520.23460.407602
25-0.083782-0.69090.754006
260.0415960.3430.366326
27-0.071318-0.58810.720795
28-0.003385-0.02790.511092
29-0.08198-0.6760.749341
300.0939560.77480.220576
31-0.080608-0.66470.745758
32-0.088879-0.73290.766935
330.0585570.48290.315368
340.1843421.52010.066558
35-0.115499-0.95240.827874
360.0744820.61420.27057
37-0.099029-0.81660.791501
380.0938490.77390.220837
39-0.109083-0.89950.814226
40-0.039187-0.32310.62621
410.0015680.01290.494861
42-0.080973-0.66770.746715
430.0298340.2460.403206
44-0.060203-0.49640.68941
450.0029360.02420.490379
460.0518940.42790.335027
47-0.056279-0.46410.677968
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196169182ggqyrfy4bpm6v4c/16ew71196169693.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196169182ggqyrfy4bpm6v4c/16ew71196169693.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196169182ggqyrfy4bpm6v4c/21ttw1196169693.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196169182ggqyrfy4bpm6v4c/21ttw1196169693.ps (open in new window)


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