Home » date » 2009 » May » 14 »

Time Series Analysis (new) - autocorrelation - gemiddelde prijs strip - Dellaert Kenny

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 14 May 2009 02:38:46 -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/14/t1242290513fgoqjpli4h67jbe.htm/, Retrieved Thu, 14 May 2009 10:41:55 +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/14/t1242290513fgoqjpli4h67jbe.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 «
5,11 5,11 5,11 5,1 5,1 5,1 5,1 5,1 5,12 5,25 5,26 5,26 5,26 5,26 5,26 5,26 5,29 5,3 5,33 5,33 5,35 5,38 5,38 5,38 5,38 5,38 5,39 5,39 5,4 5,4 5,4 5,4 5,4 5,41 5,41 5,41 5,41 5,41 5,42 5,42 5,42 5,42 5,43 5,43 5,45 5,51 5,51 5,51 5,51 5,51 5,51 5,53 5,53 5,53 5,53 5,52 5,53 5,54 5,54 5,57 5,56 5,57 5,58 5,61 5,66 5,68 5,69 5,7 5,72 5,71 5,69 5,7 5,7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9506668.12250
20.8969847.66380
30.8426897.19990
40.7824616.68530
50.7198356.15030
60.6584685.6260
70.5980665.10991e-06
80.5360484.589e-06
90.4778524.08285.6e-05
100.4432873.78740.000155
110.4137093.53470.000356
120.3839013.280.000796
130.3519513.00710.001808
140.3180332.71730.004108
150.2870552.45260.008286
160.2557912.18550.016031
170.2298131.96350.026697
180.2048871.75060.042112
190.1818861.5540.062251
200.1563521.33590.09287
210.132331.13060.130956
220.1117710.9550.171372
230.093140.79580.214368
240.0732670.6260.266637
250.051530.44030.330521
260.0295060.25210.400835
270.0079520.06790.473008
28-0.014605-0.12480.450517
29-0.028281-0.24160.404872
30-0.040888-0.34930.363917
31-0.054116-0.46240.322595
32-0.066572-0.56880.285622
33-0.079027-0.67520.250838
34-0.091205-0.77930.219175
35-0.103573-0.88490.189551
36-0.116697-0.99710.161014
37-0.134217-1.14680.127614
38-0.152407-1.30220.098477
39-0.169983-1.45230.075346
40-0.187846-1.6050.05641
41-0.204745-1.74930.042217
42-0.222457-1.90070.030647
43-0.240177-2.05210.021875
44-0.259617-2.21820.014827
45-0.276828-2.36520.010339
46-0.284812-2.43340.008702
47-0.293465-2.50740.007194
48-0.302684-2.58610.00585


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9506668.12250
2-0.070473-0.60210.274479
3-0.032804-0.28030.390028
4-0.091051-0.77790.219559
5-0.054186-0.4630.322382
6-0.021303-0.1820.428039
7-0.024465-0.2090.417503
8-0.053232-0.45480.325297
90.0001720.00150.499417
100.2065421.76470.040899
110.0119610.10220.459442
12-0.03555-0.30370.381094
13-0.080726-0.68970.246278
14-0.063692-0.54420.293988
150.0090770.07760.469199
16-0.026661-0.22780.410221
170.0260780.22280.412151
18-0.007488-0.0640.474581
190.0556310.47530.317993
20-0.038564-0.32950.371363
21-0.017046-0.14560.442303
22-0.018421-0.15740.437688
23-0.021282-0.18180.42811
24-0.026935-0.23010.409316
25-0.044502-0.38020.352442
26-0.003166-0.02710.489246
27-0.006092-0.05210.479315
28-0.012278-0.10490.458372
290.0633280.54110.295052
30-0.017914-0.15310.439389
31-0.018542-0.15840.43728
32-0.0214-0.18280.427714
33-0.029601-0.25290.400525
34-0.033984-0.29040.386182
35-0.020476-0.17490.430802
36-0.028302-0.24180.4048
37-0.062113-0.53070.298621
380.015320.13090.448109
39-0.006071-0.05190.479387
40-0.022688-0.19380.423418
41-0.022221-0.18990.424976
42-0.051512-0.44010.330576
43-0.026985-0.23060.409152
44-0.052842-0.45150.326489
45-0.002938-0.02510.490021
460.0537230.4590.323797
47-0.020738-0.17720.429926
48-0.027479-0.23480.407518
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242290513fgoqjpli4h67jbe/1lsjl1242290319.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242290513fgoqjpli4h67jbe/1lsjl1242290319.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242290513fgoqjpli4h67jbe/2q2te1242290319.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242290513fgoqjpli4h67jbe/2q2te1242290319.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