Home » date » 2007 » Dec » 13 » attachments

paper tijdreeks 2: autocorrelation

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 13 Dec 2007 02:24:54 -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/Dec/13/t1197536978ndgi07n5dvfya4e.htm/, Retrieved Thu, 13 Dec 2007 10:09:40 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15082.0 14772.7 16083.0 14272.5 15223.3 14897.3 13062.6 12603.8 13629.8 14421.1 13978.3 12927.9 13429.9 13470.1 14785.8 14292.0 14308.8 14013.0 13240.9 12153.4 14289.7 15669.2 14169.5 14569.8 14469.1 14264.9 15320.9 14433.5 13691.5 14194.1 13519.2 11857.9 14615.9 15643.4 14077.2 14887.5 14159.9 14643.0 17192.5 15386.1 14287.1 17526.6 14497.0 14398.3 16629.6 16670.7 16614.8 16869.2 15663.9 16359.9 18447.7 16889.0 16505.0 18320.9 15052.1 15699.8 18135.3 16768.7 18883.0 19021.0
 
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
016.85570
1-0.537118-3.68230.999702
2-0.063555-0.43570.667478
30.4300942.94860.00248
4-0.356449-2.44370.990827
50.0628890.43110.334166
60.2270171.55640.063166
7-0.347516-2.38240.989352
80.1221790.83760.203243
90.1876331.28630.102311
10-0.31654-2.17010.982456
110.1159330.79480.215364
120.0994510.68180.249354
13-0.306624-2.10210.979536
140.1710771.17280.123384
150.1047870.71840.238039
16-0.379822-2.60390.993852
170.3029142.07670.021662
180.0744110.51010.306173
19-0.297578-2.04010.976509
200.2909381.99460.025954
21-0.047813-0.32780.627736
22-0.153371-1.05150.850787
230.3069752.10450.020354
24-0.203434-1.39470.915164
25-0.047842-0.3280.62781
260.2490631.70750.047165
27-0.227034-1.55650.936847
280.0975150.66850.253533
290.0747450.51240.305376
30-0.163251-1.11920.865627
310.0841680.5770.283338
32-0.007151-0.0490.519446
33-0.055991-0.38390.648592
34-0.027911-0.19130.57546
350.0694330.4760.318137
36-0.095626-0.65560.742353
370.0546930.3750.354689
380.0364440.24990.401896
39-0.086682-0.59430.722407
400.0568410.38970.349266
410.0269970.18510.426981
42-0.083167-0.57020.71436
430.0644030.44150.330428
44-0.017631-0.12090.547846
450.0126710.08690.465572
46-0.001166-0.0080.503172
47NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.537118-3.68230.999702
1-0.494798-3.39220.999292
20.2108681.44560.077457
30.0712210.48830.313815
4-0.012958-0.08880.535205
50.1015270.6960.244919
6-0.130626-0.89550.812466
7-0.206315-1.41440.918086
80.0575690.39470.347436
90.019380.13290.447433
10-0.123108-0.8440.798525
11-0.097315-0.66720.746032
12-0.246077-1.6870.950887
13-0.274203-1.87980.966832
140.0296190.20310.419982
15-0.1657-1.1360.869138
16-0.153404-1.05170.850839
170.1116570.76550.223906
180.0974630.66820.253646
19-0.000268-0.00180.50073
20-0.008781-0.06020.523873
210.0285360.19560.42287
220.1043640.71550.238926
23-0.022286-0.15280.560389
24-0.047615-0.32640.627226
25-0.076112-0.52180.697869
26-0.173494-1.18940.879875
270.0851480.58370.281091
280.0595680.40840.342425
290.0436360.29920.38307
300.0754650.51740.303665
31-0.153772-1.05420.851412
320.0141680.09710.461518
330.0466680.31990.375215
340.044380.30430.381138
35-0.05255-0.36030.639867
36-0.012144-0.08330.532999
370.0128760.08830.465018
380.0450530.30890.379392
39-0.0525-0.35990.639742
40-0.037071-0.25410.599755
41-0.000284-0.00190.500773
42-0.063122-0.43270.666409
43-0.068693-0.47090.680066
440.0294990.20220.420304
45-0.116302-0.79730.785364
46NANANA
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197536978ndgi07n5dvfya4e/1l43x1197537892.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197536978ndgi07n5dvfya4e/1l43x1197537892.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197536978ndgi07n5dvfya4e/2qeuy1197537892.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197536978ndgi07n5dvfya4e/2qeuy1197537892.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