Home » date » 2007 » Nov » 29 » attachments

WS 4 - Q2 - methode 2 - reeks 3 (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:39:40 -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/t1196332187gskgf8vngdfp7qn.htm/, Retrieved Thu, 29 Nov 2007 11:29:47 +0100
 
User-defined keywords:
Christel Stuer, Steven Coomans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
118,4 108,1 105,4 114,6 106,9 115,9 109,8 101,8 114,2 110,8 108,4 127,5 128,6 116,6 127,4 105 108,3 125 111,6 106,5 130,3 115 116,1 134 126,5 125,8 136,4 114,9 110,9 125,5 116,8 116,8 125,5 104,2 115,1 132,8 123,3 124,8 122 117,4 117,9 137,4 114,6 124,7 129,6 109,4 120,9 134,9 136,3 133,2 127,2 122,7 120,5 137,8 119,1 124,3 134,4 121,7 121 128,6
 
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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.92820
10.1170390.81090.210722
2-0.011168-0.07740.530675
30.1112540.77080.222305
40.0908010.62910.266138
50.0907130.62850.266334
60.1358610.94130.175639
7-0.149524-1.03590.847288
8-0.008067-0.05590.522169
90.1078880.74750.229213
10-0.202294-1.40150.916256
11-0.180458-1.25030.891366
12-0.193304-1.33920.906601
13-0.100722-0.69780.755673
140.05570.38590.350638
15-0.155607-1.07810.856806
16-0.174858-1.21140.884173
170.1178380.81640.209151
18-0.054844-0.380.647179
19-0.176492-1.22280.886307
200.008190.05670.477494
210.0617260.42770.335409
22-0.017823-0.12350.548879
230.1450881.00520.15992
24-0.189986-1.31630.902831
25-0.088932-0.61610.729643
260.071910.49820.310308
270.1259650.87270.193584
28-0.053612-0.37140.644026
290.0761110.52730.300204
300.0041030.02840.488721
310.0636660.44110.330563
323.1e-052e-040.499916
33-0.148685-1.03010.845942
340.0520560.36070.35997
350.0571360.39580.346986
360.0171450.11880.45297
370.0746660.51730.303661
38-0.013407-0.09290.53681
39-0.090637-0.62790.733493
400.0394950.27360.392771
41-0.05893-0.40830.657558
42-0.071682-0.49660.689141
430.0945820.65530.257708
440.0521980.36160.359606
45-0.067971-0.47090.680083
46-0.032584-0.22580.588823
47-0.029573-0.20490.580737
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1170390.81090.210722
1-0.025211-0.17470.568962
20.1172230.81210.210358
30.064770.44870.327821
40.0805390.5580.289723
50.1130340.78310.218701
6-0.196741-1.36310.910389
70.0178130.12340.451149
80.0618320.42840.335144
9-0.233733-1.61940.944038
10-0.12932-0.8960.812627
11-0.205843-1.42610.919847
12-0.007864-0.05450.521612
130.0933130.64650.260519
14-0.138277-0.9580.828571
150.0169470.11740.453512
160.1673731.15960.125975
17-0.084217-0.58350.718846
18-0.152656-1.05760.852241
19-0.003385-0.02340.509306
200.1251440.8670.195121
21-0.151782-1.05160.850871
220.0215370.14920.441006
23-0.174713-1.21040.883982
24-0.060118-0.41650.660554
25-0.061304-0.42470.663533
260.1327180.91950.181217
27-0.011338-0.07850.531141
280.105150.72850.234923
29-0.021828-0.15120.559786
30-0.027756-0.19230.575841
31-0.058309-0.4040.655988
32-0.108406-0.75110.771858
33-0.016473-0.11410.545195
34-0.067801-0.46970.679666
350.0104330.07230.471339
360.0751010.52030.302617
37-0.019732-0.13670.554082
380.0171460.11880.452968
39-0.044253-0.30660.619761
40-0.027222-0.18860.5744
410.0106220.07360.470822
42-0.018652-0.12920.55114
43-0.022666-0.1570.562062
44-0.029456-0.20410.580421
45-0.074449-0.51580.695819
460.0509330.35290.362864
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/t1196332187gskgf8vngdfp7qn/135np1196332766.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196332187gskgf8vngdfp7qn/135np1196332766.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196332187gskgf8vngdfp7qn/2udpa1196332766.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196332187gskgf8vngdfp7qn/2udpa1196332766.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