Home » date » 2007 » Nov » 29 » attachments

WS 4 - Q2 - methode 2 - Reeks 1 (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:00:34 -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/t1196329850mbnl01zrynu9xwg.htm/, Retrieved Thu, 29 Nov 2007 10:50:50 +0100
 
User-defined keywords:
Christel Stuer, Steven Coomans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
117 103,8 100,8 110,6 104 112,6 107,3 98,9 109,8 104,9 102,2 123,9 124,9 112,7 121,9 100,6 104,3 120,4 107,5 102,9 125,6 107,5 108,8 128,4 121,1 119,5 128,7 108,7 105,5 119,8 111,3 110,6 120,1 97,5 107,7 127,3 117,2 119,8 116,2 111 112,4 130,6 109,1 118,8 123,9 101,6 112,8 128 129,6 125,8 119,5 115,7 113,6 129,7 112 116,8 127 112,9 113,3 121,7
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.92820
10.0686340.47550.318291
2-0.056275-0.38990.650826
30.1238060.85780.197646
40.0342380.23720.406752
50.0376820.26110.397579
60.1584821.0980.138843
7-0.125543-0.86980.805627
80.0060890.04220.483262
90.117130.81150.210543
10-0.201954-1.39920.915906
11-0.162493-1.12580.867072
12-0.166641-1.15450.872999
13-0.088363-0.61220.728352
140.0739630.51240.305349
15-0.150396-1.0420.848678
16-0.170269-1.17970.878024
170.1533171.06220.146728
18-0.054993-0.3810.647559
19-0.195946-1.35760.909523
200.0139660.09680.46166
210.0830040.57510.283966
22-0.045735-0.31690.623638
230.1573511.09020.140543
24-0.191592-1.32740.90467
25-0.117204-0.8120.789604
260.0885270.61330.271276
270.1274440.8830.19083
28-0.041755-0.28930.613196
290.0788390.54620.293726
300.0104810.07260.471208
310.0757660.52490.301028
320.0076240.05280.479046
33-0.169109-1.17160.876434
340.068850.4770.317761
350.0614450.42570.336114
360.002640.01830.492741
370.0878260.60850.27287
38-0.00704-0.04880.51935
39-0.104383-0.72320.763462
400.035590.24660.403144
41-0.06199-0.42950.665251
42-0.089843-0.62240.731703
430.0953510.66060.25601
440.0650780.45090.327056
45-0.073128-0.50660.692639
46-0.034774-0.24090.594678
47-0.023698-0.16420.564861


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0686340.47550.318291
1-0.061274-0.42450.663458
20.1332360.92310.18029
30.0113670.07880.468778
40.0516660.3580.360974
50.1422710.98570.164616
6-0.155195-1.07520.856174
70.0422650.29280.385461
80.0589330.40830.342436
9-0.209325-1.45020.923254
10-0.129944-0.90030.813766
11-0.230271-1.59540.941402
12-0.011266-0.07810.530944
130.085230.59050.278816
14-0.158868-1.10070.861735
15-0.014668-0.10160.540259
160.1760381.21960.114282
17-0.051488-0.35670.638567
18-0.14976-1.03760.847665
19-0.030744-0.2130.583887
200.1552341.07550.143765
21-0.153746-1.06520.85394
220.0218090.15110.440267
23-0.200069-1.38610.913941
24-0.071795-0.49740.689414
25-0.054164-0.37530.64544
260.1169830.81050.210832
270.0264870.18350.427585
280.0896620.62120.268704
29-0.020682-0.14330.55667
300.0308810.2140.415746
31-0.048544-0.33630.630953
32-0.12116-0.83940.797303
33-0.031057-0.21520.584728
34-0.095773-0.66350.744918
350.0066680.04620.481673
360.0530760.36770.357348
37-0.002719-0.01880.507476
380.0303090.210.417284
39-0.054865-0.38010.647232
400.0057020.03950.484327
410.0146780.10170.459713
42-0.002955-0.02050.508125
43-0.040741-0.28230.610521
44-0.039753-0.27540.60791
45-0.071077-0.49240.687671
460.0575210.39850.346007
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196329850mbnl01zrynu9xwg/1ulz51196330426.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196329850mbnl01zrynu9xwg/1ulz51196330426.ps (open in new window)


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


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