Home » date » 2009 » May » 12 »

Autocorrelation - Koers BEL 20 van Januari 2000 tot Januari 2009 - Claus Wesley

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 12 May 2009 07:45:35 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/12/t1242136024mua61axzqj0ag1j.htm/, Retrieved Tue, 12 May 2009 15:47:06 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/May/12/t1242136024mua61axzqj0ag1j.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3030,29 2803,47 2767,63 2882,6 2863,36 2897,06 3012,61 3142,95 3032,93 3045,78 3110,52 3013,24 2987,1 2995,55 2833,18 2848,96 2794,83 2845,26 2915,02 2892,63 2604,42 2641,65 2659,81 2638,53 2720,25 2745,88 2735,7 2811,7 2799,43 2555,28 2304,98 2214,95 2065,81 1940,49 2042 1995,37 1946,81 1765,9 1635,25 1833,42 1910,43 1959,67 1969,6 2061,41 2091,48 2120,88 2174,56 2196,72 2350,44 2440,25 2408,64 2472,81 2407,6 2452,62 2448,05 2497,84 2645,64 2756,76 2849,27 2921,44 2981,85 3080,58 3106,22 3119,31 3061,26 3097,31 3161,69 3257,16 3277,01 3295,32 3363,99 3494,17 3667,03 3813,06 3917,96 3895,51 3801,06 3570,12 3701,61 3862,27 3970,1 4138,52 4199,75 4290,89 4443,91 4502,64 4356,98 4591,27 4696,96 4621,4 4562,84 4202,52 4296,49 4435,23 4105,18 4116,68 3844,49 3720,98 3674,4 3857,62 3801,06 3504,37 3032,6 3047,03 2962,34 2197,82 2014,45 1862,83 1905,41
 
Output produced by software:


Summary of computational 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
10.97173610.14520
20.9323219.73370
30.8923719.31660
40.8482068.85550
50.8120868.47840
60.7706938.04630
70.7257227.57680
80.6871537.17410
90.6495116.78110
100.6083546.35140
110.5624645.87230
120.5111375.33640
130.4601714.80432e-06
140.4147134.32971.7e-05
150.3652243.81310.000114
160.3190923.33140.00059
170.2685382.80360.002992
180.2175752.27160.012539
190.1759831.83730.034444
200.1355291.4150.079965
210.0993381.03710.150987
220.0629720.65740.256139
230.0253120.26430.396038
24-0.004801-0.05010.480056
25-0.032588-0.34020.367169
26-0.062234-0.64970.258613
27-0.090216-0.94190.174168
28-0.117019-1.22170.112225
29-0.146452-1.5290.064581
30-0.176177-1.83930.034293
31-0.207366-2.1650.016286
32-0.238385-2.48880.007165
33-0.26398-2.7560.00343
34-0.284565-2.97090.001826
35-0.301183-3.14440.001072
36-0.314819-3.28680.000682
37-0.32934-3.43840.000415
38-0.344447-3.59610.000243
39-0.358627-3.74420.000145
40-0.373643-3.90098.3e-05
41-0.386768-4.0385e-05
42-0.397906-4.15433.3e-05
43-0.40805-4.26022.2e-05
44-0.414965-4.33241.6e-05
45-0.420775-4.3931.3e-05
46-0.422325-4.40921.2e-05
47-0.420312-4.38821.3e-05
48-0.415042-4.33321.6e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97173610.14520
2-0.214411-2.23850.01361
30.0094610.09880.460748
4-0.104665-1.09270.13846
50.1610731.68160.04775
6-0.198436-2.07170.020325
7-0.010364-0.10820.457018
80.0719460.75110.227093
9-0.001356-0.01420.494366
10-0.138539-1.44640.075469
11-0.097761-1.02070.154838
12-0.053778-0.56150.287818
13-0.003631-0.03790.484916
140.0333760.34850.364085
15-0.14744-1.53930.063313
160.0950330.99220.161654
17-0.190709-1.99110.024488
180.0617580.64480.260214
190.0222970.23280.408183
200.0213950.22340.411832
210.0161970.16910.433015
22-0.083827-0.87520.191699
230.0201210.21010.417004
240.0455890.4760.317527
25-0.02413-0.25190.400788
26-0.081223-0.8480.19915
270.0461460.48180.315465
28-0.019705-0.20570.418694
29-0.109717-1.14550.127261
30-0.12817-1.33810.091819
310.0234770.24510.403415
32-0.009841-0.10270.459176
33-0.000321-0.00340.498666
340.0417450.43580.331909
35-0.027689-0.28910.386535
360.0292940.30580.380156
37-0.099562-1.03950.150446
38-0.020467-0.21370.415596
390.0168870.17630.430191
40-0.047445-0.49530.31068
410.005330.05560.477861
42-0.007856-0.0820.46739
43-0.001804-0.01880.492506
44-0.033684-0.35170.362881
45-0.039033-0.40750.342212
460.0844920.88210.189825
470.0106160.11080.455976
480.014640.15280.439403
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/12/t1242136024mua61axzqj0ag1j/1x8qq1242135932.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/12/t1242136024mua61axzqj0ag1j/1x8qq1242135932.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/12/t1242136024mua61axzqj0ag1j/2ufez1242135932.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/12/t1242136024mua61axzqj0ag1j/2ufez1242135932.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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