Home » date » 2007 » Nov » 28 » attachments

methode2 op tijdreeks1

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 02:21:50 -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/t1196241151nhaa7syg4q2muq7.htm/, Retrieved Wed, 28 Nov 2007 10:12:33 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.2286 1.1702 1.1692 1.1222 1.1139 1.1372 1.1663 1.1582 1.0848 1.0807 1.0773 1.0622 1.0183 1.0014 0.9811 0.9808 0.9778 0.9922 0.9554 0.9170 0.8858 0.8758 0.8700 0.8833 0.8924 0.8883 0.9059 0.9111 0.9005 0.8607 0.8532 0.8742 0.8920 0.9095 0.9217 0.9383 0.8973 0.8564 0.8552 0.8721 0.9041 0.9397 0.9492 0.9060 0.9470 0.9643 0.9834 1.0137 1.0110 1.0338 1.0706 1.0501 1.0604 1.0353 1.0378 1.0628 1.0704 1.0883 1.1208 1.1608
 
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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.68110
10.2816742.16360.017279
20.041520.31890.375457
3-0.068811-0.52850.700449
4-0.037998-0.29190.614294
50.0823440.63250.264753
60.12440.95550.171603
70.2117711.62660.054571
80.1929161.48180.071855
90.1867011.43410.078415
100.1910341.46740.073794
110.1719261.32060.09587
12-0.026059-0.20020.578979
13-0.059345-0.45580.674909
140.0133110.10220.459454
150.0731770.56210.288094
160.062510.48020.316447
170.2664052.04630.022596
180.1828061.40420.082757
190.011410.08760.465229
20-0.109716-0.84270.798612
21-0.076113-0.58460.71949
22-0.116634-0.89590.813022
23-0.081789-0.62820.733862
240.0850730.65350.258
250.027930.21450.415436
26-0.023855-0.18320.57238
27-0.060023-0.4610.676769
280.0073210.05620.477672
29-0.025701-0.19740.577909
30-0.178391-1.37020.912099
31-0.148413-1.140.87055
32-0.150256-1.15410.873452
33-0.020831-0.160.56329
34-0.002168-0.01670.506615
350.139041.0680.144939
36-0.082659-0.63490.736031
37-0.193787-1.48850.929028
38-0.196893-1.51240.93211
39-0.132431-1.01720.843399
40-0.048962-0.37610.645897
41-0.089513-0.68760.752788
42-0.013096-0.10060.539893
43-0.08354-0.64170.738219
44-0.073529-0.56480.712819
45-0.038484-0.29560.615715
46-0.141838-1.08950.859814
47-0.149663-1.14960.872523
48-0.062022-0.47640.682226
49-0.079568-0.61120.728284
500.0097240.07470.470357
51-0.083261-0.63950.737527
520.0317440.24380.404103
530.0321630.2470.402865
54-0.038928-0.2990.617008
55-0.056681-0.43540.667562
56-0.072147-0.55420.709221
57-0.046612-0.3580.639202
58-0.057183-0.43920.668951
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2816742.16360.017279
1-0.04108-0.31550.623268
2-0.075525-0.58010.717978
30.0044060.03380.486557
40.1028970.79040.216239
50.0741290.56940.285624
60.1654751.2710.104351
70.1158720.890.188532
80.1405761.07980.142316
90.1609031.23590.110693
100.1421621.0920.139643
11-0.098334-0.75530.773469
12-0.044461-0.34150.633035
13-0.001599-0.01230.504878
14-0.033865-0.26010.602163
15-0.102543-0.78770.782973
160.2014681.54750.063544
170.0021630.01660.493399
18-0.095218-0.73140.76628
19-0.105696-0.81190.789934
20-0.013071-0.10040.539817
21-0.190592-1.4640.925744
22-0.093659-0.71940.762636
230.0458080.35190.3631
24-0.13312-1.02250.844644
25-0.119738-0.91970.81927
26-0.023219-0.17830.57047
270.0071020.05460.47834
280.0110890.08520.466204
29-0.070992-0.54530.706199
30-0.001363-0.01050.504159
31-0.119076-0.91460.817948
320.1126590.86530.195176
33-0.035521-0.27280.607036
340.162531.24840.108405
35-0.086721-0.66610.746034
360.0450290.34590.365335
37-0.081367-0.6250.732806
380.0447310.34360.36619
390.0621190.47710.317512
40-0.057694-0.44320.670364
410.0023830.01830.492729
42-0.039521-0.30360.618736
43-0.009541-0.07330.529087
44-0.002021-0.01550.506167
45-0.177006-1.35960.910436
460.0519870.39930.345551
470.0399990.30720.379872
48-0.027335-0.210.582789
49-0.015589-0.11970.547454
50-0.00913-0.07010.527836
510.0162090.12450.450669
520.0639810.49140.312468
530.0553560.42520.336119
540.0890690.68420.248278
550.0120150.09230.46339
560.0079850.06130.475651
57-0.031218-0.23980.594339
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196241151nhaa7syg4q2muq7/1pgdi1196241707.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196241151nhaa7syg4q2muq7/1pgdi1196241707.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196241151nhaa7syg4q2muq7/23ffd1196241707.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196241151nhaa7syg4q2muq7/23ffd1196241707.ps (open in new window)


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